Skip to content

Commit

Permalink
add id products
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangndm3139 committed Feb 19, 2024
1 parent 514925e commit d9440b3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ body {

/* Ecosystem card */

.ecosystem-card-aha:hover {
.ecosystem-card-ahamove:hover {
background-image: url("../assets/images/img_bg_ahamove.png");
background-size: cover;
background-repeat: no-repeat;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/Item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Item = ({ children, path, subItems }: { children: ReactNode, path?: string
if (subItems) {
const listPaths = subItems.map((e: any) => e.pageRoute)
const isActive = listPaths.includes(pathname.slice(0, -1))

return (
<div className="flex justify-center items-center">
<div className={`group relative px-6 py-3 hover:bg-medium-charcoal ${isActive ? 'bg-medium-charcoal' : ''} rounded-2xl cursor-pointer`}>
Expand Down Expand Up @@ -42,7 +42,7 @@ const Item = ({ children, path, subItems }: { children: ReactNode, path?: string

return (
<div className="flex justify-center items-center">
<Link href={path ?? PAGE_ROUTE.HOME} className={`w-24 px-6 py-3 hover:bg-medium-charcoal ${pathname.slice(0, -1) === path ? 'bg-medium-charcoal' : ''} rounded-2xl text-lg flex justify-center items-center`}>{children}</Link>
<Link href={path ?? PAGE_ROUTE.HOME} className={`w-24 px-6 py-3 hover:bg-medium-charcoal ${(pathname === PAGE_ROUTE.HOME ? pathname : pathname.slice(0, -1)) === path ? 'bg-medium-charcoal' : ''} rounded-2xl text-lg flex justify-center items-center`}>{children}</Link>
</div>
)

Expand Down
2 changes: 1 addition & 1 deletion src/sections/blogs/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Card({ post }: CardProps) {
<Image className="rounded-t-2xl h-[168px] object-cover xl:h-[303px]" width={539} height={303} src={featureImage} alt='img_blog'></Image>
</Link>
<div className="flex flex-col gap-2 p-6 xl:px-10 xl:pt-8 xl:pb-12">
<span className="bg-brand-linear-gradient bg-clip-text text-transparent font-normal leading-6">{tag}</span>
<span className="text-[rgba(253,149,82,1)] font-normal leading-6">{tag}</span>
<Link href={url} target="_blank" className="text-white font-ppmori-semibold text-[22px] font-semibold leading-8 hover:underline">{title}</Link>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/sections/ecosystem/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ function Card({ data }: CardProps) {
const { img, title, description, name, link } = data
return (
<div className={`ecosystem-card-${name} group relative bg-white hover:bg-black rounded-3xl border border-solid border-[rgba(254,119,108,0.16)] flex flex-col gap-8 lg:gap-0 lg:justify-between items-start p-8 hover:pb-10 max-w-[345px] h-[296px] card lg:p-14 lg:hover:pb-16 lg:max-w-[427px] lg:max-h-[481px] lg:h-[481px]`}>
<Link href={link} target="_blank">
<Link id={`product-${name}`} href={link} target="_blank">
<Image className="lg:w-8 lg:h-8 absolute right-[30px] top-[30px] hidden rotate-45 group-hover:block group-hover:rotate-0 transition delay-100 duration-500" src={ic_arrow_up_right} alt="ic_arrow"></Image>
</Link>
<Image className="lg:w-16 lg:h-16" src={img} alt={title}></Image>
<div className="flex flex-col gap-2 lg:gap-4 lg:min-h-[240px]">
<span className="text-black text-2xl font-semibold leading-7 font-ppmori-semibold group-hover:text-white">{title}</span>
<div className="flex flex-1 flex-col justify-between">
<span className="text-black text-[18px] font-normal leading-7 lg:text-xl lg:leading-8 group-hover:text-medium-gray">{description}</span>
<span className="hidden lg:block bg-brand-linear-gradient bg-clip-text text-transparent text-[18px] font-normal leading-8">Experience</span>
<Link id={`product-${name}`} href={link} target="_blank" className="hidden lg:block bg-brand-linear-gradient bg-clip-text text-transparent text-[18px] font-normal leading-8 w-fit">
Experience
</Link>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/ecosystem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ecosystemData = [{
},
{
img: img_ahamove,
name: "aha",
name: "ahamove",
title: "Ahamove",
link: AURA_ECOSYSTEM.AHA_MOVE,
description: "Read more about the first mainstream integration of Aura, with the largest transport app in Vietnam."
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const config: Config = {
"brand-gradient":
"linear-gradient(339deg, #FFD569, #FC8E4F, #FF697B)",
"brand-linear-gradient":
"linear-gradient(339deg, #FFD569 23.57%, #FC8E4F 50.76%, #FF697B 76.37%)",
"linear-gradient(0deg, rgba(255, 213, 105, 1), rgba(252, 142, 79, 1), rgba(255, 105, 123, 1))",
},
colors: {
"black-charcoal": "var(--black-charcoal)",
Expand Down

0 comments on commit d9440b3

Please sign in to comment.