parent
73d8d1ef27
commit
f1e68f219c
|
@ -4,7 +4,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
min-height: 710px;
|
min-height: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
@ -40,9 +40,9 @@
|
||||||
.authImage {
|
.authImage {
|
||||||
@include font-size(1.5rem);
|
@include font-size(1.5rem);
|
||||||
|
|
||||||
background: #141414 url('/auth-page.jpg') center no-repeat;
|
background: var(--background-color-invert) url('/auth-page.jpg') center no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
color: #fff;
|
color: var(--default-color-invert);
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 3em;
|
padding: 3em;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #fff;
|
color: var(--default-color-invert);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: rgb(255 255 255 / 70%);
|
color: rgb(255 255 255 / 70%);
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #fff !important;
|
color: var(--default-color-invert) !important;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: rgb(255, 255, 255, 0.6) !important;
|
color: rgb(255, 255, 255, 0.6) !important;
|
||||||
|
@ -192,8 +192,8 @@
|
||||||
border-color: #d00820;
|
border-color: #d00820;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: white;
|
color: var(--default-color-invert);
|
||||||
border-color: black;
|
border-color: var(--background-color-invert);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,11 +31,10 @@ $transition-duration: 200ms;
|
||||||
color: var(--black-500);
|
color: var(--black-500);
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 36px;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 16px 38px;
|
padding: 1.23rem 38px;
|
||||||
border-bottom: 1px solid var(--black-100);
|
border-bottom: 2px solid var(--black-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
@ -77,10 +76,19 @@ $transition-duration: 200ms;
|
||||||
|
|
||||||
.closeButton {
|
.closeButton {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 1.2rem;
|
||||||
right: 0;
|
right: 1rem;
|
||||||
padding: 20px;
|
padding: 1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--background-color-invert);
|
||||||
|
|
||||||
|
.closeIcon {
|
||||||
|
filter: invert(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.notificationView + .notificationView {
|
.notificationView + .notificationView {
|
||||||
|
|
|
@ -162,8 +162,7 @@ export const NotificationsPanel = (props: Props) => {
|
||||||
>
|
>
|
||||||
<div ref={(el) => (panelRef.current = el)} class={styles.panel}>
|
<div ref={(el) => (panelRef.current = el)} class={styles.panel}>
|
||||||
<div class={styles.closeButton} onClick={handleHide}>
|
<div class={styles.closeButton} onClick={handleHide}>
|
||||||
{/*TODO: check markup (hover)*/}
|
<Icon class={styles.closeIcon} name="close" />
|
||||||
<Icon name="close" />
|
|
||||||
</div>
|
</div>
|
||||||
<div class={styles.title}>{t('Notifications')}</div>
|
<div class={styles.title}>{t('Notifications')}</div>
|
||||||
<div class={clsx('wide-container', styles.content)} ref={(el) => (scrollContainerRef.current = el)}>
|
<div class={clsx('wide-container', styles.content)} ref={(el) => (scrollContainerRef.current = el)}>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'swiper/scss/navigation'
|
||||||
import 'swiper/scss/pagination'
|
import 'swiper/scss/pagination'
|
||||||
import 'swiper/scss/thumbs'
|
import 'swiper/scss/thumbs'
|
||||||
import './Slider.scss'
|
import './Slider.scss'
|
||||||
import { createEffect, createSignal, JSX, Show } from 'solid-js'
|
import { createEffect, createSignal, JSX, on, Show } from 'solid-js'
|
||||||
import { Icon } from '../Icon'
|
import { Icon } from '../Icon'
|
||||||
import { clsx } from 'clsx'
|
import { clsx } from 'clsx'
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@ export const Slider = (props: Props) => {
|
||||||
const [swiper, setSwiper] = createSignal<Swiper>()
|
const [swiper, setSwiper] = createSignal<Swiper>()
|
||||||
const [swiperThumbs, setSwiperThumbs] = createSignal<Swiper>()
|
const [swiperThumbs, setSwiperThumbs] = createSignal<Swiper>()
|
||||||
const opts: SwiperOptions = {
|
const opts: SwiperOptions = {
|
||||||
|
observer: true,
|
||||||
|
observeParents: true,
|
||||||
roundLengths: true,
|
roundLengths: true,
|
||||||
loop: true,
|
loop: true,
|
||||||
centeredSlides: true,
|
centeredSlides: true,
|
||||||
|
@ -64,7 +66,6 @@ export const Slider = (props: Props) => {
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (props.hasThumbs && !!thumbsEl) {
|
if (props.hasThumbs && !!thumbsEl) {
|
||||||
setTimeout(() => {
|
|
||||||
setSwiperThumbs(
|
setSwiperThumbs(
|
||||||
new Swiper(thumbsEl, {
|
new Swiper(thumbsEl, {
|
||||||
slidesPerView: 'auto',
|
slidesPerView: 'auto',
|
||||||
|
@ -79,13 +80,11 @@ export const Slider = (props: Props) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
}, 500)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (!swiper() && !!el) {
|
if (!swiper() && !!el) {
|
||||||
setTimeout(() => {
|
|
||||||
if (swiperThumbs()) {
|
if (swiperThumbs()) {
|
||||||
opts.thumbs = {
|
opts.thumbs = {
|
||||||
swiper: swiperThumbs()
|
swiper: swiperThumbs()
|
||||||
|
@ -98,10 +97,14 @@ export const Slider = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
setSwiper(new Swiper(el, opts))
|
setSwiper(new Swiper(el, opts))
|
||||||
}, 500)
|
swiper().update()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
createEffect(() => {
|
||||||
|
swiper().update()
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx('floor', 'floor--important', props.variant)}>
|
<div class={clsx('floor', 'floor--important', props.variant)}>
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user