Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
kalidiagne committed Apr 19, 2024
1 parent 6ea46ed commit 0401260
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
14 changes: 8 additions & 6 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ export default function Home() {
const clientX = e?.clientX;
const clientY = e?.clientY;

const el = document
.elementFromPoint(clientX, clientY)
const pathElement = document
?.elementFromPoint(clientX, clientY)
?.closest("path");
if (!el) return;

const color = (el.attributes as any)?.stroke.value ?? "transparent";
if (!pathElement) return;

const color =
(pathElement.attributes as any)?.stroke.value ?? "transparent";

const startingColor = `#00${color.replace("#", "")}`;

el.animate(
pathElement.animate(
{
fill: [startingColor, color, color, startingColor],
},
Expand All @@ -66,7 +68,7 @@ export default function Home() {
<FeatureSection />
<EventSection />
<Banner
title="Join the anon aadhaar community"
title={LABELS.HOME_PAGE.BANNER.TITLE}
actions={
<Button
variant="black"
Expand Down
4 changes: 2 additions & 2 deletions components/AppFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { MenuItem } from "@/shared/types";
import { AppContainer } from "./AppContainer";
import Link from "next/link";
import { Icons } from "./Icons";
import useSettings, { LINKS } from "@/hooks/useSettings";
import useSettings, { LINKS, SETTINGS } from "@/hooks/useSettings";
import { LABELS } from "@/shared/labels";
import { classed } from "@tw-classed/react";

Expand Down Expand Up @@ -58,7 +58,7 @@ export const AppFooter = () => {
</span>
<Link
className="group flex items-center order-1 md:order-2"
href={LINKS.WEBSITE_FEEDBACK}
href={`mailto:${SETTINGS.INFO_MAIL}`}
target="_blank"
>
<FooterNavItem>{LABELS.COMMON.FOOTER.FEEDBACK}</FooterNavItem>
Expand Down
4 changes: 2 additions & 2 deletions components/header/AppHeaderMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import useSettings, { LINKS } from "@/hooks/useSettings";
import useSettings, { LINKS, SETTINGS } from "@/hooks/useSettings";
import { Icons } from "../Icons";
import { MenuItem } from "@/shared/types";
import Link from "next/link";
Expand Down Expand Up @@ -90,7 +90,7 @@ export const AppHeaderMobile = () => {
/>
</div>
<div className="flex flex-col items-center justify-between pb-8">
<Link href={LINKS.WEBSITE_FEEDBACK} target="_blank">
<Link href={`mailto:${SETTINGS.INFO_MAIL}`} target="_blank">
<NavItem>
<span>{LABELS.COMMON.FOOTER.FEEDBACK}</span>
<Icons.ExternalLink className="mt-[-2px]" />
Expand Down
7 changes: 5 additions & 2 deletions hooks/useSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const NAVIGATION: MenuItem[] = [
},
];

export const SETTINGS = {
INFO_MAIL: "mailto:[email protected]",
};

const NAVIGATION_SOCIAL: MenuItem[] = [
{
title: "Discord",
Expand All @@ -56,8 +60,7 @@ const NAVIGATION_SOCIAL: MenuItem[] = [
];

export const LINKS: Record<string, string> = {
WEBSITE_FEEDBACK: "",
WEBSITE_DEMO: "",
WEBSITE_DEMO: " https://anon-aadhaar-example.vercel.app/",
};

export default function useSettings() {
Expand Down
8 changes: 4 additions & 4 deletions sections/buildPage/BuildDescriptionSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ const BUILD_ITEMS: BuildItem[] = [
links: [
{
title: "GOOD FIRST ISSUES",
url: "",
url: "https://github.com/anon-aadhaar/anon-aadhaar/labels/good%20first%20issue",
},
{
title: "ENHANCE THE PROTOCOL",
url: "",
url: "https://github.com/anon-aadhaar/anon-aadhaar/blob/main/.github/PULL_REQUEST_TEMPLATE.md",
},
{
title: "GIVE FEEDBACK ABOUT THE WEBSITE",
url: "",
url: "https://github.com/anon-aadhaar/anon-aadhaar/discussions/155",
},
],
},
Expand All @@ -61,7 +61,7 @@ const BUILD_ITEMS: BuildItem[] = [
links: [
{
title: "GET INSPIRED",
url: "",
url: "https://github.com/anon-aadhaar/anon-aadhaar/discussions/155",
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions shared/labels/homePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export const HOME_PAGE_LABELS = {
PROJECTS: {
TITLE: "PROJECTS BUILT WITH ANON AADHAAR",
},
BANNER: {
TITLE: "Join the anon aadhaar community",
},
};

0 comments on commit 0401260

Please sign in to comment.