Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sallychenyx9 committed Jul 14, 2022
1 parent c2f28c5 commit 5e401ac
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 44 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions sextant/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.App {
font-family: Arial, Helvetica, sans-serif;
}
34 changes: 15 additions & 19 deletions sextant/src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import React, { Component } from 'react';
import './App.css';
import Banner from './Banner';
import Exhibit from './Exhibit';

function FancyBorder(props) {
return (
<div className={'FancyBorder FancyBorder-' + props.color}>
{props.children}
</div>
);
}

function App() {
return (
<div className = "App">
<header className = "App-header" >
Welcome to Sextant!
</header>

</div>

);
class App extends Component {
render() {
return (
<div className="App">
<Banner bannerText="Cisco Sextant" />
<Exhibit name="Exhibit">content</Exhibit>
<Exhibit name="Exhibit">content</Exhibit>
<Exhibit name="Exhibit">content</Exhibit>
</div>
);
}
}

export default App;
export default App;
7 changes: 7 additions & 0 deletions sextant/src/Banner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.Banner {
margin: 0.5vw;
padding: 0vw 2vw 0vw 2vw;
text-align: center;
font-weight: bold;
font-size: 1.75vw;
}
14 changes: 14 additions & 0 deletions sextant/src/Banner.js
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;
23 changes: 23 additions & 0 deletions sextant/src/Exhibit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.Exhibit {
float: left;
margin: 0.5vw;
padding: 0vw 2vw 0vw 2vw;
text-align: center;
border: 1px solid;
/* Black shadow with 10px blur */
filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));

}

.ExhibitHeading {
font-weight: bold;
font-size: 1.75vw;
}

.ExhibitContent {
margin: 0.5vw;
padding: 1vw;
text-align: center;
font-size: 1.75vw;
color: black;
}
17 changes: 17 additions & 0 deletions sextant/src/Exhibit.js
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;
16 changes: 4 additions & 12 deletions sextant/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
html {
margin: 0;
padding: 0;
height: 100vh;
}
18 changes: 5 additions & 13 deletions sextant/src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import ReactDOM from 'react-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';
import './index.css';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
ReactDOM.render(
<App />,
document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

0 comments on commit 5e401ac

Please sign in to comment.