-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf65195
commit 6de3f4c
Showing
11 changed files
with
71 additions
and
100 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
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 was deleted.
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
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,15 @@ | ||
import React from 'react'; | ||
import useEvents from '../utils/useEvents'; | ||
|
||
const EventPage = () => { | ||
const { events } = useEvents('Technical'); | ||
console.log(events); | ||
|
||
return ( | ||
<div> | ||
<h1>Events</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EventPage; |
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,42 +1,34 @@ | ||
/* eslint-disable max-len */ | ||
/* eslint-disable jsx-a11y/click-events-have-key-events */ | ||
import React from 'react'; | ||
import { Helmet } from 'react-helmet'; | ||
import CardComponent from '../components/EventCard/Card'; | ||
import useEvents from '../utils/useEvents'; | ||
|
||
const cardData = { | ||
title: 'Game Of Thrones', | ||
club: 'Knights Club', | ||
venue: 'LA', | ||
time: '10:00 AM', | ||
date: '17', | ||
month: 'July', | ||
prizes: 'Cash prizes and trophies', | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus in rutrum metus. Pellentesque commodo ante neque, eu hendrerit lorem gravida et. Aliquam scelerisque...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus in rutrum metus. Pellentesque commodo ante neque, eu hendrerit lorem gravida et. Aliquam scelerisque...', | ||
contact: ['Rashmi - 9848948949'], | ||
poster: 'https://res.cloudinary.com/dw9odubkt/image/upload/v1695829352/Rectangle_1_wqmr3i.png', | ||
const Playground = () => { | ||
const { events } = useEvents('technical'); | ||
|
||
return ( | ||
<> | ||
<Helmet> | ||
<meta charset='utf-8' /> | ||
<title>Playground</title> | ||
<meta name='description' content='This is playground' /> | ||
</Helmet> | ||
<CardComponent | ||
key={events[0]?.id} | ||
id={events[0]?.id} | ||
title={events[0]?.title} | ||
club={events[0]?.club} | ||
venue={events[0]?.venue} | ||
time={events[0]?.time} | ||
date={events[0]?.date} | ||
month={events[0]?.month} | ||
prizes={events[0]?.prizes} | ||
description={events[0]?.description} | ||
contact={events[0]?.contact} | ||
poster={events[0]?.poster} | ||
/> | ||
</> | ||
); | ||
}; | ||
const Playground = () => ( | ||
<> | ||
<Helmet> | ||
<meta charset='utf-8' /> | ||
<title>Playground</title> | ||
<meta name='description' content='This is playground' /> | ||
</Helmet> | ||
<CardComponent | ||
title={cardData.title} | ||
club={cardData.club} | ||
venue={cardData.venue} | ||
time={cardData.time} | ||
date={cardData.date} | ||
month={cardData.month} | ||
prizes={cardData.prizes} | ||
description={cardData.description} | ||
contact={cardData.contact} | ||
poster={cardData.poster} | ||
/> | ||
</> | ||
); | ||
|
||
export default Playground; |
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