Skip to content

Commit

Permalink
moved assets to static content, added metadata for different pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeistxx committed Aug 9, 2023
1 parent ba7453c commit 6f098dc
Show file tree
Hide file tree
Showing 40 changed files with 94 additions and 44 deletions.
9 changes: 9 additions & 0 deletions client/app/events/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import '../../styles/globals.css';
export const metadata = {
title: 'Events',
description: "Students' Chapter CSE events"
}

export default function Layout({ children }) {
return <div>{children}</div>;
}
2 changes: 1 addition & 1 deletion client/app/events/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import styles from '../../styles/Event.module.css';
import Event from '../../component/Event';

import { eventsData } from '../../assets/data';
import { eventsData } from '../../public/static/assets/data';
const events = () => {
return (
<>
Expand Down
4 changes: 2 additions & 2 deletions client/app/layout.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { LayoutProvider } from '../component/LayoutProvider';

export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
title: "Students' Chapter CSE",
description: "The ofiicial website of IEI Students' Chapter CSE",
};

export default function RootLayout({ children }) {
Expand Down
2 changes: 1 addition & 1 deletion client/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { lazy, Suspense } from 'react';
import styles from '../styles/Home.module.css';

import { upcomingEvents } from '../assets/data';
import { upcomingEvents } from '../public/static/assets/data';
import Loading from './loading';
import About from '../component/About';
import Counter from '../component/Counter';
Expand Down
7 changes: 3 additions & 4 deletions client/app/register/layout.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import '../../styles/globals.css';
import styles from '../../styles/Home.module.css';
export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
title: 'Register',
description: 'Register to become a Member',
};

export default function Layout({ children }) {
return <div className={styles.container}>{children}</div>;
return <div>{children}</div>;
}
9 changes: 9 additions & 0 deletions client/app/team/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import '../../styles/globals.css';
export const metadata = {
title: 'Teams',
description: "Team of Students' Chapter CSE"
}

export default function Layout({ children }) {
return <div>{children}</div>;
}
2 changes: 0 additions & 2 deletions client/app/team/page.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
'use client';

import Navbar from '../../component/Navbar';
import Teams from '../../component/Teams';

import Footer from '../../component/Footer';

const team = () => {
Expand Down
2 changes: 1 addition & 1 deletion client/component/Header/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from '../../styles/Header.module.css';
import CardImg from '../../assets/cardimg.webp';
import CardImg from '../../public/static/assets/cardimg.webp';
import Image from 'next/image';
import { useTypewriter, Cursor } from 'react-simple-typewriter'

Expand Down
2 changes: 1 addition & 1 deletion client/component/Hod/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styles from '../../styles/Hod.module.css';
import Image from 'next/image';
import Avatar from '../../assets/hod_img.webp'
import Avatar from '../../public/static/assets/hod_img.webp'

const Hod = () => {
return (
Expand Down
8 changes: 0 additions & 8 deletions client/component/TeamCards/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ export default function TeamCards({ img, name, desg, socials }) {
</Link>
</div>
</div>
{/*<div className={styles.mailHolder}>
<div className={styles.mail}>
<div className={styles.mailLogo}>
<EnvelopeSimple display='block' />
</div>
<div className={styles.mailAddress}>example@gmail.com</div>
</div>
</div>*/}
</div>
</div>
</>
Expand Down
5 changes: 2 additions & 3 deletions client/component/Teams/index.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import styles from '../../styles/Team.module.css';
import TeamCards from '../TeamCards';
import { teams } from '../../assets/data';
import { lazy, Suspense } from 'react';
import { teams } from '../../public/static/assets/data';
import { forwardRef } from 'react';
const Footer = lazy(() => import('../Footer/index'))


export default function Teams() {
return (
Expand Down
43 changes: 43 additions & 0 deletions client/package-lock.json

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

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react-dom": "18.2.0",
"react-hook-form": "^7.45.4",
"react-icons": "^4.10.1",
"react-lazy-load-image-component": "^1.6.0",
"react-simple-typewriter": "^5.0.1"
},
"devDependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
40 changes: 20 additions & 20 deletions client/assets/data.js → client/public/static/assets/data.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import avatar from '../assets/avatar.png';
import Bishakh from '../assets/neogi.webp';
import Irshit from '../assets/irshit.webp';
import Soumit from '../assets/soumit.webp';
import Abhraneel from '../assets/abhraneel.webp';
import Prasun from '../assets/prasun.webp';
import Mayukh from '../assets/mayukh.webp';
import Neelakshi from '../assets/neelakshi.webp';
import RohitC from '../assets/rohitc.webp';
import Moulendu from '../assets/moulendu.webp';
import ArnabKr from '../assets/ArnabKr.webp';
import Nabajit from '../assets/nabajit.webp';
import Aratrik from '../assets/Aratrik.webp';
import Arnab from '../assets/Arnab.webp';
import pritanshu from '../assets/prit.webp';
import joydeep from '../assets/joydeep.webp';
import dhriti from '../assets/Dhriti.webp';
import rohitp from '../assets/rohitP.webp';
import diptanshu from '../assets/diptanshu.webp';
import debdeep from '../assets/debdeep.webp';
import avatar from './avatar.png';
import Bishakh from './neogi.webp';
import Irshit from './irshit.webp';
import Soumit from './soumit.webp';
import Abhraneel from './abhraneel.webp';
import Prasun from './prasun.webp';
import Mayukh from './mayukh.webp';
import Neelakshi from './neelakshi.webp';
import RohitC from './rohitc.webp';
import Moulendu from './moulendu.webp';
import ArnabKr from './ArnabKr.webp';
import Nabajit from './nabajit.webp';
import Aratrik from './Aratrik.webp';
import Arnab from './Arnab.webp';
import pritanshu from './prit.webp';
import joydeep from './joydeep.webp';
import dhriti from './Dhriti.webp';
import rohitp from './rohitP.webp';
import diptanshu from './diptanshu.webp';
import debdeep from './debdeep.webp';

export const testimonialCards = [
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ a {

@font-face {
font-family: 'quaz';
src: url('/fonts/Qaz-ZV74m.ttf');
src: url('/static/fonts/Qaz-ZV74m.ttf');
font-display: swap;
}

Expand Down

0 comments on commit 6f098dc

Please sign in to comment.