create & style basic banner component
This commit is contained in:
11
components/Banner.js
Normal file
11
components/Banner.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function Banner() {
|
||||
return (
|
||||
<>
|
||||
<section className="banner">
|
||||
<div />
|
||||
<h1>Dzień dobry.</h1>
|
||||
<p>Tutaj znajdzie się banner ze zdjęciem.</p>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import Header from "../components/Header.js";
|
||||
import Banner from "../components/Banner.js";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<Banner />
|
||||
<style jsx>{`
|
||||
h1,
|
||||
p {
|
||||
|
||||
@@ -22,6 +22,7 @@ nav.main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
position: relative;
|
||||
a {
|
||||
display: block;
|
||||
padding: 0 1.5rem;
|
||||
@@ -59,3 +60,29 @@ nav.main {
|
||||
height: var(--size);
|
||||
}
|
||||
}
|
||||
|
||||
section.banner {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 28rem;
|
||||
h1,
|
||||
p {
|
||||
position: fixed;
|
||||
text-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
h1 {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
p {
|
||||
margin-top: 6rem;
|
||||
}
|
||||
div {
|
||||
// filter: blur(0.2rem);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
background-color: var(--black0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user