generated from GDGVIT/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from SayarB/team
- Loading branch information
Showing
11 changed files
with
421 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import '../globals.css' | ||
import { Unbounded } from 'next/font/google' | ||
import localFont from "next/font/local" | ||
|
||
const unbounded = Unbounded({ subsets: ['latin'], variable: '--font-unbounded' }) | ||
const neue_machina = localFont({ | ||
src: '../NeueMachina-Regular.otf', | ||
variable: '--font-neuemachina' | ||
}) | ||
|
||
export const metadata = { | ||
title: 'GDSC VIT', | ||
description: 'Google Developers Students Club VIT', | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en" className={`${unbounded.variable} ${neue_machina.variable} text-[10px] md:text-[16px]`} > | ||
<body className='overflow-hidden bg-dark'>{children}</body> | ||
</ html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client" | ||
|
||
import React, { useState } from 'react' | ||
import Navbar from '@/components/Navbar' | ||
import TeamCardForGrid from '@/components/TeamCardForGrid' | ||
import team_members_technical from "@/content/team_members.json" | ||
import team_members_design from "@/content/team_members_design.json" | ||
import team_members_managers from "@/content/team_members_managers.json" | ||
import Footer from '@/components/Footer' | ||
|
||
export default function Team() { | ||
const [curtab, setCurtab] = useState(0) | ||
return ( | ||
<main id='main-thing' className='h-[100vh] overflow-scroll overflow-x-hidden snap-y'> | ||
<Navbar theme={"light"} /> | ||
<div className="sm:grid-cols-12 sm:grid p-10 mt-24 gap-16"> | ||
<div className="xl:col-span-4 lg:col-span-4 md:col-span-3 col-span-8 text-white pt-24"> | ||
<h1 className={`font-extrabold ${curtab ===0 ?"text-pastel_red" : curtab===1 ? "text-pastel_blue" : "text-pastel_green"} uppercase lg:text-3xl md:text-2xl text-4xl`}>Meet The Team</h1> | ||
<p className="mt-4 font-light">We’ve got a strong team filled with caffeine addicted developers, gradients loving designers and machine like working managers.</p> | ||
<div className="mt-8 flex flex-col gap-2"> | ||
<p onClick={() => setCurtab(0)} className={`${curtab === 0 ? "text-pastel_red underline underline-offset-4 team-tab-after" : "text-grey"} hover:text-pastel_red cursor-pointer`}>Techies</p> | ||
<p onClick={() => setCurtab(1)} className={`${curtab === 1 ? "text-pastel_blue underline underline-offset-4 team-tab-after" : "text-grey"} hover:text-blue cursor-pointer`}>Designers</p> | ||
<p onClick={() => setCurtab(2)} className={`${curtab === 2 ? "text-pastel_green underline underline-offset-4 team-tab-after" : "text-grey"} hover:text-green cursor-pointer`}>Managers</p> | ||
</div> | ||
</div> | ||
<div className="xl:col-span-8 lg:col-span-8 md:col-span-9 col-span-12 text-white grid lg:grid-cols-3 md:grid-cols-1 sm:grid-cols-3 sm:mt-0 mt-16"> | ||
{curtab === 0 ? team_members_technical.map((mem, i) => <TeamCardForGrid i={i} key={"mem" + i} title={mem.name} img={mem.img} subtitle={mem.position} />) : curtab === 1 ? team_members_design.map((mem, i) => <TeamCardForGrid i={i} key={"mem" + i} title={mem.name} img={mem.img} subtitle={mem.position} />) : team_members_managers.map((mem, i) => <TeamCardForGrid i={i} key={"mem" + i} title={mem.name} img={mem.img} subtitle={mem.position} />)} | ||
</div> | ||
</div> | ||
<Footer bg={curtab === 0 ? "bg-pastel_red" : curtab ===1 ? "bg-pastel_blue" : "bg-pastel_green"} /> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
import { FC } from 'react' | ||
|
||
interface Props { | ||
bg: string | ||
} | ||
|
||
const Footer: FC<Props> = ({bg}) => { | ||
return ( | ||
<div className={`w-full p-16 ${bg}`}> | ||
<p className="text-center">Made with ♥ by GDSC-VIT</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react' | ||
import Image from 'next/image' | ||
import Card from './Card' | ||
type Props = { | ||
img: string | ||
title: string | ||
subtitle?: string; | ||
i: number; | ||
} | ||
|
||
const TeamCardForGrid = ({ img, title, subtitle, i }: Props) => { | ||
return ( | ||
<div className='bg-white flex-col p-3 m-2 lg:m-4 rounded-md border-2 border-black flex'> | ||
<div className='w-full border-2 border-black rounded-md '> | ||
<Image src={img} layout='responsive' width={300} height={300} alt='Logo' /> | ||
</div> | ||
<h2 className='my-3 font-sans xl:text-2xl text-xl font-semibold text-black'> | ||
{title} | ||
</h2> | ||
<h3 className='text-grey'> | ||
{subtitle} | ||
</h3> | ||
</div> | ||
) | ||
} | ||
export default TeamCardForGrid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"name": "Pranav Ram", | ||
"position": "Design Lead — Projects", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"name": "Vishesh Bansal", | ||
"position": "Community Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
}, | ||
{ | ||
"name": "Yajat", | ||
"position": "Tech Lead", | ||
"img": "/vishesh.jpg" | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.