templates/website/page/index.html.twig line 1
{% extends '@web/base.html.twig' %}{% set metaParams = {'title': "The Infinite Moment Gazette",'description': "One capture = Endless memory = Positive Emotion = Infinite Moment",'keywords': "photo, photo booth, gazette, memory, picture, foto, event, photo zone",'ogImage': "/images/infinite-moment.png"} %}{% block meta %}{% include '@web/parts/meta.html.twig' with metaParams %}{% endblock meta %}{% block title %}The Infinite Moment Gazette{% endblock title %}{% block body %}{% set locale = app.request.locale %}{% set cisLocales = ['ru', 'ua', 'ka'] %}{% for label, messages in app.flashes %}{% for message in messages %}<div id="christmasSuccessModal" class="christmas-modal"><div class="christmas-modal-content"><h2>🎅 {{ 'modal.success_title'|trans }}</h2><p>{{ 'modal.success_message' | trans }}</p><button id="closeChristmasModal" class="main-button">✨ {{ 'modal.close_button'|trans }}</button></div></div>{% endfor %}{% endfor %}<div id="cropModal" class="crop-modal"><div class="crop-modal-content"><h3>{{ 'Adjust your image'|trans }}</h3><div class="crop-info"><p>Drag to move image • Scroll to zoom • Crop area: 4:5 ratio (500×625px)</p></div><div class="crop-container"><img id="cropImage" style="display:block; max-width:100%; max-height:100%;"></div><div class="crop-actions"><button type="button" id="cropCancel">{{ 'Cancel'|trans }}</button><button type="button" id="cropConfirm" class="main-button">{{ 'Use this image'|trans }}</button></div></div></div><section class="section-home"><div class="custom-container">{# <section class="section-services wrapper-home-santa-section">#}{# <div class="custom-container">#}{# <div class="wrapper-navigation">#}{# <h1>🎅 {{ 'Message to Santa'|trans }} 🎄</h1>#}{# <div class="music-control">#}{# <button id="musicToggle" class="main-button">⏸️ Pause Music</button>#}{# </div>#}{# <ul>#}{# <li><a href="{{ path('page_index') }}">{{ 'Home'|trans }}</a></li>#}{# <li><span>{{ 'Message to Santa'|trans }}</span></li>#}{# </ul>#}{# </div>#}{# <ul class="wrapper-santa-languages">#}{# {% set currentLocale = app.request.get('_locale') %}#}{# <li class="{{ currentLocale == 'en' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}">#}{# <img src="{{ asset('images/flag/en.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'hy' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'hy'})) }}">#}{# <img src="{{ asset('images/flag/am.jpg') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'ru' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'ru'})) }}">#}{# <img src="{{ asset('images/flag/ru.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'ka' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'ka'})) }}">#}{# <img src="{{ asset('images/flag/ge.jpg') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'de' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'de'})) }}">#}{# <img src="{{ asset('images/flag/de.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'es' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'es'})) }}">#}{# <img src="{{ asset('images/flag/es.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'fr' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'fr'})) }}">#}{# <img src="{{ asset('images/flag/fr.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'ua' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'ua'})) }}">#}{# <img src="{{ asset('images/flag/uk.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'it' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'it'})) }}">#}{# <img src="{{ asset('images/flag/it.png') }}" alt="">#}{# </a>#}{# </li>#}{# <li class="{{ currentLocale == 'el' ? 'active' : '' }}">#}{# <a href="{{ path(app.request.attributes.get('_route'),#}{# app.request.attributes.get('_route_params')|merge({'_locale': 'el'})) }}">#}{# <img src="{{ asset('images/flag/gr.png') }}" alt="">#}{# </a>#}{# </li>#}{# </ul>#}{# <div class="wrapper-items">#}{# <div class="wrapper-video">#}{# {% set videoUrls = {#}{# 'en': {'src': 'video_template/en.mp4'},#}{# 'ru': {'src': 'video_template/ru.mp4'},#}{# 'hy': {'src': 'video_template/hy.mp4'},#}{# 'es': {'src': 'video_template/es.mp4'},#}{# 'it': {'src': 'video_template/it.mp4'},#}{# 'fr': {'src': 'video_template/fr.mp4'},#}{# 'el': {'src': 'video_template/el.mp4'},#}{# 'ua': {'src': 'video_template/ua.mp4'},#}{# 'ka': {'src': 'video_template/ka.mp4'},#}{# 'de': {'src': 'video_template/de.mp4'}#}{# } %}#}{# #}{# If locale not found, default to English #}{# {% set videoUrl = videoUrls[app.request.locale] ?? videoUrls['en'] %}#}{# <video width="455" controls poster="{{ asset('images/santa-poster.jpg') }}">#}{# <source src="{{ asset(videoUrl.src) }}" type="video/mp4">#}{# {{ 'Your browser does not support the video tag.'|trans }}#}{# </video>#}{# <div class="santa-pricing-info">#}{# <p class="pricing-title">#}{# 🎅 {{ 'Santa Video Options'|trans }}#}{# </p>#}{# <ul class="pricing-list">#}{# <li>#}{# <strong>🎄 {{ 'Default Santa greeting'|trans }}</strong><br>#}{# {% if locale == 'hy' %}#}{# 2000 ֏#}{# {% elseif locale in cisLocales %}#}{# 10 $#}{# {% else %}#}{# 10 €#}{# {% endif %}#}{# </li>#}{# <li>#}{# <strong>🎥 {{ 'Personalized message'|trans }}</strong><br>#}{# {% if locale == 'hy' %}#}{# 3000 ֏#}{# {% elseif locale in cisLocales %}#}{# 15 $#}{# {% else %}#}{# 15 €#}{# {% endif %}#}{# </li>#}{# </ul>#}{# <p class="pricing-note">#}{# {{ 'If you write a personal message, Santa will read it in the video.'|trans }}#}{# </p>#}{# </div>#}{# </div>#}{# <div class="wrapper-form wrapper-santa-form section-services wrapper-home-santa">#}{# <form id="santaForm" action="{{ path('page_santa') }}" method="post" enctype="multipart/form-data">#}{# <div class="wrapper-input">#}{# <input required type="text"#}{# placeholder="{{ 'form.from_name_placeholder'|trans }}*"#}{# name="fromName">#}{# <input required type="text"#}{# placeholder="{{ 'form.recipient_name_placeholder'|trans }}*"#}{# name="name">#}{# <input type="email"#}{# placeholder="{{ 'form.from_email_placeholder'|trans }}"#}{# name="fromEmail">#}{# <input required type="email"#}{# placeholder="{{ 'form.recipient_email_placeholder'|trans }}*"#}{# name="email">#}{# </div>#}{# <div class="wrapper-input">#}{# <input required type="text"#}{# placeholder="{{ 'form.gift_placeholder'|trans }}*"#}{# name="gift">#}{# <input type="tel" required#}{# placeholder="{{ 'form.phone_placeholder'|trans }}*"#}{# name="phone">#}{# </div>#}{# <div class="wrapper-input">#}{# <textarea#}{# placeholder="{{ 'form.comment_placeholder'|trans }}"#}{# name="comment"></textarea>#}{# </div>#}{# <div class="wrapper-input">#}{# <label class="file-label">#}{# {{ 'form.image_placeholder'|trans }}#}{# <input required type="file" name="image" accept="image/*">#}{# </label>#}{# </div>#}{# <div class="wrapper-button two-buttons">#}{# <button type="submit"#}{# name="action"#}{# value="pay_now"#}{# class="main-button">#}{# 💳 {{ 'form.pay_now'|trans }}#}{# </button>#}{# <button type="submit"#}{# name="action"#}{# value="request"#}{# class="secondary-button">#}{# ✉️ {{ 'form.leave_request'|trans }}#}{# </button>#}{# </div>#}{# </form>#}{# </div>#}{# </div>#}{# </div>#}{# </section>#}<div class="wrapper-home-slider"><div class="wrapper-banner-image" style="background-image: url({{ banner.image }})"><div class="wrapper-text"><span>{{ "now"|date('M')|trans }}{{ "now"|date('d,') }}{{ "now"|date(' Y') }}</span><h2>{{ banner.title }}</h2><p>{{ banner.shortDescription }}</p><a href="#">{{ 'READ MORE'|trans }}…</a></div></div><div class="wrapper-slider"><h3>Daily Feed</h3><div class="slider">{% for item in news %}<div><div class="wrapper-item"><h2>{{ item.title }}</h2><a href="#">{{ item.shortDescription }}</a></div></div>{% endfor %}</div></div></div><div class="wrapper-news"><h2 class="main-title">Featured News</h2><div class="wrapper-items"><div class="wrapper-item wrapper-left-item"><div class="wrapper-image"><img src="{{ services[0].image }}" alt=""></div><h3>{{ services[1].title }}</h3><div class="wrapper-image"><img src="{{ services[1].image }}" alt=""></div></div><div class="wrapper-item wrapper-middle-item"><div class="wrapper-text"><h3>{{ services[0].title }}</h3><p>{{ services[0].shortDescription }}</p><a href="{{ path('page_service',{'id':services[0].id}) }}">READ MORE</a></div><div class="wrapper-text"><p>{{ services[1].shortDescription }}</p><a href="{{ path('page_service',{'id':services[1].id}) }}">READ MORE</a></div></div><div class="wrapper-item wrapper-right-item"><div class="wrapper-image"><img src="{{ services[2].image }}" alt=""></div><div class="wrapper-text"><h3>{{ services[2].title }}</h3><p>{{ services[2].shortDescription }}</p><a href="{{ path('page_service',{'id':services[2].id}) }}">READ MORE</a></div></div></div></div><div class="wrapper-subscribe"><h5>Request my picture</h5><form action="{{ path('page_view_image') }}" class="wrapper-input"><input name="code" type="text" placeholder="Your private code"><button>Send</button></form></div></div></section><audio id="jingle" src="{{ asset('sounds/jingle-bells.mp3') }}"></audio><audio id="hoho" src="{{ asset('sounds/ho-ho-ho.mp3') }}"></audio><audio id="music"src="{{ asset('sounds/kids-happy-background-music.mp3') }}"loop muted autoplay playsinline></audio>{% endblock %}{% block javascripts %}{{ parent() }}<script>fbq('track', 'ViewContent', {content_name: 'Home Page'});const santaForm = document.getElementById('santaForm');if (santaForm) {santaForm.addEventListener('submit', function () {if (!santaForm.checkValidity()) {return;}const eventId = crypto.randomUUID();fbq('track', 'AddToCart', {content_name: 'Santa Message'}, { eventID: eventId });});}</script>{% endblock %}