mobile hero
This commit is contained in:
parent
189802f82b
commit
259490b5de
2 changed files with 43 additions and 42 deletions
|
|
@ -24,7 +24,6 @@
|
||||||
</nav>
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<div>
|
|
||||||
<div>
|
<div>
|
||||||
<h1>Słodkości tworzone z <span>pasją</span></h1>
|
<h1>Słodkości tworzone z <span>pasją</span></h1>
|
||||||
<p>Naturalne składniki, domowe receptury i pasja. Tworzymy torty i wypieki na Twoje najważniejsze chwile
|
<p>Naturalne składniki, domowe receptury i pasja. Tworzymy torty i wypieki na Twoje najważniejsze chwile
|
||||||
|
|
@ -34,7 +33,6 @@
|
||||||
<div>
|
<div>
|
||||||
<img alt="tort" src="images/001.jpg"/>
|
<img alt="tort" src="images/001.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
<section class="about-us">
|
<section class="about-us">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
31
style.css
31
style.css
|
|
@ -30,20 +30,16 @@ nav > div {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
grid-template-rows: 1fr 1fr;
|
grid-template-rows: 1fr 1fr;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
& > .btn {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& :last-child {
|
& :last-child {
|
||||||
justify-self: end
|
justify-self: end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
& > .btn {
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
grid-column: 2;
|
|
||||||
grid-row: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -87,26 +83,34 @@ nav > div {
|
||||||
max-width: var(--max-content-width);
|
max-width: var(--max-content-width);
|
||||||
height: 800px;
|
height: 800px;
|
||||||
|
|
||||||
& > div {
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
gap: 0;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
padding-bottom: 4rem;
|
||||||
|
& > :last-child {
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > :first-child {
|
||||||
|
grid-row: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* left portion */
|
|
||||||
|
|
||||||
& > :first-child {
|
& > :first-child {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* right portion */
|
|
||||||
|
|
||||||
& > :last-child {
|
& > :last-child {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
|
@ -124,7 +128,6 @@ nav > div {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.about-us {
|
.about-us {
|
||||||
background-color: var(--surface-container-low);
|
background-color: var(--surface-container-low);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue