Skip to content

Commit

Permalink
update on frontpage boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn Zschernack committed Nov 4, 2023
1 parent a273855 commit 3de2d93
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 2 deletions.
6 changes: 6 additions & 0 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
</div>
</div>

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

</div>


Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once('inc/func_rest_api.php');
require_once('includes/shortcodes.php');

if ( ! function_exists( 'theme_slug_setup' ) ) :
/**
Expand Down
19 changes: 19 additions & 0 deletions images/icons/servicebar_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions includes/shortcodes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
function getServiceBar($atts){
ob_start();
$content .= get_template_part('template-parts/shortcodes/servicebar');
$content .= ob_get_clean();
return $content;
}

add_shortcode( 'servicebar', 'getServiceBar' );
3 changes: 2 additions & 1 deletion scss/includes/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
}

#about-banner{
min-height:100px; box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
min-height:100px;
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
}
10 changes: 10 additions & 0 deletions scss/includes/_shortcodes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#servicebar {
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
background: white;
padding:100px;

img {
height: 41px;
width: auto;;
}
}
10 changes: 10 additions & 0 deletions scss/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,14 @@ body header .contact .clock:before {
#about-banner {
min-height: 100px;
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
}

#servicebar {
box-shadow: 0 33px 36px 0 rgba(93, 108, 123, 0.08);
background: white;
padding: 100px;
}
#servicebar img {
height: 41px;
width: auto;
}
1 change: 1 addition & 0 deletions scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
@import 'includes/main';
@import 'includes/menu';
@import 'includes/content';
@import 'includes/shortcodes';


22 changes: 22 additions & 0 deletions template-parts/shortcodes/servicebar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div class="d-flex flex-column flex-lg-row justify-content-between my-5 align-items-center" id="servicebar">

<div class="single-item text-center">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/servicebar_1.svg" alt="Transparent & Verbindlich" class="servicebar-icon" />
<p>Transparent & Verbindlich</p>
</div>

<div class="single-item text-center">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/felge.svg" alt="Felgenreparatur" class="servicebar-icon" />
<p>Felgenreparatur</p>
</div>

<div class="single-item text-center">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/aufbereitung_icon.svg" alt="Fahrzeugaufbereitung" class="servicebar-icon" />
<p>Fahrzeugaufbereitung</p>
</div>

<div class="single-item text-center">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/Beschichtung_icon.svg" alt="Keramikbeschichtung" class="servicebar-icon" />
<p>Keramikbeschichtung</p>
</div>
</div>

0 comments on commit 3de2d93

Please sign in to comment.