-
Notifications
You must be signed in to change notification settings - Fork 8
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 #13 from oss2019/main
Major Merge
- Loading branch information
Showing
61 changed files
with
6,986 additions
and
380 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
// import blocksData from '@/types/Block/blockCard.types | ||
import blocksData from '@/types/Block/blockCard.types' | ||
import basic_img from '@/public/Projects/Images/GRAND.png' | ||
|
||
// const data: blocksData = [ | ||
// { | ||
// heading: 'Inter IIT TechMeet 11', | ||
// }, | ||
// ] | ||
const data: blocksData = [ | ||
{ | ||
heading: 'Inter IIT TechMeet 11', | ||
time: 'May', | ||
content: | ||
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', | ||
knowMoreLink: 'https://www.granddecoder.mit.edu/', | ||
image: basic_img.src, | ||
}, | ||
// other achievements | ||
] | ||
|
||
// export default data | ||
export default data |
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,4 @@ | ||
.achievementsWrapper { | ||
background-color: var(--primary-light-pastel-gray); | ||
background-image: url(/Events/micro_carbon.png); | ||
} |
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 |
---|---|---|
@@ -1,7 +1,26 @@ | ||
// Make this page like projects | ||
'use client' | ||
|
||
const page = () => { | ||
return <></> | ||
} | ||
import React, { useState, useEffect } from 'react' | ||
import axios from 'axios' | ||
import Block from '@/components/Block/Block' | ||
import styles from './page.module.css' | ||
|
||
export default function Events() { | ||
const [eventsData, setEventsData] = useState([]) | ||
|
||
const getEvents = () => { | ||
axios.get('/api/admin/achievements').then(response => { | ||
setEventsData(response.data) | ||
}) | ||
} | ||
|
||
export default page | ||
useEffect(() => { | ||
getEvents() | ||
}, []) | ||
|
||
return ( | ||
<div className={styles.achievementsWrapper}> | ||
<Block title='Achievements' blocksData={eventsData} /> | ||
</div> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,14 +1,26 @@ | ||
import data from './data' | ||
import Block from '@/components/Block/Block' | ||
'use client' | ||
|
||
import React, { useState, useEffect } from 'react' | ||
import axios from 'axios' | ||
import Block from '@/components/Block/Block' | ||
import styles from './page.module.css' | ||
|
||
export default function Events() { | ||
const [eventsData, setEventsData] = useState([]) | ||
|
||
const getEvents = () => { | ||
axios.get('/api/admin/events').then(response => { | ||
setEventsData(response.data) | ||
}) | ||
} | ||
|
||
useEffect(() => { | ||
getEvents() | ||
}, []) | ||
|
||
return ( | ||
<> | ||
<div className={styles.eventsWrapper}> | ||
<Block title='Events' blocksData={data} /> | ||
</div> | ||
</> | ||
<div className={styles.eventsWrapper}> | ||
<Block title='Events' blocksData={eventsData} /> | ||
</div> | ||
) | ||
} |
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
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 |
---|---|---|
@@ -1,19 +1,26 @@ | ||
import Block from '@/components/Block/Block' | ||
import data from './data' | ||
'use client' | ||
|
||
import React, { useState, useEffect } from 'react' | ||
import axios from 'axios' | ||
import Block from '@/components/Block/Block' | ||
import styles from './page.module.css' | ||
|
||
export const metadata = { | ||
title: 'Projects for Coding Club', | ||
description: 'Coded by Shubh Agarwal (https://github.com/ShubhAgarwal-dev)', | ||
} | ||
export default function Events() { | ||
const [eventsData, setEventsData] = useState([]) | ||
|
||
const getEvents = () => { | ||
axios.get('/api/admin/projects').then(response => { | ||
setEventsData(response.data) | ||
}) | ||
} | ||
|
||
useEffect(() => { | ||
getEvents() | ||
}, []) | ||
|
||
export default function Project() { | ||
return ( | ||
<> | ||
<div className={styles.projectWrapper}> | ||
<Block title='Projects' blocksData={data} /> | ||
</div> | ||
</> | ||
<div className={styles.projectWrapper}> | ||
<Block title='Projects' blocksData={eventsData} /> | ||
</div> | ||
) | ||
} |
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.