Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracks and Schedule #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ function App() {
);
}

export default App;
export default App;
2 changes: 1 addition & 1 deletion src/components/About/AboutUs.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
width:90vw;
margin:auto;
align-items: center;
background-image: linear-gradient(148.79deg, rgba(12, 143, 146, 0.5) 7.08%, rgba(47, 11, 88, 0.4) 84.13%);
background-image: linear-gradient(148.79deg, rgba(4, 34, 64, 0.5) 7.08%, rgba(43, 12, 78, 0.4) 84.13%);
border-radius: 25px;
box-shadow: 5px 5px 25px 25px rgba(0, 0, 0, 0.1);
margin-top: 80px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/HeroLandingPage/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ li {
/* z-index: -1; */
height: 140px;
background-color: black;
opacity: 0.9;
/* opacity: 0.9; */
/* align-items: center; */
position: fixed;
width: 100%;
Expand Down Expand Up @@ -216,10 +216,10 @@ li {
}
.w-nav-menu {
background: black;
opacity: 0.9;
/* opacity: 0.9; */
display: block;
position: absolute;
top: 100px;
top: 110px;
left: 0;
display: flex;
flex-direction: column;
Expand Down
25 changes: 25 additions & 0 deletions src/components/Timeline/ScheduleCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react";
import "./Timeline.css";
function ScheduleCard(props) {
return (
<div>
<div className="single-event">
<div className="date-time">
<span className="time">{props.time}</span>
<span className="date">{props.date}</span>
</div>
<div className="description Hackathon">
<div className="speaker">
{" "}
<div className="details">
<span className="title">{props.title}</span>
<span className="name"></span>
</div>
</div>
</div>
</div>
</div>
);
}

export default ScheduleCard;
100 changes: 100 additions & 0 deletions src/components/Timeline/ScheduleData.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
const Day1 = [
{
id: 1,
time: '9:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 2,
time: '10:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 3,
time: '12:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 4,
time: '15:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 5,
time: '16:30',
date: '18 Sept',
title: 'Lorem',
},
{
id: 6,
time: '18:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 7,
time: '20:00',
date: '18 Sept',
title: 'Lorem',
},
{
id: 8,
time: '22:00',
date: '18 Sept',
title: 'Lorem',
},
// {
// id: 9,
// time: '22:30',
// date: '18 Sept',
// title: 'Workshop by Koren Grinshpoon, CEO of EchoAR',
// },
];

const Day2 = [
{
id: 10,
time: '17:00',
date: '19 Sept',
title: 'Lorem',
},
{
id: 11,
time: '17:30',
date: '19 Sept',
title: 'Lorem',
},
{
id: 12,
time: '19:00',
date: '19 Sept',
title: 'Lorem',
},
{
id: 13,
time: '19:30',
date: '19 Sept',
title: 'Lorem',
},
{
id: 14,
time: '20:30',
date: '19 Sept',
title: 'Lorem',
},
];

const Day3 = [
{
id: 15,
time: '19:00',
date: '22 Sept',
title: 'Lorem',
},
];

export { Day1, Day2, Day3 };
125 changes: 125 additions & 0 deletions src/components/Timeline/Timeline.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.contents {
padding: 0.5rem 0.5rem;
}
.cont{
width:90vw;
margin:auto;
}
.content-section {
flex-direction: column;
padding: 0.2px 0;
}
.container-schedule {
display: block;
width: 100%;

margin: 0 auto;
}
.daily-schedule {
margin-bottom: 1rem;
margin: 0.5rem;

padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
.single-event {
display: flex;
flex-direction: row;
margin-top: 0.6rem;
border-radius: 5px;
}
.date-time {
background-color: rgb(7, 82, 139);
opacity: 0.95;
display: flex;
/* flex-wrap: wrap; */
flex-direction: column;

padding: 1rem 1rem 1rem 1rem;
text-align:left;
white-space: nowrap;
color: #fff;
width:120px;
}
.date {
margin: 0;
padding-left: 0;
border: 1px;
font-size: 100%;
font: inherit;
vertical-align: baseline;
color: #fff;
}

.time {
padding-left: 0;
font-size: 1.2rem;
font-weight: 700;
}
.Hackathon {
/* font-size: 100%; */
font: inherit;
/* vertical-align: baseline; */
border-left: 5px solid #06bb88;
}
.description {
padding-left: 1rem;
/* background-color: #52358a; */
background-color:rgb(60, 5, 123);
/* opacity: 0.9; */
flex:2;
color: #fff;
display: flex;
justify-content: space-between;
/* margin-left: 1rem; */
text-align: left;
overflow: hidden;
}

.title {
font-size: 1.1rem;
letter-spacing: 0.1rem;
font-weight: 699;
}

.name {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

.speaker {
display: flex;
align-items: center;
}

.details {
display: flex;
flex-direction: column;
justify-content: center;
line-height: 1.5rem;
}

@media (max-width: 767px) {
.daily-schedule {
padding: 0;
margin: 0;
}
.content-section .contents .single-event .date-time {
padding: 0.6rem;
width:85px;
}
.Hackathon {
border-left: 2px solid #12ca2b;
}
.description {
padding-left: 0.8rem;
}

}
81 changes: 74 additions & 7 deletions src/components/Timeline/Timeline.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,82 @@
import React from 'react'
import styled from 'styled-components';
// import Raisebox from './raisebox';
import './Timeline.css';
import { Day1, Day2, Day3 } from './ScheduleData';
import ScheduleCard from './ScheduleCard';
const ScheduleContainer = styled.div`
height: 100%;
width: 100%;
align-items: center;
justify-content: center;
display: flex;
`;

const Scheduleh1 = styled.h1`
font-weight: 900;
color: #fff;
font-size: 6rem;
line-height: 0.8em;
letter-spacing: -0.07em;
@media screen and (max-width: 576px) {
font-size: 3.2rem;
}
`;
function card1(Day1) {
return (
<ScheduleCard
key={Day1.id}
time={Day1.time}
date={Day1.date}
title={Day1.title}
/>
);
}
function card2(Day2) {
return (
<ScheduleCard
key={Day2.id}
time={Day2.time}
date={Day2.date}
title={Day2.title}
/>
);
}

function card3(Day3) {
return (
<ScheduleCard
key={Day3.id}
time={Day3.time}
date={Day3.date}
title={Day3.title}
/>
);
}
const Timeline = () => {
return (
<section id='Timeline'>
<div className="container h-[400px] text-white pl-5 md:pl-28 sm:pl-9 pt-4 pb-4 " >
<div className="cont" >

<div className='text-[44px]'>Timeline</div>
<div className='text-[64px] pl-1 mt-8'>Updating soon...</div>
</div>
</section>
)
}
<ScheduleContainer>
<Scheduleh1 style={{ color: 'white' }}>
TIMELINE<span style={{ color: '#ff0000' }}></span>
</Scheduleh1>{' '}
</ScheduleContainer>

<div className="container-schedule">
<section className="content-section">
<div className="contents">
<div id="day1" className="daily-schedule">
{Day1.map(card1)}
{Day2.map(card2)}
{Day3.map(card3)}
</div>
</div>
</section>
</div>

</div>
</section>)}

export default Timeline
12 changes: 12 additions & 0 deletions src/components/Timeline/raisebox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import styled from "styled-components";

export const Raisebox = styled.div`
min-height: 70vh;
width: 90vw;
margin: 10vh auto;
background: #18191a;
box-shadow: 2vw 2vw 2vw 1vw rgba(0, 0, 0, 0.6);
border-radius: 10px;
`;

export default Raisebox;
Loading