User Modal
Popup Açılır
Site üzerinde üye giriş ve hesabım linki tetiklendiği an sayfanın ortasında açılan kullanıcı giriş ve hesabım komponent alanı
Görünüm

Popup Açılır Görünümü

Popup Açılır Aktif Görünümü
Kod Yapısı
Html, Scss ve Json kodlarını kopyalayıp siteniz üzerinde ilgili alana eklediğinizde çalışmasını sağlayabilirsiniz. Kodların kullanımı ile ilgili bilgileri prensipler bölümünden okuyarak nasıl ekleneceğini öğrenebilirsiniz.
Html
index.html<div class="user-menu"> {% if not visitor.isMember %} <a href="javascript:void(0);" class="openbox" aria-label="Member Login" data-target="user-menu-content" data-mode="custom" data-overlay="inside" data-close="true"> <svg width="36" height="36" viewBox="0 0 36 36" fill="none"> <path d="M26.9994 25.4843C26.9173 23.5554 26.1584 21.7097 24.8459 20.2473C23.8586 19.1455 22.5999 18.2984 21.1845 17.7833C22.0188 17.1484 22.6268 16.2799 22.9239 15.2982C23.221 14.3166 23.1926 13.2704 22.8425 12.305C22.4925 11.3395 21.8382 10.5026 20.9705 9.91041C20.1027 9.31819 19.0646 9 18 9C16.9354 9 15.8972 9.31819 15.0295 9.91041C14.1617 10.5026 13.5075 11.3395 13.1574 12.305C12.8074 13.2704 12.779 14.3166 13.0761 15.2982C13.3732 16.2799 13.9811 17.1484 14.8155 17.7833C13.4016 18.2991 12.1444 19.1461 11.1583 20.2473C9.84404 21.7095 9.08359 23.5555 9.00057 25.4853C8.99458 25.6157 9.03597 25.7441 9.11765 25.8484C9.19933 25.9528 9.31623 26.0266 9.44835 26.0573C12.25 26.6957 15.1205 27.0133 18 27.0033C20.8795 27.0129 23.75 26.695 26.5516 26.0563C26.6838 26.0258 26.8008 25.952 26.8826 25.8476C26.9643 25.7432 27.0056 25.6148 26.9994 25.4843V25.4843ZM14.0449 13.9273C14.0449 13.1758 14.277 12.4411 14.7118 11.8162C15.1466 11.1913 15.7646 10.7042 16.4877 10.4166C17.2108 10.129 18.0065 10.0537 18.7741 10.2003C19.5417 10.347 20.2468 10.7089 20.8002 11.2403C21.3536 11.7718 21.7305 12.4489 21.8832 13.186C22.0359 13.9231 21.9575 14.6872 21.658 15.3815C21.3585 16.0759 20.8513 16.6694 20.2005 17.0869C19.5498 17.5045 18.7847 17.7273 18.0021 17.7273C16.9526 17.7273 15.946 17.327 15.2039 16.6143C14.4618 15.9017 14.0449 14.9352 14.0449 13.9273ZM18.0021 25.8783C15.3815 25.8863 12.7681 25.6156 10.2096 25.0713C10.381 23.5182 11.0522 22.055 12.1298 20.8852C13.2075 19.7154 14.638 18.8971 16.2224 18.5443C17.3711 18.9527 18.6341 18.9527 19.7828 18.5443C21.367 18.8973 22.7973 19.7156 23.8747 20.8854C24.9521 22.0552 25.6232 23.5183 25.7945 25.0713C23.2353 25.6158 20.6212 25.8864 18 25.8783H18.0021Z" fill="#110F21"/> </svg> <span>{{ theme.settings.user_login }}</span> </a> <div class="user-menu-content openbox-content"> <form action="{{ path('member_login') }}" method="POST" data-selector="login-panel"> <div class="user-menu-content-top"> <div class="user-menu-title">{{ theme.settings.user_menu_title }}</div> <div class="user-menu-subtitle">{{ theme.settings.user_menu_subtitle }}</div> <div class="user-menu-input"> <input class="form-control" type="text" name="email" id="user-login-email" placeholder="{{ theme.settings.user_login_email }}" value="{{ cookie_member_email }}" autocomplete="email"> </div> <div class="user-menu-input"> <input class="form-control" type="password" name="pass" id="user-login-pass" placeholder="{{ theme.settings.user_login_pass }}" autocomplete="current-password"> </div> <div class="row align-items-center"> <div class="col-6"> <div class="checkbox-custom user-menu-remember"> <input type="checkbox" name="remember" id="custom-remember-me" value="1" {{ (cookie_member_email ? 'checked': '') }}> <label for="custom-remember-me">{{ getLang("_RememberMe_") }}</label> </div> </div> <div class="col-6"> <a href="{{ path('member_forgotpass') }}" class="user-menu-forgot-pass">{{ getLang("_ForgotPass_") }}</a> </div> </div> <div class="user-menu-button mb-0"> <button type="submit" class="btn btn-primary btn-block" data-selector="login-panel-button">{{ theme.settings.user_login_button }}</button> </div> </div> <div class="user-menu-content-bottom"> <div class="user-menu-title">{{ theme.settings.user_menu_bottom_title }}</div> <div class="user-menu-subtitle">{{ theme.settings.user_menu_bottom_subtitle }}</div> <div class="user-menu-button"> <a href="{{ path('member_signup') }}" class="btn btn-user-menu-signup btn-block">{{ theme.settings.user_signup_button }}</a> </div> {% if theme.settings.use_facebook_login %} <div class="user-menu-button"> <button type="button" data-selector="facebook-login" class="btn btn-facebook btn-block">{{ theme.settings.user_signup_facebook_button }}</button> </div> {% endif %} {% if theme.settings.use_google_login %} <div class="user-menu-button mb-0"> <button type="button" data-selector="google-login" class="btn btn-google btn-block">{{ theme.settings.user_signup_google_button }}</button> </div> {% endif %} </div> </form> </div> {% else %} <a href="javascript:void(0);" class="openbox" aria-label="Member Profile" data-target="user-menu-welcome" data-mode="custom" data-overlay="inside" data-close="true"> <svg width="36" height="36" viewBox="0 0 36 36" fill="none"> <path d="M26.9994 25.4843C26.9173 23.5554 26.1584 21.7097 24.8459 20.2473C23.8586 19.1455 22.5999 18.2984 21.1845 17.7833C22.0188 17.1484 22.6268 16.2799 22.9239 15.2982C23.221 14.3166 23.1926 13.2704 22.8425 12.305C22.4925 11.3395 21.8382 10.5026 20.9705 9.91041C20.1027 9.31819 19.0646 9 18 9C16.9354 9 15.8972 9.31819 15.0295 9.91041C14.1617 10.5026 13.5075 11.3395 13.1574 12.305C12.8074 13.2704 12.779 14.3166 13.0761 15.2982C13.3732 16.2799 13.9811 17.1484 14.8155 17.7833C13.4016 18.2991 12.1444 19.1461 11.1583 20.2473C9.84404 21.7095 9.08359 23.5555 9.00057 25.4853C8.99458 25.6157 9.03597 25.7441 9.11765 25.8484C9.19933 25.9528 9.31623 26.0266 9.44835 26.0573C12.25 26.6957 15.1205 27.0133 18 27.0033C20.8795 27.0129 23.75 26.695 26.5516 26.0563C26.6838 26.0258 26.8008 25.952 26.8826 25.8476C26.9643 25.7432 27.0056 25.6148 26.9994 25.4843V25.4843ZM14.0449 13.9273C14.0449 13.1758 14.277 12.4411 14.7118 11.8162C15.1466 11.1913 15.7646 10.7042 16.4877 10.4166C17.2108 10.129 18.0065 10.0537 18.7741 10.2003C19.5417 10.347 20.2468 10.7089 20.8002 11.2403C21.3536 11.7718 21.7305 12.4489 21.8832 13.186C22.0359 13.9231 21.9575 14.6872 21.658 15.3815C21.3585 16.0759 20.8513 16.6694 20.2005 17.0869C19.5498 17.5045 18.7847 17.7273 18.0021 17.7273C16.9526 17.7273 15.946 17.327 15.2039 16.6143C14.4618 15.9017 14.0449 14.9352 14.0449 13.9273ZM18.0021 25.8783C15.3815 25.8863 12.7681 25.6156 10.2096 25.0713C10.381 23.5182 11.0522 22.055 12.1298 20.8852C13.2075 19.7154 14.638 18.8971 16.2224 18.5443C17.3711 18.9527 18.6341 18.9527 19.7828 18.5443C21.367 18.8973 22.7973 19.7156 23.8747 20.8854C24.9521 22.0552 25.6232 23.5183 25.7945 25.0713C23.2353 25.6158 20.6212 25.8864 18 25.8783H18.0021Z" fill="#110F21"/> </svg> <span>{{ theme.settings.user_signup }}</span> <i> <svg width="18" height="18" viewBox="0 0 18 18" fill="none"> <path d="M7.60931 11.8043L5.18197 9.1899C5.06481 9.05935 5 8.89009 5 8.71464C5 8.53919 5.06481 8.36993 5.18197 8.23938C5.23818 8.17828 5.30644 8.12951 5.38244 8.09616C5.45844 8.0628 5.54054 8.04557 5.62353 8.04557C5.70653 8.04557 5.78863 8.0628 5.86463 8.09616C5.94063 8.12951 6.00889 8.17828 6.06509 8.23938L8.05137 10.3785L11.9359 6.19326C11.9921 6.13233 12.0603 6.0837 12.1362 6.05043C12.2121 6.01717 12.2941 6 12.377 6C12.4598 6 12.5418 6.01717 12.6177 6.05043C12.6936 6.0837 12.7618 6.13233 12.818 6.19326C12.9352 6.32382 13 6.49308 13 6.66852C13 6.84397 12.9352 7.01323 12.818 7.14378L8.49143 11.8043C8.43564 11.8659 8.36758 11.9152 8.29161 11.9489C8.21565 11.9826 8.13347 12 8.05037 12C7.96727 12 7.88509 11.9826 7.80913 11.9489C7.73316 11.9152 7.66509 11.8659 7.60931 11.8043V11.8043Z" fill="white"/> </svg> </i> </a> <div class="user-menu-welcome openbox-content"> <div class="user-menu-profile"> <div class="user-menu-title">{{ theme.settings.user_menu_title }}</div> <div class="user-menu-subtitle">{{ theme.settings.user_dear }} {{ visitor.member.firstname ~ ' ' ~ visitor.member.surname }}</div> <div class="user-menu-profile-list"> <a href="{{ path('member_index') }}">{{ theme.settings.user_member_index }}</a> <a href="{{ path('member_order_list') }}">{{ theme.settings.user_member_order_list }}</a> <a href="{{ path('member_bank_transfer') }}">{{ theme.settings.user_member_bank_transfer }}</a> <a href="{{ path('member_profile') }}">{{ theme.settings.user_member_profile }}</a> <a href="{{ path('member_point_list') }}">{{ theme.settings.user_member_point_list }}</a> <a href="{{ path('member_favourite_list') }}">{{ theme.settings.user_member_favourite_list }}</a> </div> <div class="user-menu-button mb-0"> <a href="{{ path('member_logout') }}" class="btn btn-primary btn-block">{{ theme.settings.user_logout }}</a> </div> </div> </div> {% endif %} </div>
Scss
style.css/* User Menu Content */ body { &.user-menu-content-active { .user-menu-content { display: block; } } &.user-menu-welcome-active { .user-menu-welcome { display: block; } } } .user-menu { margin-left: var(--spacer-4); > a { position: relative; @include center; min-width: 36px; height: 36px; color: $color-text; font-size: var(--font-size-14); > i { position: absolute; left: 0; top: -9px; @include center; width: 18px; height: 18px; background-color: $color-primary; border-radius: 100%; } @include max($sm) { > span { display: none; } } } } .user-menu-content, .user-menu-welcome { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 420px; z-index: 101; overflow-y: auto; display: none; padding: var(--spacer-8) var(--spacer-10); background-color:#fff; transition: $transition; @include max($lg) { height: 85%; } @include max($sm) { width: 320px; } @include max($xxxs) { width: 280px; } .openbox-close { position: absolute; top: 0; right: 0; width: 36px; height: 36px; cursor: pointer; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADGSURBVHgB7ZTRDcMgDEQNLEI3QGKCTJ4JkNigLAIUV1SKkA1uPpP4B+Lk7kn4AsBTly9FNb33b1xzzluMMc0MnHPWGLPjPoTwGt9rSlRrxeUrRANYm9uuARGglLI1QZpBBvOEGsqLPKKfgdZ6V0rZ9piOx0WZc0fJAjgI9qXmSwAF6W2RuQhAQEBqjqVBWM2c3C91qw/GgXaAhWHwpwBcFLl0/QWYRXEWYRFAknMphByyJOfYG/94you9iyRRPEK4u+ipG9QHri3fDlYivy0AAAAASUVORK5CYII='); background-repeat: no-repeat; background-position: center center; transition: $transition; &:hover { opacity: 0.8; } } .user-menu-content-top { padding-bottom: var(--spacer-7); margin-bottom: var(--spacer-7); border-bottom: 1px solid $color-border; @include max($lg) { border: none; } } .user-menu-title { line-height: 28px; color: $color-text; font-size: var(--font-size-20); font-weight: 600; margin-bottom: var(--spacer-3); } .user-menu-subtitle { line-height: 20px; font-size: var(--font-size-16); margin-bottom: var(--spacer-5); } .user-menu-input { margin-bottom: var(--spacer-5); input { height: 48px; color: $color-text; font-size: var(--font-size-14); padding: var(--spacer-4); border: 1px solid $color-border; background-color: #fff; &::placeholder { color: $color-text; opacity: 1; } } } .user-menu-remember { input[type=checkbox] { & + label { line-height: 20px; color: $color-text; font-size: var(--font-size-14); padding-left: 36px; &:before { width: 20px; height: 20px; border: 1px solid $color-border; } } &:checked { & + label { &:before { background-image: none; border-color: $color-border; background-color: $color-white; } &:after { content: ''; position: absolute; left: 7px; top: 2px; display: inline-block; width: 6px; height: 12px; border-bottom: 2px solid $color-primary; border-right: 2px solid $color-primary; transform: rotate(45deg); } } } } input[type=checkbox]:checked+label:before { background-image: none; border-color: $color-border; background-color: $color-white; } } .user-menu-remember, .user-menu-forgot-pass { margin-bottom: var(--spacer-7); } .user-menu-forgot-pass { display: block; color: $color-text; font-size: var(--font-size-14); text-align: right; } .user-menu-button { margin-bottom: var(--spacer-5); .btn { @include center; height: 48px; color: $color-white; font-size: var(--font-size-18); font-weight: 600; padding: 0; @include max($xxxs) { height: 44px; } &.btn-facebook { color: #485a96 !important; background: #fff !important; border: 1px solid #485a96; transition: $transition; &:hover { color: #fff !important; background: #485a96 !important; } } &.btn-google { color: #4285f4 !important; background: #fff !important; border: 1px solid #4285f4; transition: $transition; &:hover { color: #fff !important; background: #4285f4 !important; } } } } .btn-user-menu-signup { color: #ffffff; background-color: $color-text; } .user-menu-profile-list { > a { display: flex; align-items: center; height: 48px; color: $color-text; font-size: var(--font-size-14); font-weight: 600; padding: 0 var(--spacer-4); margin-bottom: var(--spacer-5); border: 1px solid $color-border; transition: $transition; &:hover { color: $color-white; border-color: $color-primary; background-color: $color-primary; } } } }
Json
index.js"user_login": { "type": "text", "default_value": "Üye Girişi", "label": "Üye Girişi" }, "user_signup": { "type": "text", "default_value": "Hesabım", "label": "Hesabım" }, "user_menu_title": { "type": "text", "default_value": "Hoş Geldiniz", "label": "Açılır Üye Alanı Başlığı" }, "user_menu_subtitle": { "type": "text", "default_value": "Hızlı ve güvenli alışverişe giriş yapın!", "label": "Açılır Üye Alanı Alt Başlığı" }, "user_login_email": { "type": "text", "default_value": "E-posta Adresiniz", "label": "E-mail Metni" }, "user_login_pass": { "type": "text", "default_value": "Parolanız", "label": "Şifre Metni" }, "user_login_button": { "type": "text", "default_value": "Giriş Yap", "label": "Giriş Yap Butonu" }, "user_menu_bottom_title": { "type": "text", "default_value": "Henüz Üye Değil Misiniz?", "label": "Açılır Üye Alanı Aksiyon Başlığı" }, "user_menu_bottom_subtitle": { "type": "text", "default_value": "Kolayca üye olabilirsiniz!", "label": "Açılır Üye Alanı Aksiyon Alt Başlığı" }, "user_signup_button": { "type": "text", "default_value": "Hemen Üye Ol", "label": "Üye Ol Butonu" }, "user_signup_facebook_button": { "type": "text", "default_value": "Facebook ile Bağlan", "label": "Facebook ile Bağlan Butonu" }, "user_signup_google_button": { "type": "text", "default_value": "Google ile Bağlan", "label": "Google ile Bağlan Butonu" }, "user_dear": { "type": "text", "default_value": "Sn.", "label": "Sayın Metni" }, "user_member_index": { "type": "text", "default_value": "Hesap Bilgileri", "label": "Hesap Bilgileri Sayfası" }, "user_member_order_list": { "type": "text", "default_value": "Siparişlerim", "label": "Siparişlerim Sayfası" }, "user_member_bank_transfer": { "type": "text", "default_value": "Havale Bildirimi", "label": "Havale Bildirimi Sayfası" }, "user_member_profile": { "type": "text", "default_value": "Üye Bilgisi Güncelleme", "label": "Üye Bilgisi Güncelleme Sayfası" }, "user_member_point_list": { "type": "text", "default_value": "Hediye Çekleri & Puan", "label": "Hediye Çekleri & Puan Sayfası" }, "user_member_favourite_list": { "type": "text", "default_value": "Favori Ürünleri Listele", "label": "Favori Ürünleri Sayfası" }, "user_logout": { "type": "text", "default_value": "Çıkış Yap", "label": "Çıkış Yap" }, "login_form_please": { "type": "text", "default_value": "Lütfen", "label": "Üye Giriş Uyarısı Lütfen +" }, "login_form_enter": { "type": "text", "default_value": "giriniz", "label": "Üye Giriş Uyarısı + giriniz" }, "login_form_format": { "type": "text", "default_value": "uygun formatta olmalıdır", "label": "Üye Giriş Uyarısı + uygun formatta olmalıdır" }, "login_form_maxlenght_255": { "type": "text", "default_value": "en fazla 255 karakter olmalıdır", "label": "Üye Giriş Uyarısı + en fazla 255 karakter olmalıdır" }, "login_form_minlenght_2": { "type": "text", "default_value": "en az 2 karakter olmalıdır", "label": "Üye Giriş Uyarısı + en az 2 karakter olmalıdır" },
Son güncelleme: