tema
This commit is contained in:
60
wp-content/themes/sevastopol-tort-child/front-page.php
Normal file
60
wp-content/themes/sevastopol-tort-child/front-page.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
get_header();
|
||||
?>
|
||||
<main class="home-page">
|
||||
<section class="home-hero">
|
||||
<div class="home-hero__inner">
|
||||
<div class="home-hero__content">
|
||||
<span class="home-hero__eyebrow">Кондитерская студия в Севастополе</span>
|
||||
<h1 class="home-hero__title">Торты на заказ в Севастополе с доставкой</h1>
|
||||
<p class="home-hero__lead">Готовим бенто, детские, свадебные и праздничные торты под ваш повод. Подберем дизайн, начинку и формат после короткой заявки.</p>
|
||||
<div class="home-hero__actions">
|
||||
<a class="button-main" href="<?php echo esc_url( home_url( '/torty-na-zakaz/' ) ); ?>">Рассчитать стоимость</a>
|
||||
<a class="button-link" href="<?php echo esc_url( sev_tort_telegram_url() ); ?>" target="_blank" rel="noopener noreferrer">Написать в Telegram</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="home-hero__media">
|
||||
<img class="home-hero__image home-hero__image--main" src="<?php echo esc_url( sev_tort_asset_image( 'cake-010.jpg' ) ); ?>" alt="Авторский торт на заказ в Севастополе" width="700" height="700" loading="eager">
|
||||
<img class="home-hero__image home-hero__image--small" src="<?php echo esc_url( sev_tort_asset_image( 'cake-020.jpg' ) ); ?>" alt="Романтичный бенто торт" width="360" height="360" loading="lazy">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="home-categories">
|
||||
<div class="home-categories__inner">
|
||||
<div class="home-categories__head">
|
||||
<span class="section-kicker">Категории</span>
|
||||
<h2 class="section-title">Выберите торт под событие</h2>
|
||||
</div>
|
||||
<div class="home-categories__grid">
|
||||
<?php foreach ( array( 'bento', 'detskie', 'svadebnye', 'korporativnye', 'na-den-rozhdeniya', 'srochnyj-zakaz' ) as $slug ) : ?>
|
||||
<?php $item = sev_tort_pages()[ $slug ]; ?>
|
||||
<a class="home-category-card" href="<?php echo esc_url( home_url( '/' . $item['slug'] . '/' ) ); ?>">
|
||||
<img class="home-category-card__image" src="<?php echo esc_url( sev_tort_asset_image( $item['image'] ) ); ?>" alt="<?php echo esc_attr( $item['label'] ); ?>" width="420" height="420" loading="lazy">
|
||||
<span class="home-category-card__title"><?php echo esc_html( $item['label'] ); ?></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="home-steps">
|
||||
<div class="home-steps__inner">
|
||||
<div class="home-steps__content">
|
||||
<span class="section-kicker">Заказ</span>
|
||||
<h2 class="section-title">Как мы работаем</h2>
|
||||
<ol class="home-steps__list">
|
||||
<li class="home-steps__item">Вы оставляете заявку с датой, поводом и идеей.</li>
|
||||
<li class="home-steps__item">Мы уточняем вес, начинку, декор и доставку.</li>
|
||||
<li class="home-steps__item">Согласовываем стоимость и фиксируем заказ.</li>
|
||||
<li class="home-steps__item">Передаем торт курьером или на самовывоз.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<?php get_template_part( 'template-parts/lead-form', null, array( 'title' => 'Обсудить торт', 'page' => 'Главная' ) ); ?>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user