Skip to content

Commit

Permalink
Merge pull request #11 from hightechu/supportUs
Browse files Browse the repository at this point in the history
support us page
  • Loading branch information
kiaralee authored Dec 5, 2023
2 parents f2d73df + 47f9533 commit 106b97a
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Logo from './components/Logo';
import TestComponent from './components/TestComponent';
import Footer from './components/Footer';
import FoodLabels from "./components/FoodLabels";
import SupportUs from "./components/SupportUs";

// function must have the same name as the file, cAsE sEnSiTiVe
function App() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import throwing from '../images/throwfood.jpg';
</div>
</div>
<div class="carousel-item active">
<img src={throwing} class="d-block w-75 imgsize" alt=" starve"/>
<img src={throwing} class="d-block w-75 imgsize" alt="children"/>
<div class="carousel-caption d-none d-md-block">
<h5 class="display-4 text-white text-center">Did you know</h5>
<p class="psizes">Despite the outrageous amount of food waste, over 800 million people are undernourished. We have enough food to feed everyone, but we cannot distribute it equally.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Navigation = () => {
<a className="nav-link" href="/about">Importance</a>
</li>
<li className="nav-item">
<a className="nav-link" href="/">Support us</a>
<a className="nav-link" href="/SupportUs">Support us</a>
</li>


Expand Down
19 changes: 19 additions & 0 deletions src/components/SupportUs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, {useState} from 'react';
import qrCode from '../images/donate.png';

const SupportUs = () => {

return (
<div className="container-fluid bgcolor">
<h1>Support us!</h1>
<h2 className="info">To ensure food waste awareness for the future generation.</h2>
<a href="/" className='donatelink'>Donate Now</a>
<br></br> <br></br> <br></br>
<p>Or scan this QR Code: </p>
<img src={qrCode} alt=" qrcode" className="qrbox"/>
<h2 className="info">Every dollar will help develop the website to be more interactive and engaging.</h2><br></br>
</div>
)
}

export default SupportUs;
Binary file added src/images/donate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,25 @@ code {
border: 3px solid white;
}

.info{
color: rgb(202, 104, 0)
}

.bgcolor{
background-color: beige;
}

.qrbox{
width: 230px;
margin-bottom: 30px;
}

.donatelink{
font-size: 50px;
font-weight: bold;
color: rgb(228, 17, 123);
background-color: rgb(255, 255, 139);
}
.milksize{
width: 100px;
background: 'transparent'
Expand Down Expand Up @@ -273,4 +292,3 @@ code {
.dope{
font-size: 21px;
}

4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import App from './App';
import AddDataSample from './components/AddDataSample';
import TitleScreen from './components/TitleScreen';
import FoodLabels from './components/FoodLabels';
import SupportUs from './components/SupportUs';

import Navigation from "./components/Navigation";
import GameOverScreen from 'components/GameOverScreen';
Expand Down Expand Up @@ -47,6 +48,9 @@ root.render(
<Route path='/adddatasample' element={<AddDataSample/>}/>
<Route path='/TitleScreen' element={<TitleScreen/>}/>
<Route path='/FoodLabels' element={<FoodLabels/>}/>

<Route path='/SupportUs' element={<SupportUs/>}/>

<Route path='/gamenav' element={<GameNav/>}/>
<Route path='/DndGameInside' element={<DndGameInside root={root} />}/>
</Routes>
Expand Down

0 comments on commit 106b97a

Please sign in to comment.