renamed php templates and parts, created style to center content in widgets

This commit is contained in:
jorge 2022-03-21 12:53:52 +01:00
parent f1c3fe37f0
commit 3373bf69b2
7 changed files with 143 additions and 118 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ get_header(); ?>
<?php get_template_part( 'template-parts/home', 'announcement' ); ?>
<?php get_template_part( 'template-parts/home', 'announcement-main' ); ?>
<article>
<main>

View File

@ -222,11 +222,20 @@
.hero {
border-top: 2px solid $primary-color;
.slides {
@include xy-grid();
border-top: 2px solid $primary-color;
.slide {
@include xy-grid;
&.widget {
display: flex;
align-content: center;
justify-content: center;
}
&.widget_media_image {
justify-content: unset;
align-content: stretch;
}
@include breakpoint(small){
width: 100vw;
margin: 0;

View File

@ -7,13 +7,10 @@
*/
?>
<section class="hero secondary">
<main class="slides">
<section class="hero hero-announcement">
<?php dynamic_sidebar( 'announcement-widgets' ); ?>
</main>
<aside>
<nav>
<?php //inser menu hero here; ?>
</nav>
<?php //insert menu hero here; ?>
<?php //foundationpress_hero_announcement_bar(); ?>
</aside>
</section>

View File

@ -7,7 +7,7 @@
*/
?>
<section class="hero">
<section class="hero hero-last">
<!--main class="slides"-->
<?php dynamic_sidebar( 'home-announcement-last-widgets' ); ?>
<!--/main-->

View File

@ -7,7 +7,7 @@
*/
?>
<section class="hero">
<section class="hero hero-main">
<!--main class="slides"-->
<?php dynamic_sidebar( 'home-announcement-widgets' ); ?>
<!--/main-->

View File

@ -7,10 +7,8 @@
*/
?>
<section class="hero">
<!--main class="slides"-->
<section class="hero hero-middle">
<?php dynamic_sidebar( 'home-announcement-middle-widgets' ); ?>
<!--/main-->
<aside>
<?php foundationpress_home_hero_middle_bar(); ?>
</aside>