-
Notifications
You must be signed in to change notification settings - Fork 6
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
Tacio Medeiros
committed
Apr 1, 2024
1 parent
bcee364
commit 44aef1d
Showing
9 changed files
with
323 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,36 @@ | ||
import { Container } from "reactstrap" | ||
import Image from "next/image" | ||
import LocationImg from './assets/cdl.png' | ||
|
||
import styles from './styles.module.css' | ||
import configValues from "helpers/config" | ||
|
||
export const EventLocationSection = () => { | ||
return ( | ||
<Container className={styles.EventLocation} id='local'> | ||
<h2> | ||
Local | ||
</h2> | ||
|
||
<div className={styles.LocationContainer}> | ||
<aside> | ||
<article className={styles.LocationDescription}> | ||
<strong>{configValues.place}</strong> | ||
<p className={styles.LocationAddress}> | ||
{configValues.placeAddress} | ||
</p> | ||
</article> | ||
<Image | ||
alt={`Fachada do ${configValues.place}`} | ||
className={styles.LocationImg} | ||
src={LocationImg} | ||
height={247} | ||
/> | ||
</aside> | ||
|
||
<iframe className={styles.Map} src="https://maps.google.com/maps?width=600&height=400&hl=en&q=Cdl uberlandia&t=&z=14&ie=UTF8&iwloc=B&output=embed" width="600" height="450" style={{ border: 0 }} allowFullScreen loading="lazy" referrerPolicy="no-referrer-when-downgrade"></iframe> | ||
|
||
</div> | ||
</Container> | ||
) | ||
} |
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,66 @@ | ||
.EventLocation h2 { | ||
background-color: var(--soft-green-light); | ||
border-radius: 0.5rem; | ||
color: var(--white); | ||
margin: 0; | ||
height: fit-content; | ||
width: fit-content; | ||
padding: 0 0.75rem; | ||
} | ||
|
||
.LocationContainer { | ||
display: flex; | ||
flex-wrap: wrap; | ||
font-size: 1.25rem; | ||
gap: 2rem; | ||
text-align: center; | ||
justify-content: center; | ||
margin-top: 2rem; | ||
} | ||
|
||
.LocationDescription { | ||
max-width: 29rem; | ||
margin: 2rem auto 0 auto; | ||
position: relative; | ||
} | ||
|
||
.LocationImg { | ||
border-radius: 2px; | ||
object-fit: contain; | ||
padding: 0 5rem; | ||
} | ||
|
||
.LocationAddress { | ||
color: var(--primary-text); | ||
} | ||
|
||
.LocationDescription::after { | ||
background: var(--primary-text); | ||
content: ""; | ||
display: flex; | ||
height: 1px; | ||
opacity: 0.20; | ||
width: 100%; | ||
margin-top: -0.2rem; | ||
} | ||
|
||
.Map { | ||
flex: 1; | ||
} | ||
|
||
@media (min-width: 980px) { | ||
.LocationContainer { | ||
gap: 3rem; | ||
text-align: left; | ||
} | ||
} | ||
|
||
@media (min-width: 640px) { | ||
.LocationDescription { | ||
margin: 2rem auto; | ||
} | ||
|
||
.LocationImg { | ||
padding: 0; | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
src/components/iwd-2024/schedule-section/Schedule.module.css
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,71 @@ | ||
.ScheduleSection { | ||
padding-top: 100px; | ||
background: linear-gradient(0, transparent, var(--blue-light), transparent); | ||
} | ||
|
||
.ScheduleWrapper { | ||
display: flex; | ||
justify-content: center; | ||
margin-bottom: 60px; | ||
} | ||
|
||
.ScheduleTable { | ||
width: 60%; | ||
} | ||
|
||
|
||
@media only screen and (max-width: 1026px) { | ||
.ScheduleTable { | ||
width: 80%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 580px) { | ||
|
||
.ConectorImage { | ||
width: 0px; | ||
} | ||
} | ||
|
||
|
||
|
||
.ScheduleHeader { | ||
margin-top: 60px; | ||
padding: 10px 10px; | ||
background-color: var(--blue2); | ||
text-align: center; | ||
font-weight: bold; | ||
border: 1px solid var(--blue2); | ||
border-radius: 10px; | ||
color: white; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.ScheduleBody { | ||
background-color: #F8F8F8; | ||
} | ||
|
||
.ScheduleItem { | ||
padding: 20px 40px; | ||
} | ||
|
||
.ScheduleTime { | ||
font-size: 16px; | ||
font-weight: 700; | ||
} | ||
|
||
.SpeakerTopic { | ||
font-weight: bold; | ||
} | ||
|
||
|
||
.ScheduleHeaderTitle { | ||
background-color: var(--soft-green-light); | ||
border-radius: 0.5rem; | ||
color: var(--white); | ||
margin: 0; | ||
height: fit-content; | ||
width: fit-content; | ||
padding: 0 0.75rem; | ||
} |
111 changes: 111 additions & 0 deletions
111
src/components/iwd-2024/schedule-section/schedule-section.tsx
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,111 @@ | ||
/*eslint-disable*/ | ||
import { Speaker } from "models/speaker"; | ||
import Image from "next/legacy/image"; | ||
import React, { useState } from "react"; | ||
import { | ||
Badge, | ||
Col, | ||
Row, | ||
Container | ||
} from "reactstrap"; | ||
import ScheduleTime from "./schedule-time" | ||
import { Schedule } from "models/schedule"; | ||
import styles from "./Schedule.module.css"; | ||
|
||
interface SpeakersSectionProps { | ||
speakers: Array<Speaker>, | ||
schedule: Array<Schedule> | ||
} | ||
|
||
const ScheduleSection: React.FC<SpeakersSectionProps> = ({ speakers, schedule }) => { | ||
const getPillColor = (tech: string) => { | ||
switch (tech) { | ||
case "Carreira": | ||
return "blue2" | ||
case "Machine Learning": | ||
return "secondary" | ||
case "Web": | ||
return "danger" | ||
case "UX/UI": | ||
return "info" | ||
case "Back-end": | ||
return "warning" | ||
case "Qualidade de Software": | ||
return "soft-blue"; | ||
case "Android": | ||
return "soft-green"; | ||
default: | ||
return "success" | ||
} | ||
} | ||
|
||
|
||
return ( | ||
<> | ||
<div className={styles.ScheduleSection}> | ||
<Container> | ||
<Row tag="header" className={styles.ScheduleHeaderTitle}> | ||
<h2>Programação</h2> | ||
</Row> | ||
</Container> | ||
<div className={styles.ScheduleWrapper}> | ||
{speakers.length && | ||
<div className={styles.ScheduleTable}> | ||
<Row className={styles.ScheduleHeader}> | ||
Cronograma 06 Abril | ||
</Row> | ||
<Row className={styles.ScheduleBody}> | ||
{ | ||
schedule.map((schedule, index) => { | ||
return ( | ||
<Row key={`schedule-${index}`} className={styles.ScheduleItem}> | ||
<ScheduleTime initialTime={schedule.start} /> | ||
<Col xxl={11} sm={12}> | ||
<Row > | ||
{ | ||
schedule.speeches?.map((speech, index) => { | ||
const speaker = speech.speakerKey ? speakers.find(speakerObj => { | ||
return speakerObj.key == speech.speakerKey | ||
}) : null; | ||
if (speech?.topic) { | ||
return <><Row> | ||
<Col> | ||
{speech.topic} | ||
</Col> | ||
</Row> | ||
</> | ||
} else if (speaker) { | ||
return (<> | ||
<Col> | ||
<Row> | ||
<Col lg={10} className={styles.SpeakerTopic}>{speaker.topic}</Col> | ||
<Col lg={2}> | ||
{speaker.tech && <span><Badge color={getPillColor(speaker.tech)} pill>{speaker.tech}</Badge></span>} | ||
</Col> | ||
</Row> | ||
<Row><Col> | ||
{speaker.name} | ||
</Col> | ||
</Row> | ||
|
||
</Col> | ||
</> | ||
) | ||
} else <></> | ||
|
||
}) | ||
} | ||
</Row> | ||
</Col> | ||
</Row>) | ||
}) | ||
}</Row> | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default ScheduleSection; |
26 changes: 26 additions & 0 deletions
26
src/components/iwd-2024/schedule-section/schedule-time.tsx
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,26 @@ | ||
/*eslint-disable*/ | ||
|
||
import React from "react"; | ||
import { | ||
Col | ||
} from "reactstrap"; | ||
|
||
import styles from "./Schedule.module.css"; | ||
|
||
interface ScheduleTimeProps { | ||
initialTime: string; | ||
endTime?: string; | ||
} | ||
|
||
|
||
const ScheduleTime: React.FC<ScheduleTimeProps> = (props) => { | ||
|
||
return ( | ||
<Col xxl={1} sm={12} className={`${styles.ScheduleTime} d-xxl-grid justify-content-sm-start justify-content-xxl-end`}> | ||
<span>{props.initialTime}</span> | ||
<span className={styles.opacity50}>{props.endTime}</span> | ||
</Col> | ||
); | ||
}; | ||
|
||
export default ScheduleTime; |
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