Skip to content

Commit aa0bf3a

Browse files
committed
fix: colors in home page
1 parent 2645cc8 commit aa0bf3a

File tree

9 files changed

+22
-16
lines changed

9 files changed

+22
-16
lines changed

src/components/cards/Numbered.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export default function Numbered({ index = 1, title = "", text = "" }: NumberedP
2929
return (
3030
<div className="flex items-center md:flex-col md:items-start gap-2.5">
3131
<div className="block">
32-
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-gray-400 font-medium rounded-full flex items-center justify-center">{index}</div>
32+
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-surface-text-tertiary font-medium rounded-full flex items-center justify-center">{index}</div>
3333
</div>
34-
<div>
34+
<div className="text-surface-text-primary">
3535
<span className="font-medium">{title}</span> <span>{text}</span>
3636
</div>
3737
</div>

src/components/layout/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
8787
};
8888

8989
return (
90-
<div className="text-gray-900 " style={containerStyle}>
90+
<div className="text-gray-900" style={containerStyle}>
9191
<div className="content-wrapper lg:py-12 py-6 flex relative">
9292
<ul className="relative">
9393
<NavItem to="/" type="logo w-8 h-8 md:w-11 md:h-11">
@@ -98,7 +98,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
9898
</NavItem>
9999
</ul>
100100
{isAuthenticatedAndVerified && (
101-
<ul className="hidden lg:block relative self-center">
101+
<ul className="hidden lg:block relative self-center text-surface-text-primary">
102102
<NavItem to="/bounties">{t("nav.bounties")}</NavItem>
103103
<NavItem to={"/communities"}>{t("nav.communities")}</NavItem>
104104
<button className="nav-item underline underline-offset-2 text-primary bg-transparent pl-2 py-0 capitalize" onClick={displayJobOffersPopup}>

src/components/popups/NotificationPopup.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ export default function NotificationPopup({ buttonStyles }: NotificationPopupPro
6262
<div>
6363
<span onClick={externalClick}>
6464
<li className={`inline-block align-middle mr-2 relative text-gray-500 max-w-80 ${isNotificationVisible ? "z-50" : "z-10"}`} onClick={toggle}>
65-
<Button type="button" padding={false} variant="secondary" className="p-2 bg-gray-100 bg-opacity-75 hover:bg-gray-50 text-primary" customStyle={buttonStyles}>
65+
<Button
66+
type="button"
67+
padding={false}
68+
variant="secondary"
69+
className="p-2 bg-surface-bg-tertiary hover:bg-surface-bg-secondary text-surface-text-brand"
70+
customStyle={buttonStyles}
71+
>
6672
<BellIcon />
6773
{unread > 0 && <Badge value={unread} className="top-0 -right-1 absolute" />}
6874
</Button>
@@ -74,7 +80,7 @@ export default function NotificationPopup({ buttonStyles }: NotificationPopupPro
7480
maxHeight: "calc(100vh - 140px)",
7581
overflow: "hidden scroll",
7682
}}
77-
className="z-50 w-80 absolute top-14 right-0 bg-white py-4 px-4.5 rounded-3.5xl text-gray-900 no-scrollbar"
83+
className="z-50 w-80 absolute top-14 right-0 bg-surface-bg-primary border border-surface-border-primary py-4 px-4.5 rounded-3.5xl text-surface-text-primary no-scrollbar"
7884
>
7985
<NotificationList extended={false} />
8086
</div>

src/components/popups/Video.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function VideoPopup(): ReactElement {
3737
<div className="flex flex-col items-center justify-center w-fit">
3838
<span onClick={externalClick} ref={videoPopupRef}>
3939
<li className="inline-block align-middle max-w-2xl relative text-gray-500 cursor-pointer w-full" onClick={toggle}>
40-
<span className="flex space-x-1 text-primary relative hover:text-primary-dark mt-3 text-base leading-normal">
40+
<span className="flex space-x-1 text-surface-text-brand relative hover:text-primary-dark mt-3 text-base leading-normal">
4141
<PlayIcon className="-mt-1" fill="white" />
4242
<div className="leading-normal font-light">
4343
<span className="font-medium">{t("app.name")}</span> {t("page.index.main.button.description")}

src/components/popups/user/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export default function UserPopup({ buttonStyles }: { buttonStyles: CSSPropertie
6767
<div>
6868
<div>
6969
<div className={`inline-block align-middle relative ${show === true ? "z-50" : "z-10"}`} onClick={toggle}>
70-
<Button customStyle={buttonStyles} padding={false} variant="secondary" className={`p-0.5 bg-gray-100 bg-opacity-75 hover:bg-gray-50 ${mainWallet ? "pr-5" : ""}`}>
70+
<Button customStyle={buttonStyles} padding={false} variant="secondary" className={`p-0.5 bg-surface-bg-tertiary hover:bg-surface-bg-secondary ${mainWallet ? "pr-5" : ""}`}>
7171
<Avatar user={user as User} useLink={false} hideVerificationBadge />
7272
{mainWallet ? (
73-
<span style={{ color: buttonStyles.color ? buttonStyles.color : undefined }} className="align-middle ml-2.5 font-medium text-gray-500">
73+
<span style={{ color: buttonStyles.color ? buttonStyles.color : undefined }} className="align-middle ml-2.5 font-medium text-surface-text-secondary">
7474
<Currency value={mainWallet.balance} token={mainWallet.token} />
7575
</span>
7676
) : (

src/components/sections/homepage/Communities.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export default function CommunitiesSection({ communities }: { communities: Commu
2525
<Section type="default" padding="pt-20 lg:pb-24 md:pb-24">
2626
<div id="communities" className="md:flex relative items-end">
2727
<div className="pr-5">
28-
<p className="uppercase font-semibold leading-none text-base">{t("page.index.communities.title")}</p>
28+
<p className="uppercase font-semibold leading-none text-base text-surface-text-primary">{t("page.index.communities.title")}</p>
2929
</div>
3030
<div className="pl-7 relative hidden lg:block md:block">
3131
<div className="message-bubble">{t("page.index.communities.subtitle")}</div>
3232
</div>
3333
</div>
34-
<div className="mt-5 md:mt-7 grid grid-cols-1 lg:grid-cols-2 gap-x-5 gap-y-0.5 lg:gap-y-5 md:gap-y-5 justify-stretch-items">
34+
<div className="mt-5 md:mt-7 grid grid-cols-1 lg:grid-cols-2 gap-x-6 gap-y-2 lg:gap-y-6 md:gap-y-5 justify-stretch-items">
3535
{communities?.map((community) => (
3636
<CommunityCard key={community.id} community={community} />
3737
))}

src/components/sections/homepage/Main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export default function MainSection(): ReactElement {
4040
return (
4141
<Section type="default" padding="p-0">
4242
<div className="w-full lg:py-24 pt-24 pb-8">
43-
<h1 className="lg:text-8xl md:text-6xl text-5xl leading-none tracking-tighter">{t("page.index.main.title")}</h1>
44-
<p className="lg:text-8xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-gray-400 tracking-tighter leading-none">{t("page.index.main.subtitle")}</p>
43+
<h1 className="lg:text-8xl md:text-6xl text-5xl leading-none tracking-tighter text-surface-text-primary">{t("page.index.main.title")}</h1>
44+
<p className="lg:text-8xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-surface-text-tertiary tracking-tighter leading-none">{t("page.index.main.subtitle")}</p>
4545
</div>
4646
<div className="flex justify-between">
4747
<div className="w-full max-w-xs hidden lg:block">

src/components/sections/homepage/OpenSource.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export default function OpenSource() {
1414
const { t } = useTranslation();
1515
return (
1616
<div className="text-4xl lg:text-5xl pt-24 flex flex-col text-wrap space-y-2">
17-
<p >
17+
<p className="text-surface-text-primary">
1818
{t("footer.open.source")}
1919
<br className="block md:hidden lg:block" />
20-
<Link href="https://github.com/dacadeorg/dacade-frontend-app" target="_blank" className="text-primary items-center space-x-2">
20+
<Link href="https://github.com/dacadeorg/dacade-frontend-app" target="_blank" className="text-surface-text-brand items-center space-x-2">
2121
<span> {t("footer.open.source.contribute")}</span>
2222
<ArrowRightIcon className="w-6.5 h-5.5 inline-flex" />
2323
</Link>

src/components/sections/homepage/_partials/testimonials/CommunityStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function CommunityStats() {
3535
const { t } = useTranslation();
3636

3737
return (
38-
<div className="p-7 bg-primary rounded-3.5xl mx-auto text-white relative md:absolute md:top-28 lg:top-32 xl:w-1/3 md:w-4/6 z-10 sm:max-w-sm">
38+
<div className="p-7 bg-primary rounded-3.5xl mx-auto text-surface-text-invert relative md:absolute md:top-28 lg:top-32 xl:w-1/3 md:w-4/6 z-10 sm:max-w-sm">
3939
<h3 className="m-0 text-4.5xl w-3/4">{t("testimonials.community.title")}</h3>
4040
<div className="relative divide-y divide-white divide-dotted">
4141
{stats.map((stat) => (

0 commit comments

Comments
 (0)