Skip to content

Commit

Permalink
update frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn Zschernack committed Nov 3, 2023
1 parent 6dcba75 commit e75636c
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 5 deletions.
4 changes: 1 addition & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@


<footer class="container-fluid w-100 bg-1">
<?php
wp_nav_menu(array('menu' => 'footer', 'menu_id'=>'footermenu', 'menu_container' => false));
?>

</footer>


Expand Down
6 changes: 6 additions & 0 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
</div>
</div>

<div class="row">
<div class="col-12">
<?php get_template_part('template-parts/posts/about'); ?>
</div>
</div>

</div>


Expand Down
26 changes: 26 additions & 0 deletions scss/includes/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,38 @@
padding: 25px;
grid-template-columns: repeat(3, 1fr );
padding-top: 40px;
@media (max-width: 1100px) {
grid-template-columns: repeat(2, 1fr );
}
@media (max-width: 768px) {
grid-template-columns: repeat(1, 1fr );
}

.single-post {
min-height: 100px;
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
background-color: #fff;
margin-right: 20px;
margin-bottom: 20px;
&:nth-child(3n) {
margin-right: 0;
}
@media (max-width: 1100px) {

margin-right: 0;
&:nth-child(1n) {
margin-right: 20px;
}
&:nth-child(2n) {
margin-right: 0;
}
}
@media (max-width: 768px) {
margin-right: 0 !important;
}
}
}

#about-banner{
min-height:100px; box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
}
34 changes: 34 additions & 0 deletions scss/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,44 @@ body header .contact .clock:before {
grid-template-columns: repeat(3, 1fr);
padding-top: 40px;
}
@media (max-width: 1100px) {
.posts-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.posts-grid {
grid-template-columns: repeat(1, 1fr);
}
}
.posts-grid .single-post {
min-height: 100px;
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
background-color: #fff;
margin-right: 20px;
margin-bottom: 20px;
}
.posts-grid .single-post:nth-child(3n) {
margin-right: 0;
}
@media (max-width: 1100px) {
.posts-grid .single-post {
margin-right: 0;
}
.posts-grid .single-post:nth-child(1n) {
margin-right: 20px;
}
.posts-grid .single-post:nth-child(2n) {
margin-right: 0;
}
}
@media (max-width: 768px) {
.posts-grid .single-post {
margin-right: 0 !important;
}
}

#about-banner {
min-height: 100px;
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
}
1 change: 1 addition & 0 deletions template-parts/posts/about.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="w-100 bg-white mt-5" id="about-banner"></div>
4 changes: 2 additions & 2 deletions template-parts/posts/postgrid.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 class="text-center m-5">Das Fahrzeugzentrum Olpe ist Ihr Spezialist rund um
<h1 class="text-center m-5 p-5">Das Fahrzeugzentrum Olpe ist Ihr Spezialist rund um
Fahrzeuge, Felgenreparaturen, Fahrzeugaufbereitung, Beschichtungen, Service und vieles mehr.</h1>

<div class="posts-grid">
<div class="posts-grid p-0 w-100">

<div class="single-post">
Expand Down

0 comments on commit e75636c

Please sign in to comment.