From b1e27aeda18914f19079c495eebad6be4ed2ff15 Mon Sep 17 00:00:00 2001 From: heyyakash Date: Tue, 28 Nov 2023 20:46:07 +0530 Subject: [PATCH] corrected events --- src/assets/scss/events/events.scss | 9 ++++--- src/components/Events/Events.js | 13 +++++---- src/events.json | 42 +++++------------------------- 3 files changed, 20 insertions(+), 44 deletions(-) diff --git a/src/assets/scss/events/events.scss b/src/assets/scss/events/events.scss index 4de6ecc..326b0dc 100644 --- a/src/assets/scss/events/events.scss +++ b/src/assets/scss/events/events.scss @@ -49,17 +49,20 @@ padding: 0 20px; display: flex; flex-direction: column; - gap:1rem; + margin: 1rem 0; + // gap:1rem; // line-height:0px; h3{ font-size:1.2789rem; font-weight: 700; - line-height: 0px; + margin:0; + // line-height: 0px; } p{ - margin-top:-10px; + // margin-top:-10px; font-size: .8rem; + margin:0; // line-height: 0px; } } diff --git a/src/components/Events/Events.js b/src/components/Events/Events.js index 39b0335..c44c599 100644 --- a/src/components/Events/Events.js +++ b/src/components/Events/Events.js @@ -17,20 +17,23 @@ const Events = () => {
+ {data.length===0?(

No New Events

):""}
+ {data.map((x, i) => { return ( -
+
logo

{x.event_name}

-

{x.speaker_name} , {x.speaker_designation} -
- {x.event_date}, {x.event_start_time} - {x.event_start_time}

+

{x.speaker_name} {x.speaker_designation}

+

{x.event_description}

+

{x.event_date}, {x.event_start_time} - {x.event_start_time}

+
-
+ ) })}
diff --git a/src/events.json b/src/events.json index 2cd500a..1be3e20 100644 --- a/src/events.json +++ b/src/events.json @@ -1,43 +1,13 @@ [ { - "event_name": "This is a new Event", - "event_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - "speaker_name":"John Doe", - "speaker_designation":"App Developer at Google", + "event_name": "PointBlank Recruitment 2023-24", + "event_description": "Unleash Possibilities : Point Blank is Recruiting !!!. Click to goto form", + "speaker_name":"", + "speaker_designation":"", "event_date":"12/12/2023", "event_start_time":"18:00", "event_end_time":"19:00", - "event_poster":"https://www.oyorooms.com/blog/wp-content/uploads/2018/02/event.jpg" - }, - { - "event_name": "This is a new Event", - "event_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - "speaker_name":"John Doe", - "speaker_designation":"App Developer at Google", - "event_date":"12/12/2023", - "event_start_time":"18:00", - "event_end_time":"19:00", - "event_poster":"https://www.oyorooms.com/blog/wp-content/uploads/2018/02/event.jpg" - }, - { - "event_name": "This is a new Event", - "event_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - "speaker_name":"John Doe", - "speaker_designation":"App Developer at Google", - "event_date":"12/12/2023", - "event_start_time":"18:00", - "event_end_time":"19:00", - "event_poster":"https://www.oyorooms.com/blog/wp-content/uploads/2018/02/event.jpg" - }, - { - "event_name": "This is a new Event", - "event_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - "speaker_name":"John Doe", - "speaker_designation":"App Developer at Google", - "event_date":"12/12/2023", - "event_start_time":"18:00", - "event_end_time":"19:00", - "event_poster":"https://www.oyorooms.com/blog/wp-content/uploads/2018/02/event.jpg" + "event_poster":"https://www.oyorooms.com/blog/wp-content/uploads/2018/02/event.jpg", + "event_link":"/form" } - ] \ No newline at end of file