{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'mypage' %}
{% block stylesheet %}
<style>
#login_email,
#login_pass {
padding: 16px 12px;
width: 100%;
border-width: 1px;
border-color: #CCCCCC;
border-radius: 3px;
text: #BBBBBB;
height: 48px;
}
#breadcrumbs {
width: 100vw;
margin-left: -50vw;
position: relative;
left: 50%;
}
@media(max-width: 768px) {
#breadcrumbs {
padding-left: 40px;
}
}
</style>
{% endblock %}
{% block main %}
<div class="pb-20 md:px-6 whitespace-nowrap bg-background-default rounded">
<div class="flex gap-4 items-start mx-auto w-full pl-[136px] md:pl-0 pt-20 pb-6">
<hr class="md:h-[64px] h-[160px] w-[1px] bg-gradient-to-b from-[#ADAAA6] to-[#F0EDE900] border-none">
<h1 class="text-[32px] md:text-xl font-light leading-9 tracking-widest">新規会員登録・ログイン</h1>
</div>
<div class="w-full">
{% set breadcrumbs = [{'name': "新規会員登録・ログイン"}] %}
{{ include('Block/breadcrumb.twig') }}
</div>
<div class="max-w-[798px] w-full flex flex-col items-center justify-center mx-auto">
<div>
<div class="flex w-full gap-[72px] lg:flex-col lg:gap-10">
<div
class="w-1/2 lg:w-full">
{# 新規会員登録 #}
<h3 class="mb-[22px] text-xl font-medium">はじめてのご利用はこちら</h3>
<a href="{{url('entry')}}" class="block text-sm text-center bg-black w-[327px] text-white py-3 rounded-[3px] font-bold hover">{{ 'common.signup'|trans }}</a>
</div>
<hr class="bg-[#F0EDE9] border-none w-[1px] h-[327px] lg:w-[327px] lg:h-[1px]">
<form name="login_mypage" id="login_mypage" method="post" action="{{ url('mypage_login') }}" class="w-1/2 lg:w-full">
{% if app.session.flashBag.has('eccube.login.target.path') %}
{% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
<input type="hidden" name="_target_path" value="{{ targetPath }}"/>
{% endfor %}
{% endif %}
{# ログイン #}
<h3 class="mb-[22px] text-xl font-medium">会員の方</h3>
<p class="text-lg mb-[18px] font-medium">ログイン</p>
<div class="flex flex-col">
<div class="mb-4 text-sm font-medium">
<p class="mb-2 font-medium">メールアドレス</p>
{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
{{ form_errors(form.login_email) }}
</div>
<div class="mb-10">
<p class="mb-2 text-sm font-medium">パスワード</p>
{{ form_widget(form.login_pass, {'attr': {'placeholder' : 'common.password' }}) }}
{{ form_errors(form.login_pass) }}
</div>
<div class="flex flex-col items-center">
<button type="submit" class="mb-4 text-sm bg-red w-[327px] h-[45px] py-3 rounded-[3px] text-white font-bold hover">{{ 'common.login'|trans }}</button>
{% if error %}
<div class="!text-red text-xs flex items-center gap-2 pb-2">
<img src="{{asset('assets/icon/error.svg')}}" alt="Error Image" class="w-3 h-3">
<span class="flex ">
{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}
</span>
</div>
{% endif %}
<a class="border-b border-black leading-4 tracking-widest text-sm font-normal hover" href="{{ url('forgot') }}">パスワードを忘れた方</a>
</div>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</form>
</div>
<div></div>
</div>
</div>
</div>
{% endblock %}