forked from vagabond-systems/cisco-starter-repo
-
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
Showing
9 changed files
with
83 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
import React, { Component } from 'react'; | ||
import './App.css'; | ||
import Banner from './banner'; | ||
import Exhibit from './exhibit'; | ||
|
||
function Card(props) { | ||
return ( | ||
<div className={'Card Card-' + props.color}> | ||
<h1 classname="title"> | ||
{props.title} | ||
</h1> | ||
<p classname="content"> | ||
{props.content} | ||
</p> | ||
</div> | ||
) | ||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<Banner bannerText="Sextant" /> | ||
<Exhibit name="Exhibit #1"></Exhibit> | ||
<Exhibit name="Exhibit #222"></Exhibit> | ||
<Exhibit name="Exhibit #4444"></Exhibit> | ||
<Exhibit name="Exhibit #12324324: One more"></Exhibit> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<div className="banner"> | ||
Sextant | ||
</div> | ||
<div className="cards_container"> | ||
<Card color="blue" | ||
title="Card #1" | ||
content="Information about Card#1 will be displayed here." | ||
> | ||
</Card> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
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 @@ | ||
.Banner { | ||
padding: 2vw 2vw; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 2vw; | ||
color: #ffffff; | ||
background-color: #2b3976; | ||
} |
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,14 @@ | ||
import React, { Component } from 'react'; | ||
import './banner.css'; | ||
|
||
class Banner extends Component { | ||
render() { | ||
return ( | ||
<div className="Banner"> | ||
<h1>{this.props.bannerText}</h1> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Banner; |
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 @@ | ||
.Exhibit { | ||
float: left; | ||
margin: 2vw; | ||
padding: 0vw 2vw 0vw 2vw; | ||
text-align: center; | ||
color: #ffffff; | ||
background-color: #0531f6; | ||
border: 0.1vw solid #005266; | ||
border-radius: 1vw; | ||
} | ||
|
||
.ExhibitHeading { | ||
font-weight: bold; | ||
font-size: 1.75vw; | ||
} | ||
|
||
.ExhibitContent { | ||
margin: 0.5vw; | ||
padding: 1vw 1vw 1vw 1vw; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 1.5vw; | ||
color: #002933; | ||
background-color: #9dff3c; | ||
border-radius: 2vw; | ||
} |
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,17 @@ | ||
import React, { Component } from 'react'; | ||
import './exhibit.css'; | ||
|
||
class Exhibit extends Component { | ||
render() { | ||
return ( | ||
<div className="Exhibit"> | ||
<h2 className="ExhibitHeading">{this.props.name}</h2> | ||
<div className="ExhibitContent"> | ||
{this.props.children} | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Exhibit; |
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 was deleted.
Oops, something went wrong.