-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
56 lines (49 loc) · 1.92 KB
/
front-page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Template Name: Front Page
*
* @package delighted_calligraphy
*/
get_header(); ?>
<div class="loader">
<div class="loader__logo">
<div class="loader__logo__calligraphy">
<?php get_template_part( 'assets/images/logofull.svg' );
?>
</div>
<p class="loader__logo__text">
Calligraphy
</p>
</div>
</div>
<main id="main" role="main" class="col no-pad">
<?php while ( have_posts() ) : the_post(); ?>
<section class="hero-image" style="background-image: url(<?php echo get_field('hero_image')['url']; ?>);">
<div class="border border--inside">
<h1 class="entry-title screen-reader-text"><?php the_title(); ?></h1>
</div>
</section>
<section class="intro-text">
<p><?php the_field('introduction_text'); ?></p>
</section>
<section class="featured">
<div class="featured__wrapper">
<figure class="featured__figure">
<img src="<?php echo get_field('left_image')['url']; ?>" alt="<?php echo get_field('left_image')['alt']; ?>" />
<a href="<?php the_field('left_image_link'); ?>">
<h2 class="featured__title"><?php the_field('left_image_header'); ?></h2>
</a>
</figure>
</div>
<div class="featured__wrapper">
<figure class="featured__figure">
<img src="<?php echo get_field('right_image')['url']; ?>" alt="<?php echo get_field('right_image')['alt']; ?>" />
<a href="<?php the_field('right_image_link'); ?>">
<h2 class="featured__title"><?php the_field('right_image_header'); ?></h2>
</a>
</figure>
</div>
</section>
<?php endwhile; // end of the loop. ?>
</main>
<?php get_footer(); ?>