Skip to content
Merged
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
2 changes: 0 additions & 2 deletions app/[locale]/art/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
import { AnimatePresence, motion } from "motion/react";
import useEmblaCarousel from "embla-carousel-react";
import SharedNavbar from "@/components/nav/SharedNavbar";
import Footer from "@/components/footer/Footer";
import { StarsBackground } from "@/components/ui/stars-background";
import artData from "@/data/art.json";

Expand Down Expand Up @@ -599,7 +598,6 @@ export default function ArtGalleryPage() {
)}
</AnimatePresence>

<Footer />
</div>
);
}
2 changes: 0 additions & 2 deletions app/[locale]/contributors/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import contributorsData from "@/data/contributors.json";
import contributorsCache from "@/data/contributors-cache.json";
import { StarsBackground } from "@/components/ui/stars-background";
import SharedNavbar from "@/components/nav/SharedNavbar";
import Footer from "@/components/footer/Footer";

type GitHubContributor = {
login: string;
Expand Down Expand Up @@ -396,7 +395,6 @@ export default function ContributorsPage() {
</section>
</main>

<Footer />
</div>
);
}
2 changes: 2 additions & 0 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DiscourseScript } from "./discourse-script";
import { NextIntlClientProvider } from "next-intl";
import { setRequestLocale } from "next-intl/server";
import { locales, type Locale } from "@/i18n/config";
import Footer from "@/components/footer/Footer";

const geist = Geist({ subsets: ["latin"] });
const siteUrl = new URL("https://getaurora.dev");
Expand Down Expand Up @@ -72,6 +73,7 @@ export default async function RootLayout({
<link rel="icon" href="/favicon.ico" sizes="any" />
<NextIntlClientProvider locale={locale} messages={messages}>
{children}
<Footer />
</NextIntlClientProvider>
</body>
</html>
Expand Down
2 changes: 0 additions & 2 deletions app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import Footer from "@/components/footer/Footer";
import SharedNavbar from "@/components/nav/SharedNavbar";
import AboutAuroraNew from "@/components/sections/about/about-aurora-new";
import Hero from "@/components/sections/hero";
Expand Down Expand Up @@ -36,7 +35,6 @@ export default function Home() {
newsRef={newsRef}
/>
<StatsSection />
<Footer introRef={introRef} />
</main>
</div>
);
Expand Down
14 changes: 4 additions & 10 deletions components/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import { RefObject } from "react";
"use client";

import { CircleArrowUp, GitMerge, GlobeIcon } from "lucide-react";
import { useTranslations } from "next-intl";
import GithubIcon from "../GithubIcon";

export default function Footer({ introRef }: { introRef?: RefObject<any> }) {
export default function Footer() {
const t = useTranslations("Footer");

const handleScrollUp = () => {
if (introRef?.current) {
introRef.current.scrollIntoView({
behavior: "smooth",
block: "start",
});
} else {
window.scrollTo({ top: 0, behavior: "smooth" });
}
window.scrollTo({ top: 0, behavior: "smooth" });
};

return (
Expand Down
5 changes: 5 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
sharp: true
unrs-resolver: true
Comment thread
NiHaiden marked this conversation as resolved.