edit button sign up and login at view mobile
This commit is contained in:
@@ -57,22 +57,6 @@
|
|||||||
<a href="#app-download" class="dlanding-nav__drawer-link" @click="closeMobileMenu">دانلود اپلیکیشن</a>
|
<a href="#app-download" class="dlanding-nav__drawer-link" @click="closeMobileMenu">دانلود اپلیکیشن</a>
|
||||||
<a href="#rules" class="dlanding-nav__drawer-link" @click="closeMobileMenu">قوانین</a>
|
<a href="#rules" class="dlanding-nav__drawer-link" @click="closeMobileMenu">قوانین</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="dlanding-nav__drawer-actions">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="dlanding-nav__ghost"
|
|
||||||
@click="goLoginAndCloseMenu"
|
|
||||||
>
|
|
||||||
ورود
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="dlanding-nav__primary"
|
|
||||||
@click="goLoginAndCloseMenu"
|
|
||||||
>
|
|
||||||
ثبتنام
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -1461,11 +1445,6 @@ function goToLoginApp() {
|
|||||||
window.open(url, '_blank', 'noopener,noreferrer')
|
window.open(url, '_blank', 'noopener,noreferrer')
|
||||||
}
|
}
|
||||||
|
|
||||||
function goLoginAndCloseMenu() {
|
|
||||||
closeMobileMenu()
|
|
||||||
goToLoginApp()
|
|
||||||
}
|
|
||||||
|
|
||||||
function syncBodyScrollLock(locked: boolean) {
|
function syncBodyScrollLock(locked: boolean) {
|
||||||
if (!import.meta.client) return
|
if (!import.meta.client) return
|
||||||
document.documentElement.classList.toggle('dlanding-menu-open', locked)
|
document.documentElement.classList.toggle('dlanding-menu-open', locked)
|
||||||
|
|||||||
@@ -3262,14 +3262,28 @@ body.dlanding-menu-open {
|
|||||||
height: var(--dlanding-nav-height);
|
height: var(--dlanding-nav-height);
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
|
|
||||||
&__links,
|
&__links {
|
||||||
&__actions {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: flex;
|
||||||
|
order: 1;
|
||||||
|
gap: 6px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__ghost,
|
||||||
|
&__primary {
|
||||||
|
height: 36px;
|
||||||
|
padding: 0 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
&__inner {
|
&__inner {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
gap: 12px;
|
gap: 8px;
|
||||||
min-height: var(--dlanding-nav-height);
|
min-height: var(--dlanding-nav-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3281,7 +3295,7 @@ body.dlanding-menu-open {
|
|||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
height: 34px;
|
height: 34px;
|
||||||
max-width: min(168px, 42vw);
|
max-width: min(140px, 34vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__burger {
|
&__burger {
|
||||||
@@ -3294,7 +3308,7 @@ body.dlanding-menu-open {
|
|||||||
&__drawer {
|
&__drawer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 20px;
|
gap: 8px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
right: 0;
|
right: 0;
|
||||||
@@ -3341,24 +3355,6 @@ body.dlanding-menu-open {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__drawer-actions {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
gap: 10px;
|
|
||||||
|
|
||||||
.dlanding-nav__ghost {
|
|
||||||
height: 44px;
|
|
||||||
border: 1px solid rgba(16, 43, 78, 0.14);
|
|
||||||
border-radius: 14px;
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dlanding-nav__primary {
|
|
||||||
height: 44px;
|
|
||||||
border-radius: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__backdrop {
|
&__backdrop {
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -3884,8 +3880,24 @@ body.dlanding-menu-open {
|
|||||||
.dlanding-nav {
|
.dlanding-nav {
|
||||||
height: var(--dlanding-nav-height);
|
height: var(--dlanding-nav-height);
|
||||||
|
|
||||||
|
&__logo {
|
||||||
|
height: 30px;
|
||||||
|
max-width: min(112px, 30vw);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__ghost,
|
||||||
|
&__primary {
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
&__drawer {
|
&__drawer {
|
||||||
gap: 20px;
|
gap: 8px;
|
||||||
padding: 8px var(--dlanding-frame-px) 24px;
|
padding: 8px var(--dlanding-frame-px) 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user