Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Navbar + fixed mobile #91

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import Navbar from "../components/navbar";
import Navbar from "@/components/navbar";
import { ToastContainer } from "react-toastify";
import { NextUIProvider, Spacer } from "@nextui-org/react";
import Footer from "@/components/footer";
Expand Down
43 changes: 43 additions & 0 deletions src/components/footer/Socials.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { FC, ReactNode } from "react";
import { HTMLNextUIProps } from '@nextui-org/system';
import IconLink from "@/components/link-components/IconLink";
import { SiBluesky, SiDiscord, SiForgejo, SiGithub } from "@icons-pack/react-simple-icons";

interface Social {
icon: ReactNode,
name: string,
href: string
}

export const socialList: Social[] = [
{
icon: <SiGithub />,
name: "Github",
href: "https://github.com/Dare2Jam"
},
{
icon: <SiForgejo />,
name: "Personal Git",
href: "https://git.edikoyo.com/Ategon/Jamjar"
},
{
icon: <SiBluesky />,
name: "BlueSky",
href: "https://bsky.app/profile/d2jam.com"
},
{
icon: <SiDiscord />,
name: "Discord",
href: "https://discord.d2jam.com"
}
]

const Socials: FC<HTMLNextUIProps> = ({}) => {
return (
<>
{socialList.map(social => (<IconLink key={social.name} icon={social.icon} href={social.href} />))}
</>
)
}

export default Socials;
10 changes: 2 additions & 8 deletions src/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import IconLink from "../link-components/IconLink";
import { SiDiscord, SiForgejo, SiGithub } from "@icons-pack/react-simple-icons";
import Socials from "./Socials";

export default function Footer() {
return (
<div className="p-8 bg-[#fff] dark:bg-[#222] mt-8 border-t-2 dark:border-white/15 border-black/15 transition-color duration-500 ease-in-out z-10">
<div className="flex justify-between">
<div></div>
<div className="flex gap-3">
<IconLink icon={<SiGithub />} href="https://github.com/Dare2Jam" />
<IconLink
icon={<SiForgejo />}
href="https://git.edikoyo.com/Ategon/Jamjar"
/>
<IconLink icon={<SiDiscord />} href="https://discord.d2jam.com" />
<Socials />
</div>
</div>
</div>
Expand Down
109 changes: 0 additions & 109 deletions src/components/navbar/MobileNavbar.tsx

This file was deleted.

123 changes: 0 additions & 123 deletions src/components/navbar/MobileNavbarUser.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions src/components/navbar/NavbarButtonAction.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/navbar/NavbarButtonLink.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/navbar/NavbarIconLink.tsx

This file was deleted.

Loading
Loading