diff --git a/src/App.css b/src/App.css index 9802dcd..0134aaa 100644 --- a/src/App.css +++ b/src/App.css @@ -28,46 +28,7 @@ nav ul li a:hover { text-decoration: underline; } -.home { - position: relative; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; - text-align: center; - color: white; - overflow: hidden; -} -.home-content { - position: relative; - z-index: 2; -} - -.home-content h1 { - font-size: 4vw; - font-weight: bold; - margin: 0; -} - -.home-content p { - font-size: 1vw; - font-weight: bold; - margin: 0; -} - -.background-video { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - min-width: 100%; - min-height: 100%; - width: auto; - height: auto; - z-index: 1; - opacity: 0.8; -} .page { padding: 20px; diff --git a/src/App.js b/src/App.js index f9a0abb..d275e30 100644 --- a/src/App.js +++ b/src/App.js @@ -1,46 +1,11 @@ -// Import necessary libraries import React from 'react'; import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import './App.css'; -// Home page component -function Home() { - return ( -
-
-

Jake's West Coast

-

My Mountaineering Diary

-
- Jakeswestcoast -
- ); -} +import Home from './components/Home' +import About from './components/About' +import Projects from './components/Projects' -// About page component -function About() { - return ( -
-

About

-

Welcome to my mountaineering diary. Follow my adventures across the West Coast mountains!

-
- ); -} - -// Projects page component -function Projects() { - return ( -
-

Projects

-

Here you can find my climbing routes, expeditions, and other mountaineering projects.

-
- ); -} - -// Main App component function App() { return ( diff --git a/src/components/About.css b/src/components/About.css new file mode 100644 index 0000000..54f0cb5 --- /dev/null +++ b/src/components/About.css @@ -0,0 +1,3 @@ +.page { + padding: 20px; + } \ No newline at end of file diff --git a/src/components/About.js b/src/components/About.js new file mode 100644 index 0000000..49d3454 --- /dev/null +++ b/src/components/About.js @@ -0,0 +1,12 @@ +import './About.css'; + +function About() { + return ( +
+

About

+

Welcome to my mountaineering diary! I'm Jake, a rider from the Bay Area. I love road, mountain, and gravel cycling around my home mountains and anywhere that has cool trails & views.

+
+ ); +} + +export default About; diff --git a/src/components/Home.css b/src/components/Home.css new file mode 100644 index 0000000..513f452 --- /dev/null +++ b/src/components/Home.css @@ -0,0 +1,40 @@ +.background-video { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + min-width: 100%; + min-height: 100%; + width: auto; + height: auto; + z-index: 1; + opacity: 0.8; +} + +.home { + position: relative; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + color: white; + overflow: hidden; +} + +.home-content { + position: relative; + z-index: 2; +} + +.home-content h1 { + font-size: 4vw; + font-weight: bold; + margin: 0; +} + +.home-content p { + font-size: 1vw; + font-weight: bold; + margin: 0; +} \ No newline at end of file diff --git a/src/components/Home.js b/src/components/Home.js new file mode 100644 index 0000000..e339cb0 --- /dev/null +++ b/src/components/Home.js @@ -0,0 +1,19 @@ +import './Home.css'; + +function Home() { + return ( +
+
+

Jake's West Coast

+

My Mountaineering Diary

+
+ Jakeswestcoast +
+ ); + } + + export default Home; \ No newline at end of file diff --git a/src/components/Projects.css b/src/components/Projects.css new file mode 100644 index 0000000..54f0cb5 --- /dev/null +++ b/src/components/Projects.css @@ -0,0 +1,3 @@ +.page { + padding: 20px; + } \ No newline at end of file diff --git a/src/components/Projects.js b/src/components/Projects.js new file mode 100644 index 0000000..8867bea --- /dev/null +++ b/src/components/Projects.js @@ -0,0 +1,12 @@ +import './Projects.css'; + +function Projects() { + return ( +
+

Projects

+

Here you can find my climbing routes, expeditions, and other mountaineering projects.

+
+ ); + } + + export default Projects; \ No newline at end of file