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

website with basic features #1

Merged
merged 111 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
d41c9b5
feat: navbar component
SayarB Jul 4, 2023
5d462a0
feat: banner created
SayarB Jul 8, 2023
895b067
feat: social icons added
SayarB Jul 8, 2023
dbfcc8f
feat: added some sections
SayarB Aug 10, 2023
76c1439
fix: added ci false
SayarB Aug 10, 2023
75f535d
fix: linting fix
SayarB Aug 10, 2023
da7ec9e
feat: added navbar color change on section change
SayarB Aug 10, 2023
5dda772
feat: added blog section and header animations
SayarB Aug 12, 2023
6c18934
feat: meet the team horizontal scroll
anirudhgray Aug 20, 2023
2f421ae
feat: projects
anirudhgray Aug 20, 2023
15558fb
refactor: cleanup
anirudhgray Aug 20, 2023
f33068d
feat: levels
anirudhgray Aug 20, 2023
c70098e
fix: slower
anirudhgray Aug 20, 2023
eaf8bd4
fix: minor fixes
anirudhgray Aug 20, 2023
8536da3
Merge pull request #1 from SayarB/anirudh-dev
SayarB Aug 20, 2023
da63e92
feat: added starting animation
SayarB Aug 20, 2023
fa70920
feat: added scroll animations for headers
SayarB Aug 20, 2023
a8618f0
feat: fixed animation offsets
SayarB Aug 20, 2023
aa1bde4
Merge pull request #2 from SayarB/sayar
SayarB Aug 20, 2023
7b38712
fix: fixed animations on mview
SayarB Aug 27, 2023
f2854fb
Merge pull request #3 from SayarB/sayar
SayarB Aug 27, 2023
53146bc
feat: added card slide in animation
SayarB Aug 27, 2023
19ed0a4
Merge pull request #4 from SayarB/sayar
SayarB Aug 27, 2023
f7f2738
fix: fixed some bugs
SayarB Aug 27, 2023
3365ca7
Merge pull request #5 from SayarB/sayar
SayarB Aug 27, 2023
f2174f3
feat: menu
anirudhgray Aug 29, 2023
081f35b
feat: events
anirudhgray Aug 30, 2023
5935c68
Merge pull request #6 from SayarB/menu
anirudhgray Aug 30, 2023
5100b15
fix: menu minor fix
anirudhgray Aug 30, 2023
9340307
Merge pull request #7 from SayarB/menu
anirudhgray Aug 30, 2023
ed95b3b
fix: events json
anirudhgray Aug 30, 2023
4d1eb18
fix: opening animation
SayarB Sep 6, 2023
ff16006
Merge pull request #8 from SayarB/sayar
SayarB Sep 6, 2023
921614e
fix: animation jitter fix
SayarB Sep 6, 2023
e50d2a3
Merge pull request #9 from SayarB/sayar
SayarB Sep 6, 2023
0682b03
fix: scroll to top on load
SayarB Sep 6, 2023
3e91042
Merge branch 'master' of github.com:SayarB/GDSC-official-website into…
SayarB Sep 6, 2023
3f10bb5
fix: added lockfile
SayarB Sep 6, 2023
de72dba
Merge pull request #10 from SayarB/sayar
SayarB Sep 6, 2023
5613165
feat: added blogs api route
SayarB Sep 7, 2023
7d098c3
Merge pull request #11 from SayarB/sayar
SayarB Sep 7, 2023
cb206d8
feat: team page basic
anirudhgray Sep 8, 2023
2962507
feat: footer
anirudhgray Sep 8, 2023
a3076e9
feat: added blog hover animation
SayarB Sep 8, 2023
2131e77
fix: text font responsiveness for blogs
SayarB Sep 8, 2023
877173d
Merge pull request #12 from SayarB/team
anirudhgray Sep 9, 2023
77d7589
fix: auto horizontal to fame
anirudhgray Sep 9, 2023
11db4e2
fix: navbar on other pages
anirudhgray Sep 9, 2023
32873b2
Merge branch 'master' into sayar
SayarB Sep 9, 2023
78e0937
Merge pull request #13 from SayarB/sayar
SayarB Sep 9, 2023
f60d79b
fix: increased z index for navbar
SayarB Sep 9, 2023
994916e
Merge pull request #14 from SayarB/sayar
SayarB Sep 9, 2023
94fde36
feat: added team page animation
SayarB Oct 10, 2023
b17311b
Merge pull request #15 from SayarB/sayar
SayarB Oct 11, 2023
0c943fc
feat: see all team
anirudhgray Oct 14, 2023
0dca2ef
fix: blog links
anirudhgray Oct 14, 2023
108099f
feat: visited animation
anirudhgray Oct 14, 2023
ec6826a
fix: social links
anirudhgray Oct 14, 2023
8cbcd66
fix: logos
anirudhgray Oct 16, 2023
a771507
feat: footer
anirudhgray Oct 16, 2023
99f791d
feat: conditional rendering of animation
SayarB Oct 17, 2023
e3621e7
feat: social footer
anirudhgray Oct 28, 2023
0adbbbd
fix: footer team link
anirudhgray Oct 28, 2023
4b9d54d
feat: team data
anirudhgray Oct 28, 2023
44ef13b
fix: stuff
anirudhgray Oct 29, 2023
1c78f4c
fix: stuff
anirudhgray Oct 29, 2023
ecc8b0c
feat: project data
anirudhgray Oct 29, 2023
6dfae90
fix: direct socials
anirudhgray Oct 29, 2023
71e7036
fix: menu scroll
anirudhgray Oct 29, 2023
c45d932
fix: community link
anirudhgray Oct 29, 2023
cd97bfb
fix: stuff
anirudhgray Oct 29, 2023
a131a95
feat: member socials
anirudhgray Oct 29, 2023
559d630
feat: add data
anirudhgray Oct 30, 2023
d8756d2
feat: team page scroll
anirudhgray Oct 30, 2023
86bc5eb
fix: stuff
anirudhgray Oct 30, 2023
45e52dd
fix: team scrolling
anirudhgray Oct 30, 2023
a85b288
feat: stuff
anirudhgray Oct 30, 2023
0c02d67
fix: animation removed on rerender
SayarB Oct 30, 2023
c6f4e30
Merge branch 'master' into sayar
SayarB Oct 30, 2023
9716bba
fix: starting anim bug fix
SayarB Oct 30, 2023
95fa67d
Merge pull request #16 from SayarB/sayar
SayarB Oct 30, 2023
6e5d3be
feat: events data
anirudhgray Oct 30, 2023
1d6172b
Merge branch 'master' of https://github.com/SayarB/GDSC-official-website
anirudhgray Oct 30, 2023
4e6955d
fix: font
SayarB Oct 30, 2023
7a6c9d9
Merge pull request #17 from SayarB/sayar
SayarB Oct 30, 2023
c87787c
fix: team resp
anirudhgray Oct 30, 2023
38eba7a
Merge branch 'master' of https://github.com/SayarB/GDSC-official-website
anirudhgray Oct 30, 2023
ecfb865
fix: level divider
SayarB Oct 30, 2023
744df1f
Merge pull request #18 from SayarB/sayar
SayarB Oct 30, 2023
90e19d0
fix: footer bg
anirudhgray Oct 30, 2023
fc3a8cd
fix: stuff
anirudhgray Oct 30, 2023
158c38b
feat: re add team anim
anirudhgray Oct 30, 2023
fb2380c
fix: add fade to team
anirudhgray Oct 30, 2023
30edc18
fix: stuff
anirudhgray Oct 30, 2023
cbc3ae0
fix: stuff
anirudhgray Oct 30, 2023
31952f0
feat: bouncing arrow
anirudhgray Oct 30, 2023
c21d368
fix: cleanup
anirudhgray Oct 30, 2023
274297b
fix: content stuff
anirudhgray Oct 31, 2023
45ad6a4
feat: potrait loading animation
SayarB Nov 2, 2023
506dcc0
Merge pull request #19 from SayarB/sayar
SayarB Nov 2, 2023
eda7c8a
fix: minor
SayarB Nov 2, 2023
195bdfd
Merge pull request #20 from SayarB/sayar
SayarB Nov 2, 2023
4c0adbc
fix: window undefined error
SayarB Nov 2, 2023
b834ec9
Merge pull request #21 from SayarB/sayar
SayarB Nov 2, 2023
d960ca6
fix: minor bug ifx
SayarB Nov 2, 2023
d0e11b9
Merge pull request #22 from SayarB/sayar
SayarB Nov 2, 2023
ef688bd
fix: team page headings
anirudhgray Nov 2, 2023
5e5ce69
fix: minor design stuff
anirudhgray Nov 2, 2023
bb053dd
fix: team grid titles
anirudhgray Nov 3, 2023
f9b9066
fix: team pic and ctf
anirudhgray Nov 3, 2023
b36cc38
feat: gtags and footer
anirudhgray Nov 8, 2023
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
10 changes: 10 additions & 0 deletions node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions web/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
35 changes: 35 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
34 changes: 34 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
1 change: 1 addition & 0 deletions web/animations/loading_anim.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/animations/loading_mobile.json

Large diffs are not rendered by default.

Binary file added web/app/NeueMachina-Regular.otf
Binary file not shown.
58 changes: 58 additions & 0 deletions web/app/api/blogs/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { NextResponse } from "next/server";

type UserSchema = {
userId: string;
name: string;
username: string;
};

type PostSchema = {
id: string;
creatorId: keyof UserSchema;
title: string;
createdAt: number;
updatedAt: number;
uniqueSlug: string;
};

export type ResponsePostSchema = PostSchema & {
user: UserSchema;
};

type MediumResponse = {
success: boolean;
payload: {
collection: any;
references: {
Collection: any;
User: Record<string, UserSchema>;
Post: Record<string, PostSchema>;
};
};
};

export async function GET(request: Request) {
const res = await fetch("https://medium.com/gdg-vit?format=json");
const text = await res.text();
const json = JSON.parse(text.substring(text.indexOf("{"))) as MediumResponse;
text.indexOf("{");

const posts = getPosts(json);
return NextResponse.json(posts);
}

const getPosts = (json: MediumResponse): ResponsePostSchema[] => {
const postsJson = json.payload.references.Post;
const arr: PostSchema[] = [];
Object.keys(postsJson).forEach((key) => {
if (postsJson[key]) {
arr.push(postsJson[key]);
}
});

arr.sort((a, b) => b.createdAt - a.createdAt);
const response: ResponsePostSchema[] = arr.map((ele) => {
return { ...ele, user: json.payload.references.User[ele.creatorId] };
});
return response.slice(0, 5);
};
Binary file added web/app/favicon.ico
Binary file not shown.
96 changes: 96 additions & 0 deletions web/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;500;600;700;800;900&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--font-unbounded: "Unbounded", sans-serif;
}

* {
box-sizing: border-box;
}

.horizontal-section,
.horizontal-section2 {
padding: 100px 0;
background-color: pink;
}

.sticky-wrapper,
.sticky-wrapper2 {
position: sticky;
top: 100px;
width: 100%;
overflow: hidden;
}

.element-wrapper,
.element-wrapper2 {
position: relative;
display: flex;
}

.element {
width: 500px;
height: 400px;
background-color: purple;
margin: 0 20px 0 0;
flex-shrink: 0;
}

.overlay {
/* height: 0%; */
width: 100%;
position: fixed;
z-index: 50;
top: 0;
left: 0;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.95);
overflow-y: hidden;
transition: 0.5s;
}

.overlay-content {
position: relative;
width: 100%;
}

.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: #818181;
display: block;
transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
color: #f1f1f1;
}

.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}
.team-tab-after::after {
content: "";
display: inline-block;
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid; /* You can change the color by specifying a different value here */
margin-left: 8px; /* Adjust the margin as needed for spacing */
}

/* write css to style the page scrollbar to be black background and high z index */
::-webkit-scrollbar {
width: 0px;
background-color: black;
z-index: 100;
}
63 changes: 63 additions & 0 deletions web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import Script from 'next/script';
import './globals.css';
import localFont from 'next/font/local';

const neue_machina = localFont({
src: '/NeueMachina-Regular.otf',
variable: '--font-neuemachina',
});

export const metadata = {
title: 'GDSC VIT',
description: 'Google Developers Students Club VIT',
openGraph: {
type: 'website',
locale: 'en_IE',
url: 'https://dscvit.com',
site_name: 'GDSC VIT',
images: [
{
url: 'https://dscvit.com/projects/default.png',
width: 1200,
height: 630,
alt: 'GDSC VIT',
},
],
},
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html
lang="en"
className={`${neue_machina.variable} text-[10px] md:text-[16px]`}
>
<head>
<Script id="gtag" strategy="afterInteractive">
{`
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M4WQ5S5N');
`}
</Script>
</head>
<body className="overflow-hidden bg-dark">
<div
dangerouslySetInnerHTML={{
__html: `
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M4WQ5S5N"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
`,
}}
/>
{children}
</body>
</html>
);
}
Loading
Loading