Skip to content

Commit

Permalink
Merge pull request #13 from sam-shervin/footer
Browse files Browse the repository at this point in the history
Footer added and some animations added and modified
  • Loading branch information
sam-shervin authored Mar 18, 2024
2 parents 805c0f1 + 3d4d499 commit 1fe67ff
Show file tree
Hide file tree
Showing 17 changed files with 393 additions and 97 deletions.
Binary file added src/assets/comsocLogowhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/comsocLogowhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/devto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/discord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export default function Countdown({

return (
<section>
<section className="mt-12 grid grid-rows-2 justify-items-center font-offbittrialbold text-[150px] space-y-[-50px]">
<section className="grid grid-cols-4 justify-items-center gap-10">
<section className="mt-8 grid grid-rows-2 justify-items-center font-offbittrialbold text-[150px] space-y-[-50px]">
<section className="grid grid-cols-4 justify-items-center gap-16">
<p className="">{timeLeft.days}</p>
<p>{timeLeft.hours}</p>
<p>{timeLeft.minutes}</p>
Expand Down
213 changes: 213 additions & 0 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
import React from "react";
import comsocLogowhite from "../assets/comsocLogowhite.svg";
import instagram from "../assets/socialmedia/instagram.png";
import github from "../assets/socialmedia/github.png";
import linkedin from "../assets/socialmedia/linkedin.png";
import discord from "../assets/socialmedia/discord.png";
import youtube from "../assets/socialmedia/youtube.png";
import twitter from "../assets/socialmedia/twitter.png";
import telegram from "../assets/socialmedia/telegram.png";
import devto from "../assets/socialmedia/devto.png";

const Footer = () => {
return (
<div className="relative z-0 mx-32">
<section className="h-0.5 bg-gradient-to-r from-[#CF1259] to-[#7161EF] my-4 " />
<footer className="font-montserrat">
<div className="pb-6 text-gray-800 flex flex-wrap justify-left text-left items-center">
<div className="pt-8 lg:pt-4 w-11/12 lg:mx-0 sm:w-2/3 lg:w-3/12 order-4 lg:order-1">
<img
src={comsocLogowhite.src}
alt="IEEE CS VITC Logo"
className="ml-4 lg:ml-20"
/>
</div>
<div className="mt-3 w-full lg:w-3/12 py-6 lg:py-0 pl-28 hidden lg:block order-1 lg:order-2">
<div className="text-lg lg:text-base text-white inline-block mb-3">
Menu
<div id="underlineGradient" />
</div>
<a
href="/"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
Home
</a>
<a
href="/Team"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
The Team
</a>
<a
href="/Events"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
Events
</a>
<a
href="/Project"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
Project
</a>
<a
href="/Blogs"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
Blogs
</a>
<a
href="/Contacts"
className="my-3 block text-white hover:text-gray-200 text-sm"
>
Contacts
</a>
</div>
<div className="mt-3 w-full lg:w-3/12 order-2 lg:order-3">
<div className="text-lg lg:text-base text-white inline-block mb-3">
Address
<div id="underlineGradient" />
</div>
<a
href="https://goo.gl/maps/C9UE9JLWnBAfQPKe7"
target="_blank"
rel="noreferrer"
className="my-3 block text-white hover:text-gray-200 text-base lg:text-sm lg:pr-16"
>
Kelambakkam - Vandalur Rd, Rajan Nagar, Chennai, Tamil Nadu -
600127
</a>
<br />
<div className="text-lg lg:text-base text-white inline-block mb-3">
Email
<div id="underlineGradient" />
</div>
<a
href="mailto:[email protected]"
target="_blank"
rel="noreferrer"
className="my-3 block text-white hover:text-gray-200 text-base lg:text-sm"
>
[email protected]
</a>
</div>
<div className="mt-3 w-full lg:w-3/12 order-3 lg:order-4">
<div className="text-lg lg:text-base text-white inline-block lg:my-0 lg:pb-4 pl-6 lg:pl-0">
Social Media
<div id="underlineGradient" />
</div>
<div className="grid grid-cols-4 lg:pr-16">
<div>
<a
href="https://www.instagram.com/compsoc.vitcc/"
target="_blank"
rel="noreferrer"
>
<img
src={instagram.src}
alt="Instagram"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://discord.gg/6vkY3kcZnE"
target="_blank"
rel="noreferrer"
>
<img
src={discord.src}
alt="Discord"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://github.com/ComputerSocietyVITC"
target="_blank"
rel="noreferrer"
>
<img
src={github.src}
alt="Github"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://www.linkedin.com/company/ieee-computer-society-vit-chennai/"
target="_blank"
rel="noreferrer"
>
<img
src={linkedin.src}
alt="LinkedIn"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://www.youtube.com/channel/UCOgwDinZGau4rwv3swAe-nQ"
target="_blank"
rel="noreferrer"
>
<img
src={youtube.src}
alt="youtube"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://t.me/IEEE_CS_VIT_Chennai"
target="_blank"
rel="noreferrer"
>
<img
src={telegram.src}
alt="telegram"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://twitter.com/ieeecsvitc"
target="_blank"
rel="noreferrer"
>
<img
src={twitter.src}
alt="twitter"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
<div>
<a
href="https://dev.to/ieeecsvitc"
target="_blank"
rel="noreferrer"
>
<img
src={devto.src}
alt="devto"
className="h-7 my-5 mx-auto lg:mx-0"
></img>
</a>
</div>
</div>
</div>
</div>
</footer>
</div>
);
};

export default Footer;
69 changes: 36 additions & 33 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
import Link from "next/link";
import { useRouter } from "next/router";
import * as React from "react";

const Navbar = ({
buttons,
active,
buttons,
active,
}: {
buttons: string[];
active: string;
buttons: string[];
active: string;
}): JSX.Element => {
return (
<>
<nav className="justify-center flex font-semibold text-[20px]">
<Link href="/">
<section
className={
"px-16 py-6 " + `${"/" === active ? "gradient-text" : ""}`
}
>
Home
</section>
</Link>
{buttons.map((button) => {
const isHighlighted = "/" + button === active;
return (
<Link href={`/${button}`}>
<section
className={`px-16 py-6 ${isHighlighted ? "gradient-text" : ""}`}
>
{button}
</section>
</Link>
);
})}
</nav>
<section className="h-0.5 bg-gradient-to-r from-[#CF1259] to-[#7161EF]" />
</>
);
return (
<>
<section className="top-0 left-0 w-full bg-inherit shadow-md z-50">
<nav className="justify-center flex font-normal text-[20px]">
<Link href="/">
<section
className={
"px-16 py-6 " + `${"/" === active ? "gradient-text" : ""}`
}
>
Home
</section>
</Link>
{buttons.map((button) => {
const isHighlighted = "/" + button === active;
return (
<Link href={`/${button}`}>
<section
className={`px-16 py-6 ${
isHighlighted ? "gradient-text" : ""
}`}
>
{button}
</section>
</Link>
);
})}
</nav>
<section className="h-0.5 bg-gradient-to-r from-[#CF1259] to-[#7161EF]" />
</section>
</>
);
};

export default Navbar;
47 changes: 44 additions & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,58 @@
import Footer from "@hackhub/components/footer";
import Navbar from "@hackhub/components/header";
import "@hackhub/styles/globals.css";
import "@hackhub/styles/shadows.css";
import type { AppProps } from "next/app";
import { useRouter } from "next/router";
import { Montserrat } from "next/font/google";
import { motion } from "framer-motion";

const montserrat = Montserrat({
subsets: ["latin"],
variable: "--font-montserrat",
});

const loadingAnimation = {
initial: {
opacity: 0,
scale: 0.8,
transition: { duration: 3, ease: "easeInOut" },
},
animate: {
opacity: 1,
scale: 1,
transition: { duration: 3, ease: "easeInOut" },
},
};

export default function App({ Component, pageProps }: AppProps) {
const buttons = ["Team", "Project", "Contacts", "Events", "Blogs"];
const router = useRouter();
return (
<>
<section className="bg-[#03091E] text-[#EAEAEA]">
<Navbar buttons={buttons} active={router.pathname} />
<Component {...pageProps} />
<section
className={`bg-[#03091E] text-[#EAEAEA] ${montserrat.className}`}
>
<motion.section
initial={{ opacity: 0, scale: 0.8 }}
animate={{ opacity: 1, scale: 1 }}
transition={{
duration: 2,
delay: 2,
ease: "easeInOut",
}}
>
<Navbar buttons={buttons} active={router.pathname} />
</motion.section>
<motion.section
className="bg-[#03091E]"
initial="initial"
animate="animate"
variants={loadingAnimation}
>
<Component {...pageProps} />
<Footer />
</motion.section>
</section>
</>
);
Expand Down
Loading

0 comments on commit 1fe67ff

Please sign in to comment.