Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serviceCard commit #130

Open
wants to merge 1 commit into
base: astu.web.g1.naol.test-merge
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,057 changes: 2,975 additions & 82 deletions web/ASTU-web-group-1/astu.web.g1.bank-dash/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/ASTU-web-group-1/astu.web.g1.bank-dash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@types/node": "^20",
"@types/react": "18.3.3",
"@types/react-dom": "^18",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions web/ASTU-web-group-1/astu.web.g1.bank-dash/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang='en'>
<html lang="en">
<body className={inter.className}>
<div className='flex w-full bg-light min-h-screen'>
<div className='relative'>
<div className="flex w-full bg-light min-h-screen">
<div className="relative">
<Sidebar />
</div>
<div className='w-full'>
<div className="w-full overflow-hidden">
<NavBar />
<div className='p-5'>{children}</div>
<div className="p-5">{children}</div>
</div>
</div>
</body>
</html>

);
}
15 changes: 11 additions & 4 deletions web/ASTU-web-group-1/astu.web.g1.bank-dash/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import Image from 'next/image';
import React from 'react';
import ServicesCardApp from '@/components/ServicesCards/servicesCardApp';

export default function Home() {
return <>replace me by ur component</>;
}
const Home: React.FC = () => {
return (
<div className=' flex justify-center'>
<ServicesCardApp/>
</div>
);
};

export default Home;
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react';
import Image from 'next/image';

interface CardProps {
image: string;
title: string;
description: string;
color:string
}

const ServicesCard: React.FC<CardProps> = ({ image, title, description,color }) => {
return (
<div style={{ backgroundColor: color }} className="flex min-w-fit lg:min-w-1/4 rounded-3xl p-5 mx-2 lg:w-1/4">
<div className="flex justify-center px-8 gap-1 items-center min-w-fit whitespace-nowrap">
<Image
src={image}
alt=""
width={70}
height={70}
className="object-cover w-13 h-13 md:w-14 md:h-14 lg:w-20 lg:h-20"
/>

<div className="p-4">
<h2 className="flex mb-1 text-gray-dark text-15px lg:text-18px font-[600]">{title}</h2>
<p className="flex text-12px lg:text-14px text-blue-steel overflow-clip"
style={{
display: "-webkit-box",
WebkitLineClamp: 2,
WebkitBoxOrient: "vertical",
overflow: "hidden",
textOverflow: "ellipsis",
}}>{description}</p>
</div>
</div>
</div>
);
}

export default ServicesCard;
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// components/ServicesCards/ServicesCardApp.tsx
import React from 'react';
import ServicesCard from './servicesCard';

const ServicesCardApp = () => {
return (
<div className="overflow-x-auto whitespace-nowrap p-4" style={{
scrollbarWidth: 'none',
msOverflowStyle: 'none',
}}>
<div className="inline-flex gap-6 min-w-max justify-center">
<ServicesCard
image='/assets/icons/life-insurance.svg'
title='Life Insurance'
description='Unlimited Protection'
color='white'
/>
<ServicesCard
image='/assets/icons/shopping.svg'
title='Shopping'
description='Buy. Think. Grow'
color='white'
/>
<ServicesCard
image='/assets/icons/safety.svg'
title='Safety'
description='We are your allies'
color='white'
/>
</div>
</div>
);
}

export default ServicesCardApp;