Skip to content

Commit

Permalink
refactor: move code around
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Dec 3, 2024
1 parent 6f319d9 commit 958326d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Inter } from "next/font/google";

import "./globals.css";

import Footer from "@/components/Footer";
import { Footer } from "@/components/footer";
import GoogleAnalytics from "@/components/GoogleAnalytics";
import Header from "@/components/Header";
import { Header } from "@/components/header";
import { Toaster } from "@/components/ui/toaster";

const inter = Inter({ subsets: ["latin"], fallback: ["sans-serif"] });
Expand Down
16 changes: 0 additions & 16 deletions src/components/Header.tsx

This file was deleted.

7 changes: 2 additions & 5 deletions src/components/Footer.tsx → src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { GithubIcon } from "lucide-react";

const Footer = () => {
export function Footer() {
return (
<div className="flex h-24 flex-col items-center justify-between px-2 py-2 text-center sm:relative sm:w-[100%] sm:place-content-center sm:px-8 sm:py-0">
<div className="flex flex-col">
Expand All @@ -24,6 +23,4 @@ const Footer = () => {
</div>
</div>
);
};

export default Footer;
}
11 changes: 11 additions & 0 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Link from "next/link";

export function Header() {
return (
<nav className="wrapper flex-between inset-x-0 z-30 h-24">
<div className="text-4xl font-bold text-primary sm:text-5xl">
<Link href="/">GE-Z</Link>
</div>
</nav>
);
}

0 comments on commit 958326d

Please sign in to comment.