Skip to content

Commit

Permalink
Fix badge img tag and rework into home page.
Browse files Browse the repository at this point in the history
  • Loading branch information
thekeenant committed Nov 4, 2023
1 parent 325e4e7 commit d495345
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public/ads.txt

# we use sass
*.css
*.css.map

# dependencies
/node_modules
Expand Down
File renamed without changes
7 changes: 0 additions & 7 deletions src/containers/SiteFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ class SiteFooter extends Component {
</Col>
</Row>
</Container>

<img
alt="Banner for enRollBadge"
src="assets/enrollbadge.jpg"
style={{ width: '100%', maxHeight: '400px', margin: '20px 0' }}
/>

</div>
);
}
Expand Down
14 changes: 14 additions & 0 deletions src/pages/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import {Container, Header} from 'semantic-ui-react';
import EnrollBadgeBanner from '../assets/enroll-badge.png';

const Home = () => {
document.title = 'UW Madison Grade Distributions - Madgrades';
Expand Down Expand Up @@ -42,6 +43,19 @@ const Home = () => {
contributing fixes
</a>.
</p>

<Header as='h1'>
<Header.Content>
Also check out Enroll Badge!
</Header.Content>
</Header>
<a href="http://enrollbadge.com" target="_blank">
<img
alt="Banner for enRollBadge"
src={EnrollBadgeBanner}
style={{ maxHeight: '350px', margin: '20px 0' }}
/>
</a>
</Container>
</div>
);
Expand Down

0 comments on commit d495345

Please sign in to comment.