Skip to content

Commit e94308f

Browse files
authored
fix: update navbar styles (#162)
* fix: update navbar styles
1 parent 7cce02d commit e94308f

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

apps/web/app/_components/navbar/cta.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Landing = ({ isMobile }: { isMobile?: boolean }) => {
1414
}
1515
return (
1616
<Link href="/sign-in" className="2xl:h-full">
17-
<button className="hidden cursor-pointer items-center justify-center gap-4 rounded-full bg-gradient-to-r from-purple-400/50 to-pink-300/50 px-6 py-2 text-base shadow-xl shadow-black/25 lg:flex lg:gap-6 lg:px-8 lg:py-2.5 lg:text-lg 2xl:h-full 2xl:self-stretch 2xl:px-10 2xl:text-lg">
17+
<button className="text-button-2 hidden cursor-pointer items-center justify-center gap-4 whitespace-nowrap rounded-full bg-gradient-to-r from-purple-400/50 to-pink-300/50 shadow-xl shadow-black/25 lg:flex lg:h-full lg:px-8 lg:py-3 2xl:px-10 2xl:py-2.5">
1818
ลงทะเบียน
1919
</button>
2020
</Link>

apps/web/app/_components/navbar/index.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export function Navbar({ links, CTAId, sections }: NavbarProps) {
7979
const isActive = (href: string) => active === href
8080
return (
8181
<div className="z-100 sticky top-0 w-full p-9 px-[24px] lg:px-[60px] 2xl:px-[160px]">
82-
<GlassCard className="flex items-center justify-between rounded-full pl-3 pr-5 backdrop-blur-md lg:pr-3">
83-
<div className="flex w-[142px] items-center justify-center pt-1 lg:w-[120px] 2xl:w-[180px]">
82+
<GlassCard className="flex items-center rounded-full pl-3 pr-5 backdrop-blur-md lg:pr-3">
83+
<div className="flex w-[142px] items-center justify-center lg:w-[120px] 2xl:w-[180px]">
8484
<NavLink href={"/"}>
8585
<Image
8686
style={{ width: "100%", height: "auto", objectFit: "cover" }}
@@ -91,21 +91,23 @@ export function Navbar({ links, CTAId, sections }: NavbarProps) {
9191
/>
9292
</NavLink>
9393
</div>
94-
<div className="hidden items-center lg:flex lg:gap-2 2xl:justify-between 2xl:gap-2.5">
95-
{links.map((item, i) => {
96-
if (item.type === "normal" && !item.mobileOnly) {
97-
return (
98-
<NavLink
99-
key={item.label}
100-
className={`rounded-full px-3 py-3 text-white lg:px-3 2xl:px-6 ${isActive(item.href.replace("#", "")) ? "text-nav-1-selected liquid" : "text-nav-2"}`}
101-
href={item.href}>
102-
{item.label}
103-
</NavLink>
104-
)
105-
} else return <Fragment key={`${item.label}-${i}`}></Fragment>
106-
})}
94+
<div className="flex flex-1 items-center justify-center">
95+
<div className="hidden items-center lg:flex lg:gap-2 2xl:gap-2.5">
96+
{links.map((item, i) => {
97+
if (item.type === "normal" && !item.mobileOnly) {
98+
return (
99+
<NavLink
100+
key={item.label}
101+
className={`rounded-full px-4 py-3 text-white 2xl:px-6 2xl:py-4 ${isActive(item.href.replace("#", "")) ? "text-nav-1-selected liquid" : "text-nav-2"}`}
102+
href={item.href}>
103+
{item.label}
104+
</NavLink>
105+
)
106+
} else return <Fragment key={`${item.label}-${i}`}></Fragment>
107+
})}
108+
</div>
107109
</div>
108-
<div className="flex h-[70px] items-center">
110+
<div className="flex h-[70px] w-[142px] items-center justify-end lg:w-[120px] 2xl:w-[180px]">
109111
{CTA[CTAId]}
110112
<Drawer>
111113
<DrawerTrigger asChild>

packages/ui/src/styles/globals.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@
238238
}
239239

240240
.group::before {
241-
background: radial-gradient(80% 80% at 50% 50%,
242-
var(--glow-color, rgba(159, 131, 220, 0.5)) 0%,
243-
transparent 70%);
241+
background: radial-gradient(
242+
80% 80% at 50% 50%,
243+
var(--glow-color, rgba(159, 131, 220, 0.5)) 0%,
244+
transparent 70%
245+
);
244246
}
245247

246248
.bg-home {
@@ -263,4 +265,4 @@
263265
background-image: url("/static/background-image/Home.webp");
264266
}
265267
}
266-
}
268+
}

0 commit comments

Comments
 (0)