Kész bemutatkozó komponens

This commit is contained in:
Sándor Máté Magony
2025-03-27 12:31:19 +01:00
parent 6c12240c6c
commit 2e16df6611
9 changed files with 266 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -5,13 +5,15 @@ import Menusor from './NavBar/Menusor';
import { Route, Routes } from 'react-router-dom';
import Kezdolap from './WC_Komponens/Kezdolap/Kezdolap';
import Fejlec from './WC_Komponens/Fejlec/Fejlec';
import HozzaadGomb from './WC_Komponens/Hozzadas/HozzaadGomb';
export default function App() {
return (
<>
<Menusor />
<Fejlec />
<div>
<HozzaadGomb />
<div className=''>
<Routes>
<Route index element={<Kezdolap />}/>
<Route path="/kereso" element={<Kereso />}/>

View File

@@ -0,0 +1,12 @@
.parallax {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
@media only screen and (max-width: 1366px) {
.parallax {
background-attachment: scroll;
}
}

View File

@@ -1,18 +1,19 @@
import styles from "./Fejlec.css";
import fejlecHatter from "./fejlec_hatter.jpg";
export default function Fejlec() {
return (
<header
className="fixed top-0 left-0 w-full h-[60vh] bg-no-repeat bg-cover bg-top z-10"
style={{ backgroundImage: "url('/fejlec_hatter.jpg')" }}
>
<div className="absolute inset-0 bg-black/40 flex flex-col items-center justify-center text-white text-center p-6">
<h1 className="text-3xl font-bold mb-2 bg-black/50 p-3 rounded-lg inline-block">
Üdvözöljük a PeePal weboldalán!
</h1>
<h2 className="text-lg font-medium max-w-md bg-black/40 p-3 rounded-lg">
Találja meg a hozzá legközelebb eső nyilvános mosdót egy kattintással (vagy kettővel)
</h2>
</div>
</header>
);
}
return (
<header className={`${styles.parallax} relative w-full h-[60vh] bg-no-repeat bg-cover bg-top z-10`}
style={{ backgroundImage: `url(${fejlecHatter})` }}
>
<div className="absolute inset-0 bg-black/40 flex flex-col items-center justify-center text-white text-center p-6">
<h1 className="text-3xl font-bold mb-2 bg-black/50 p-3 rounded-lg inline-block">
Üdvözöljük a PeePal weboldalán!
</h1>
<h2 className="text-lg font-medium max-w-md bg-black/40 p-3 rounded-lg">
Találja meg az Önhöz legközelebb eső nyilvános mosdót egy kattintással (vagy kettővel)
</h2>
</div>
</header>
);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 KiB

View File

@@ -0,0 +1,7 @@
export default function HozzaadGomb(){
return(
<>
<button>+</button>
</>
)
}