This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 1c13815
Showing
18 changed files
with
7,185 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,16 @@ | ||
# bryan-schedule | ||
|
||
Data driven React app generating the schedule art. | ||
|
||
## How to anything? | ||
|
||
run ```yarn``` in reop root to install | ||
|
||
run ```yarn start``` to run the dev server with hot reloading | ||
|
||
run ```yarn build``` to package a production deploy ready build | ||
|
||
|
||
*** | ||
|
||
Bootstraped with create-react-app |
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,16 @@ | ||
{ | ||
"name": "bryan-schedule", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-scripts": "1.0.17" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
} | ||
} |
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,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="theme-color" content="#000000"> | ||
<!-- | ||
manifest.json provides metadata used when your web app is added to the | ||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ | ||
--> | ||
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> --> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Bryan's Schedule</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
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,8 @@ | ||
{ | ||
"short_name": "Schedule", | ||
"name": "Bryan's Schedule", | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
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,22 @@ | ||
.appWrapper { | ||
/*width: 100vw;*/ | ||
/*min-height: 100vh;*/ | ||
width: 1200px; | ||
height: 600px; | ||
background: linear-gradient(135deg, #1EE7C8, #2EF776); | ||
} | ||
|
||
.scheduleWrapper { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
} | ||
|
||
.scheduleContentWrapper { | ||
display: flex; | ||
flex: 5; | ||
justify-content: space-around; | ||
height: 480px; | ||
padding: 0 10px; | ||
} |
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,16 @@ | ||
import React, { Component } from 'react'; | ||
import './App.css'; | ||
|
||
import Schedule from './containers/Schedule'; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="appWrapper"> | ||
<Schedule /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; |
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,8 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './App'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<App />, 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from 'react'; | ||
|
||
import './card.css'; | ||
|
||
const CardHeader = ({date, day}) => ( | ||
<div className="cardHeader"> | ||
<div className="cardActions"> | ||
<i className="homeIcon">icon</i> | ||
<i className="loveIcon">icon</i> | ||
</div> | ||
<div className="cardDate"> | ||
<p className="cardDateText">{date}</p> | ||
</div> | ||
<div className="cardDay"> | ||
<p className="cardDayText">{day}</p> | ||
<i className="downIcon">icon</i> | ||
</div> | ||
</div> | ||
); | ||
|
||
const CardMedia = ({color, image, title}) => ( | ||
<div className="cardMedia" style={{backgroundImage: `url(${image})`}}> | ||
<div className="mediaOverlay" style={{backgroundColor: color}}></div> | ||
<div className="mediaContent"> | ||
<p className="mediaContentText"> | ||
{title} | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
|
||
const CardFooter = ({activity}) => ( | ||
<div className="cardFooter"> | ||
<p className="activityName">{activity}</p> | ||
<p className="activity">Activity</p> | ||
</div> | ||
); | ||
|
||
const Card = ({activity, color, date, day, image, title}) => ( | ||
<div className="cardWrapper"> | ||
<CardHeader | ||
date={date} | ||
day={day} | ||
/> | ||
<CardMedia | ||
color={color} | ||
image={image} | ||
title={title} | ||
/> | ||
<CardFooter | ||
activity={activity} | ||
/> | ||
</div> | ||
); | ||
|
||
export default Card; |
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,16 @@ | ||
import React from 'react'; | ||
|
||
import './footer.css'; | ||
|
||
const Footer = () => ( | ||
<div className="footer"> | ||
<div className="thisWeek"> | ||
<p className="thisWeekText"><i className="thisWeekIcon">icon</i> <span className="thisWeekTitle">This Week on Avalonstar</span> for the week of <span className="thisWeekDate">November 6th</span>.</p> | ||
</div> | ||
<div className="channelCTA"> | ||
<p className="channelCTAText">twitch.tv/avalonstar</p> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default Footer; |
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,98 @@ | ||
.cardWrapper { | ||
background: #FFFFFF; | ||
border-radius: 6px; | ||
max-width: 275px; | ||
width: 275px; | ||
height: 505px; | ||
position: relative; | ||
z-index: 5; | ||
margin: 0 8px; | ||
margin-top: 20px; | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
} | ||
|
||
.cardHeader { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0 19px; | ||
padding-top: 19px; | ||
height: 130px; | ||
justify-content: flex-start; | ||
} | ||
|
||
.cardActions { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.homeIcon { | ||
color: #E4E4E4; | ||
} | ||
|
||
.loveIcon { | ||
color: #B145C8; | ||
} | ||
|
||
.cardDate { | ||
color: #ACACAC; | ||
margin: 5px 0; | ||
} | ||
|
||
.cardDay { | ||
margin-top: 5px; | ||
display: flex; | ||
justify-content: space-between; | ||
font-weight: 700; | ||
font-size: 1.7em; | ||
} | ||
|
||
.cardMedia { | ||
position: relative; | ||
background-size: cover; | ||
background-position: 50% 50%; | ||
height: 300px; | ||
} | ||
|
||
.mediaOverlay { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
opacity: 0.5; | ||
} | ||
|
||
.mediaContent { | ||
flex: 1; | ||
position: relative; | ||
z-index: 5; | ||
display: flex; | ||
align-items: flex-end; | ||
min-height: 100%; | ||
padding: 0 19px; | ||
padding-bottom: 25px; | ||
color: #FFFFFF; | ||
font-size: 1.8em; | ||
} | ||
|
||
.cardFooter { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0 19px; | ||
padding-bottom: 15px; | ||
justify-content: flex-end; | ||
height: 70px; | ||
} | ||
|
||
.activityName { | ||
color: #7A7A7A; | ||
margin-bottom: 4px; | ||
} | ||
|
||
.activity { | ||
color: #CBCBCB; | ||
font-size: 0.9em; | ||
} |
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,35 @@ | ||
.footer { | ||
display: flex; | ||
flex: 1; | ||
justify-content: space-between; | ||
align-items: flex-end; | ||
background: #13171A; | ||
height: 120px; | ||
padding: 0 17px; | ||
padding-bottom: 26px; | ||
} | ||
|
||
.thisWeek { | ||
color: #A4A4A4; | ||
} | ||
|
||
.thisWeekIcon { | ||
color: #33E98C; | ||
} | ||
|
||
.thisWeekTitle { | ||
color: #FFFFFF; | ||
font-weight: 700; | ||
font-size: 1.1em; | ||
} | ||
|
||
.thisWeekDate { | ||
font-weight: 700; | ||
font-size: 1.1em; | ||
} | ||
|
||
.channelCTA { | ||
color: #FFFFFF; | ||
font-weight: 700; | ||
font-size: 1.1em; | ||
} |
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,34 @@ | ||
import React, { Component } from 'react'; | ||
|
||
import Footer from '../components/Schedule/Footer'; | ||
import Card from '../components/Schedule/Card'; | ||
|
||
import withScheduleData from './withScheduleData'; | ||
|
||
class Schedule extends Component { | ||
render() { | ||
const { scheduleData } = this.props; | ||
return ( | ||
<div className="scheduleWrapper"> | ||
<div className="scheduleContentWrapper"> | ||
{scheduleData.map((event, index) => { | ||
return ( | ||
<Card | ||
key={event.day} | ||
day={event.day} | ||
date={event.date} | ||
title={event.title} | ||
activity={event.activity} | ||
color={event.color} | ||
image={event.image} | ||
/> | ||
); | ||
})} | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withScheduleData(Schedule); |
Oops, something went wrong.