-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83040f8
commit e99dd23
Showing
14 changed files
with
217 additions
and
47 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* Template Name: Default | ||
* | ||
* | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div class="content-area"> | ||
<div class="container max-width-4 mx-auto mt4 mb4"> | ||
<?php while (have_posts()): the_post(); ?> | ||
<div class=""> | ||
<?php echo the_content(); ?> | ||
</div> | ||
<?php endwhile; ?> | ||
</div> | ||
</div> | ||
|
||
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,6 @@ body { | |
color: $c--black; | ||
} | ||
|
||
|
||
|
||
* { | ||
box-sizing: border-box; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,87 @@ | ||
/* HERO | ||
----------------------------- */ | ||
@import 'preview/highlights'; | ||
.homepage--hero { | ||
margin-top: 10rem; | ||
max-width: 45rem; | ||
|
||
|
||
} | ||
|
||
.section__event { | ||
|
||
.section__background { | ||
div { | ||
background: $c--lightgray; | ||
} | ||
|
||
.section__highlight { | ||
.preview__event-description { | ||
p { | ||
margin: 0; | ||
} | ||
column-count: 2; | ||
|
||
@media screen and(max-width: 400px) { | ||
column-count: 1; | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
position: relative; | ||
|
||
background-color: $c--lightgray; | ||
h1 { | ||
color: $c--primary; | ||
} | ||
|
||
} | ||
.section--hero { | ||
&.section--home-hero { | ||
.contain-image { | ||
max-height: 245px !important; | ||
padding-top: .8rem; | ||
|
||
|
||
@media screen and (max-width: 640px) { | ||
max-height: 533px !important; | ||
left: -50%; | ||
margin-top: -4rem; | ||
position: absolute; | ||
|
||
} | ||
|
||
@media screen and (max-width: 400px) { | ||
max-height: 404px !important; | ||
padding-top: -2.2rem; | ||
left: 0%; | ||
transform: translatey(22%); | ||
margin-top: -5rem; | ||
opacity: .3; | ||
position: absolute; | ||
} | ||
} | ||
|
||
|
||
} | ||
&.section--ted-circle { | ||
background-color: $c--primary; | ||
} | ||
|
||
.section__container { | ||
|
||
.contain-image { | ||
img { | ||
max-height: calc((100vh - 180px)/2); | ||
} | ||
} | ||
} | ||
|
||
.section__line { | ||
overflow: hidden; | ||
.line { | ||
transform: translateX(-50%); | ||
margin-bottom: 5rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
|
||
input { | ||
@include input-form(); | ||
padding-right: 10rem; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
wp-content/themes/tedx_theme/template-parts/block-social.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 50 additions & 13 deletions
63
wp-content/themes/tedx_theme/template-parts/homepage/section-hero.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,58 @@ | ||
<?php | ||
$line = get_template_directory_uri() . '/assets/line.png'; | ||
$highlight = get_sub_field('highlights_reference'); | ||
if($highlight): | ||
?> | ||
|
||
<section class="section section--hero"> | ||
<ul class="section__container m0 pt0 list-reset"> | ||
<div> | ||
<?php get_template_part('template-parts/template','common-hero');?> | ||
<div class="homepage--hero container mt4 mx-auto"> | ||
<div class="clearfix"> | ||
<div class="col col-12 sm-col-6 mb4"> | ||
<div class="mx-auto"> | ||
<?php get_template_part('template-parts/template','common-hero');?> | ||
</div> | ||
</div> | ||
<div class="col col-6 mx-auto"> | ||
<div class=" "> | ||
<section class="section section--hero"> | ||
<ul class="section__container m0 pt0 list-reset"> | ||
<div> | ||
</div> | ||
<?php foreach( $highlight as $post ): | ||
setup_postdata($post); ?> | ||
<div class="section__item "> | ||
<?php get_template_part('template-parts/preview', 'highlight'); ?> | ||
</div> | ||
<?php endforeach; ?> | ||
</ul> | ||
</section> | ||
</div> | ||
</div> | ||
</div> | ||
<?php foreach( $highlight as $post ): | ||
setup_postdata($post); ?> | ||
<li class="section__item pb4 "> | ||
<?php get_template_part('template-parts/preview', 'highlight'); ?> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
<?php wp_reset_postdata(); ?> | ||
</section> | ||
</div> | ||
<div class="clearfix section__event mb4"> | ||
<div class=" container section__background col-12 mt3 mb4"> | ||
<?php if( have_rows('preview_highlight') ): ?> | ||
<?php while( have_rows('preview_highlight') ): the_row(); | ||
$event_title = get_sub_field('title'); | ||
$event_description = get_sub_field('description');?> | ||
<div class="section__highlight col-11 sm-col-8 md-col-6 mx-auto"> | ||
<div class="preview__event-title center"> | ||
<h1><?php echo $event_title; ?></h1> | ||
</div> | ||
<div class="preview__event-description justify"> | ||
<?php echo $event_description; ?> | ||
</div> | ||
</div> | ||
<?php endwhile; ?> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
<?php wp_reset_postdata(); ?> | ||
<div class="section__line" > | ||
<img class="line" src="<?php echo $line; ?>" alt=""> | ||
</div> | ||
|
||
<?php endif ?> | ||
|
||
|
||
|
23 changes: 12 additions & 11 deletions
23
wp-content/themes/tedx_theme/template-parts/preview-highlight.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<?php | ||
$highlight = get_sub_field('highlights_reference'); | ||
?> | ||
<div class="preview preview--highlight"> | ||
<div class="clearfix preview-background-color"> | ||
|
||
<div class="container mx-auto preview preview--highlight"> | ||
<div class="clearfix "> | ||
|
||
<?php if( have_rows('preview_highlight') ): ?> | ||
<?php while( have_rows('preview_highlight') ): the_row(); | ||
$title = get_sub_field('text_1'); | ||
$subtitle = get_sub_field('text_2'); | ||
$bg_image = get_sub_field('image'); | ||
$thumbnail = get_the_post_thumbnail(); | ||
?> | ||
<div class="pt3 pb4"> | ||
<div class="preview__wrap-text right-align pr4"> | ||
<div class=""> | ||
<div class="preview__wrap-text left-align "> | ||
<div class="preview__title "> | ||
<?php echo $title; ?> | ||
</div> | ||
<div class="preview__subtitle "> | ||
<div class="preview__subtitle left-align "> | ||
<span class="subtitle__background"><?php echo $subtitle; ?></span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="preview__wrap preview__background "> | ||
<img class="" src="<?php echo get_the_post_thumbnail_url();?>" alt="img"> | ||
</div> | ||
</div> | ||
|
||
<?php endwhile; ?> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
<?php | ||
|
||
|
||
|
Oops, something went wrong.