Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added UseEffect #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, {useEffect} from 'react';
import "./app.css"
import {BrowserRouter as Router, Routes, Route} from 'react-router-dom';
import About from './components/About/About';
Expand All @@ -7,10 +7,16 @@ import Footer from './components/Footer/Footer';
import Home from './components/Home/Home';
import NavBar from './components/NavBar/NavBar';
import Product from './components/Product/Product';
import "./app.css"



function App() {

useEffect(() => {
alert('Welcome to Group76 Capstone Project!')
}
, [])

return (
<div className="App">
<Router>
Expand Down
4 changes: 2 additions & 2 deletions src/components/About/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function About() {
const courses = [
{id: 1, foodname: "Snacks", image: Snack},
{id: 2, foodname: "Desserts", image: Dessert},
{id: 3, foodname: "Cuisines", image: Food}
{id: 3, foodname: "Cuisines", image: Food}
]
return(
<div className="about_page">
Expand All @@ -19,7 +19,7 @@ function About() {
<h1>About Us</h1>
<p>We are a seasonal restaurant with freshly-baked snacks, sweet desserts and delicous food/delicacies. We are located in Nigeria and the business is run
by SH-Group-76 interns. We are longtime champions of mouthwatering cooking and have renowned chefs including those from Africa, Europe and China.
At this restaurant, we continue to offer dedicated services as well as affordable food menus to our customers. </p>
At this restaurant, We continue to offer dedicated services as well as affordable food menus to our customers. </p>
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/components/About/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
align-items: center;
border-top: 1px solid rgba(255, 255, 255, 0.5);
border-left: 1px solid rgba(255, 255, 255, 0.5);
backdrop-filter: blur(5px);

}

.services .card .content {
Expand Down