diff --git a/images/home_wp.jpg b/images/home_wp.jpg new file mode 100644 index 0000000..c28af95 Binary files /dev/null and b/images/home_wp.jpg differ diff --git a/src/components/index.css b/src/components/index.css index 1e185b8..837bca9 100644 --- a/src/components/index.css +++ b/src/components/index.css @@ -1 +1,26 @@ -@import url("reg/index.css"); \ No newline at end of file +@import url("reg/index.css"); +@import url("init/index.css"); + +.MyButton { + text-decoration: none; + border: 2px solid black; + border-radius: 10px; + + background-color: black; + color: white; + + padding: 15px; + + justify-content: center; + + width: 9rem; + + transition: background-color 0.2s ease-in, border 0.2s ease-in; +} + +.MyButton:hover { + background-color: orange; + border: 2px solid orange; + + cursor: pointer; +} diff --git a/src/components/init/BackgroundInit.jsx b/src/components/init/BackgroundInit.jsx new file mode 100644 index 0000000..e52a94c --- /dev/null +++ b/src/components/init/BackgroundInit.jsx @@ -0,0 +1,19 @@ +import React from 'react'; +import NavButton from "./NavButton.jsx"; +import { URLs } from './../../__data__/urls'; + +const BackgroundInit = () => { + return ( +
{props.text}
+ + ); +}; + +export default NavButton; diff --git a/src/components/init/css/navButton.css b/src/components/init/css/navButton.css new file mode 100644 index 0000000..7a08b80 --- /dev/null +++ b/src/components/init/css/navButton.css @@ -0,0 +1,19 @@ +.singleNavButton { + display: flex; + align-items: center; + + margin-top: 1.5vw; + padding: 0; + + background-color: white; + border-color: white; + border-radius: 3vw; + + min-width: 20vw; +} + +.singleNavButton p { + font-size: 1.4vw; + font-weight: bold; +} + diff --git a/src/components/init/index.css b/src/components/init/index.css new file mode 100644 index 0000000..482cbcd --- /dev/null +++ b/src/components/init/index.css @@ -0,0 +1,59 @@ +@import url("./css/navButton.css"); + +.backgroundImage { + width: 100%; + height: 100vh; + + background-color: darkgray; + background-size: cover; + background-position: center; + + position: relative; +} + +.blurEffect { + width: 100%; + height: 100%; + + background-image: url("./../../../images/home_wp.jpg"); + background-size: cover; + background-position: center; + + filter: blur(10px); + + position: absolute; + + top: 0; + left: 0; + z-index: 1; +} + +.overBlur { + position: relative; + z-index: 2; +} + +.initTitle { + font-size: 7vw; + margin: 0; + color: white; + + text-align: center; + + top: 10%; +} + +@media only screen and (max-width: 800px) { + .initTitle { + font-size: 8vh; + } +} + +.navButtons { + display: flex; + flex-direction: column; + + align-items: center; + + top: 17%; +} diff --git a/src/index.css b/src/index.css index 82c3921..724b64b 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,6 @@ @import url('https://fonts.googleapis.com/css2?family=MonteCarlo&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=McLaren&display=swap'); @import url("pages/index.css"); @import url("outer/index.css"); @@ -26,9 +27,26 @@ code { color: black; } +/* Mobile devices */ +@media only screen and (max-width: 800px) { + * { + font-size: 1.5vh; + } +} + +html { + scroll-behavior: smooth; +} + .metal-mania-regular { font-family: "Metal Mania", system-ui; font-weight: 400; font-style: normal; } +.mclaren-regular { + font-family: "McLaren", system-ui; + font-weight: 400; + font-style: normal; +} + diff --git a/src/pages/Init.jsx b/src/pages/Init.jsx index ffcfe7c..cd29a6e 100644 --- a/src/pages/Init.jsx +++ b/src/pages/Init.jsx @@ -1,9 +1,10 @@ import React from "react"; +import BackgroundInit from "../components/init/BackgroundInit.jsx"; const Init = () => { return (