Skip to content

Commit

Permalink
front end established
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanavelPascual7 committed Nov 5, 2023
1 parent 8f2ef24 commit 75d53b2
Show file tree
Hide file tree
Showing 26 changed files with 17,351 additions and 10 deletions.
Empty file removed components/Footer.js
Empty file.
Empty file removed components/Header.js
Empty file.
17,210 changes: 17,210 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "9.6_capstone-team-3-frontend",
"version": "1.0.0",
"description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
"main": "index.js",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.21.4",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0",
"react-scripts": "^5.0.1"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Empty file removed pages/About.js
Empty file.
Empty file removed pages/AllEvents.js
Empty file.
Empty file removed pages/CurrentEvent.js
Empty file.
Empty file removed pages/Gallery.js
Empty file.
Empty file removed pages/PageNotFound.js
Empty file.
Empty file removed pages/Profile.js
Empty file.
Empty file removed pages/SignupLogin.js
Empty file.
18 changes: 10 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import Home from './pages/Home';
import About from './pages/About';
import Navbar from './components/Navbar';
import Footer from './components/Footer';
import Heeader from './components/Header'
import SignupLogin from '../pages/SignupLogin';
import AllEvents from '../pages/AllEvents';
import CurrentEvent from '../pages/CurrentEvent';
import Gallery from '../pages/Gallery';
import Profile from '../pages/Profile';
import Account from '../pages/Account';
import PageNotFound from "../pages/PageNotFound";
import Header from './components/Header'
import SignupLogin from './pages/SignupLogin';
import AllEvents from './pages/AllEvents';
import CurrentEvent from './pages/CurrentEvent';
import Gallery from './pages/Gallery';
import Profile from './pages/Profile';
import Account from './pages/Account';
import PageNotFound from "./pages/PageNotFound";

function App() {
return (
Expand All @@ -24,6 +24,7 @@ function App() {
<Router>
<Navbar />
<main>
<Header/>
<Routes>
<Route path="/" element={ <Home />} />
<Route path="/about" element = { <About /> } />
Expand All @@ -37,6 +38,7 @@ function App() {
<Route path="*" element = { <PageNotFound /> } />
</Routes>
</main>
<Footer/>
</Router>

</div>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Footer() {
return (
<div>Footer</div>
)
}

export default Footer
9 changes: 9 additions & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Header() {
return (
<div>Header</div>
)
}

export default Header
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
Expand All @@ -14,4 +14,4 @@ root.render(
// 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();

9 changes: 9 additions & 0 deletions src/pages/About.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function About() {
return (
<div>About</div>
)
}

export default About
9 changes: 9 additions & 0 deletions src/pages/Account.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Account() {
return (
<div>Account</div>
)
}

export default Account
9 changes: 9 additions & 0 deletions src/pages/AllEvents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function AllEvents() {
return (
<div>AllEvents</div>
)
}

export default AllEvents
9 changes: 9 additions & 0 deletions src/pages/CurrentEvent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function CurrentEvent() {
return (
<div>CurrentEvent</div>
)
}

export default CurrentEvent
9 changes: 9 additions & 0 deletions src/pages/Gallery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Gallery() {
return (
<div>Gallery</div>
)
}

export default Gallery
File renamed without changes.
1 change: 1 addition & 0 deletions pages/Index.js → src/pages/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';


ReactDOM.render(
<BrowserRouter>
<App />
Expand Down
9 changes: 9 additions & 0 deletions src/pages/PageNotFound.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function PageNotFound() {
return (
<div>PageNotFound</div>
)
}

export default PageNotFound
9 changes: 9 additions & 0 deletions src/pages/Profile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Profile() {
return (
<div>Profile</div>
)
}

export default Profile
9 changes: 9 additions & 0 deletions src/pages/SignupLogin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function SignupLogin() {
return (
<div>SignupLogin</div>
)
}

export default SignupLogin

0 comments on commit 75d53b2

Please sign in to comment.