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> <article>
<main> <main>

View File

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

View File

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

View File

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

View File

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

View File

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