|
@@ -1,40 +1,29 @@
|
|
|
-import React from 'react'
|
|
|
-import Head from 'next/head'
|
|
|
-import Meta from '../components/meta'
|
|
|
-import Header from '../components/header'
|
|
|
-import Nav from '../components/nav'
|
|
|
-import Sidebar from '../components/sidebar'
|
|
|
-import Footer from '../components/footer'
|
|
|
-import Poll from '../components/poll'
|
|
|
import Training from '../components/training'
|
|
|
-import Exercise from '../components/exercise'
|
|
|
-import { PeopleList } from '../components/people'
|
|
|
-import GlobalStyle from '../styles/global'
|
|
|
-import theme from '../styles/theme'
|
|
|
import data from '../initial-data.js'
|
|
|
+
|
|
|
console.log(data)
|
|
|
|
|
|
-const Home = () => (
|
|
|
+const Home = () =>
|
|
|
<>
|
|
|
- <Meta />
|
|
|
- <Head>
|
|
|
- <title>Home</title>
|
|
|
- </Head>
|
|
|
+ <section>
|
|
|
+ <h1>Stay in Shape with u-fit</h1>
|
|
|
+ <p>u-fit is a high intensity interval training offered by u-blox.</p>
|
|
|
+ <aside>
|
|
|
+ <div id='trainingTime'>
|
|
|
+ <span className='caption'>When</span>
|
|
|
+ <span className='data'>Tuesdays, 11:45-12:30</span>
|
|
|
+ </div>
|
|
|
+ <div id='trainingEquipment'>
|
|
|
+ <span className='caption'>Equipment</span>
|
|
|
+ <span className='data'>Towel, water, optional: yoga mat</span>
|
|
|
+ </div>
|
|
|
+ </aside>
|
|
|
+ </section>
|
|
|
|
|
|
- <Header />
|
|
|
- <Nav />
|
|
|
- <main>
|
|
|
- <h1>Welcome to u-fit</h1>
|
|
|
- <p>The right position to make every cell stronger over a short range!</p>
|
|
|
+ <section>
|
|
|
+ <h1>Your Next Training</h1>
|
|
|
<Training {...data.trainings[data.trainings.length - 1]} />
|
|
|
- </main>
|
|
|
- <Footer />
|
|
|
- {GlobalStyle}
|
|
|
-
|
|
|
- <style jsx>{`
|
|
|
-
|
|
|
- `}</style>
|
|
|
+ </section>
|
|
|
</>
|
|
|
-)
|
|
|
|
|
|
export default Home
|