diff --git a/client-app/src/App.css b/client-app/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/client-app/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/client-app/src/App.tsx b/client-app/src/App.tsx deleted file mode 100644 index 7aa4578..0000000 --- a/client-app/src/App.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import './App.css'; -import axios from 'axios'; -import { Header, List } from 'semantic-ui-react'; - -function App() { - const [activities, setActivities] = useState([]); - - useEffect(() => { - axios.get('http://localhost:5000/api/activities').then(response => { - console.log(response); - setActivities(response.data); - }) - }, []) - - return ( -
-
- - {activities.map((activity: any) => ( - - {activity.title} - - ))} - -
- ); -} - -export default App; diff --git a/client-app/src/app/layout/App.tsx b/client-app/src/app/layout/App.tsx new file mode 100644 index 0000000..928ece6 --- /dev/null +++ b/client-app/src/app/layout/App.tsx @@ -0,0 +1,27 @@ +import React, { useEffect, useState } from 'react'; +import axios from 'axios'; +import { Container } from 'semantic-ui-react'; +import { Activity } from '../models/activity'; +import NavBar from './NavBar'; +import ActivityDashboard from '../../features/activities/dashboard/ActivityDashboard'; + +function App() { + const [activities, setActivities] = useState([]); + + useEffect(() => { + axios.get('http://localhost:5000/api/activities').then(response => { + setActivities(response.data); + }) + }, []) + + return ( + <> + + + + + + ); +} + +export default App; diff --git a/client-app/src/app/layout/styles.css b/client-app/src/app/layout/styles.css new file mode 100644 index 0000000..bb89208 --- /dev/null +++ b/client-app/src/app/layout/styles.css @@ -0,0 +1,7 @@ +body { + background-color: #eaeaea !important; +} + +.ui.inverted.top.fixed.menu { + background-image: linear-gradient(135deg, rgb(24, 42, 115) 0%, rgb(33, 138, 174) 69%, rgb(32, 167, 172) 82%) !important; +} \ No newline at end of file diff --git a/client-app/src/index.css b/client-app/src/index.css deleted file mode 100644 index ec2585e..0000000 --- a/client-app/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -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; -} diff --git a/client-app/src/index.tsx b/client-app/src/index.tsx index 8af63c5..c1660d9 100644 --- a/client-app/src/index.tsx +++ b/client-app/src/index.tsx @@ -1,8 +1,8 @@ import React from 'react'; import ReactDOM from 'react-dom'; import 'semantic-ui-css/semantic.min.css'; -import './index.css'; -import App from './App'; +import './app/layout/styles.css'; +import App from './app/layout/App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( diff --git a/client-app/src/logo.svg b/client-app/src/logo.svg deleted file mode 100644 index 9dfc1c0..0000000 --- a/client-app/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file