first commit

This commit is contained in:
2022-11-20 21:46:36 +00:00
commit e3f445cd0d
54 changed files with 10801 additions and 0 deletions

8
assets/scss/album/basic.scss Executable file
View File

@@ -0,0 +1,8 @@
@import "./details.scss";
@import "./child.scss";
.my_album {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
grid-gap: 50px;
}

View File

@@ -0,0 +1,20 @@
$ImageWidth: 260px;
$ImageHeight: 180px;
$BDRadius: 15px;
.my_album_child {
img {
display: block;
border-radius: $BDRadius;
width: $ImageWidth;
height: $ImageHeight;
object-fit: cover;
box-shadow: $BorderShadow;
}
}

View File

12
assets/scss/breadcrumbs.scss Executable file
View File

@@ -0,0 +1,12 @@
.my_breadcrumbs {
padding-top: 3rem;
padding-bottom: 1rem;
margin: 0 auto;
max-width: 1200px;
.my_border {
box-shadow: $BorderShadow;
border-radius: $BDRadius;
}
}

10
assets/scss/container.scss Executable file
View File

@@ -0,0 +1,10 @@
@import "./gallery/basic.scss";
@import "./album/basic.scss";
.my_container {
padding-top: 2rem;
padding-bottom: 3rem;
margin: 0 auto;
max-width: 1200px;
}

7
assets/scss/gallery/basic.scss Executable file
View File

@@ -0,0 +1,7 @@
@import "./card.scss";
.my_gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
grid-gap: 50px;
}

21
assets/scss/gallery/card.scss Executable file
View File

@@ -0,0 +1,21 @@
@import "./child.scss";
@import "./simple-lightbox.scss";
.my_card {
cursor: pointer;
position: relative;
height: 0;
padding-bottom: 200px;
--offset-multiplier: 4px;
transition: transform 0.6s ease;
--translate: 0;
transform: translate(var(--translate), var(--translate));
filter: brightness(70%);
}
.my_card:hover {
--offset-multiplier: 6px;
--translate: calc(-1px * (var(--cards) - 1));
transition: transform 0.3s ease;
filter: none;
}

71
assets/scss/gallery/child.scss Executable file
View File

@@ -0,0 +1,71 @@
$ImageWidth: 260px;
$ImageHeight: 180px;
$BDRadius: 15px;
$BorderShadow: 0px 4px 8px rgba(0, 0, 0, 0.1),
0px -4px 8px rgba(255, 255, 255, 0.8);
.my_gallery_child {
position: absolute;
width: $ImageWidth;
height: $ImageHeight;
color: white;
box-sizing: border-box;
background-size: cover;
border-radius: $BDRadius;
transition: inherit;
--translate: calc(var(--offset) * var(--offset-multiplier));
transform: translate(var(--translate), var(--translate));
.child-title {
text-decoration: none;
filter: none;
}
img {
display: block;
border-radius: $BDRadius;
width: $ImageWidth;
height: $ImageHeight;
object-fit: cover;
box-shadow: $BorderShadow;
}
}
.my_gallery_child:nth-child(1) {
display: flex;
padding-top: 0.5rem;
justify-items: left;
font-size: 30px;
div:hover {
filter: none;
}
--offset: 0;
z-index: 4;
}
.my_gallery_child:nth-child(2) {
box-shadow: $BorderShadow;
--offset: 1;
z-index: 3;
}
.my_gallery_child:nth-child(3) {
box-shadow: $BorderShadow;
--offset: 2;
z-index: 2;
}
.my_gallery_child:nth-child(4) {
box-shadow: $BorderShadow;
--offset: 3;
z-index: 1;
}
.my_gallery_child:nth-child(5) {
box-shadow: $BorderShadow;
--offset: 4;
z-index: 0;
}

View File

@@ -0,0 +1,326 @@
// You can customize Simplelightbox with the following variables:
$sl-font-family: Arial, Baskerville, monospace !default;
$sl-overlay-background: #fff !default;
$sl-navigation-color: #000 !default;
$sl-caption-color: #fff !default;
$sl-caption-background: rgba(0, 0, 0, 0.8) !default;
$sl-counter-fontsize: 1rem !default;
$sl-caption-fontsize: 1rem !default;
$sl-close-fontsize: 3rem !default;
$sl-breakpoint-medium: 35.5em !default; // 568px, when 1em == 16px
$sl-breakpoint-large: 50em !default; // 800px, when 1em == 16px
$sl-arrow-fontsize-small: 2rem !default;
$sl-arrow-fontsize-medium: 3rem !default;
$sl-arrow-fontsize-large: 3rem !default;
$sl-img-border-small: 0 none !default;
$sl-img-border-medium: 0 none !default;
$sl-img-border-large: 0 none !default;
$sl-iframe-border-small: 0 none !default;
$sl-iframe-border-medium: 0 none !default;
$sl-iframe-border-large: 0 none !default;
$add-vendor-prefixes: true !default;
body.hidden-scroll {
overflow: hidden;
}
.sl-overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: $sl-overlay-background;
display: none;
z-index: 1035;
}
.sl-wrapper {
z-index: 1040;
width: 100%;
height: 100%;
left: 0;
top: 0;
position: fixed;
* {
box-sizing: border-box;
}
button {
border: 0 none;
background: transparent;
font-size: 28px;
padding: 0;
cursor: pointer;
&:hover {
opacity: 0.7;
}
}
.sl-close {
display: none;
position: fixed;
right: 30px;
top: 30px;
z-index: 10060;
margin-top: -14px;
margin-right: -14px;
height: 44px;
width: 44px;
line-height: 44px;
font-family: $sl-font-family;
color: $sl-navigation-color;
font-size: $sl-close-fontsize;
}
.sl-counter {
display: none;
position: fixed;
top: 30px;
left: 30px;
z-index: 1060;
color: $sl-navigation-color;
font-size: $sl-counter-fontsize;
}
.sl-navigation {
width: 100%;
display: none;
button {
position: fixed;
top: 50%;
margin-top: -22px;
height: 44px;
width: 22px;
line-height: 44px;
text-align: center;
display: block;
z-index: 10060;
font-family: $sl-font-family;
color: $sl-navigation-color;
&.sl-next {
right: 5px;
font-size: $sl-arrow-fontsize-small;
}
&.sl-prev {
left: 5px;
font-size: $sl-arrow-fontsize-small;
}
@media (min-width: $sl-breakpoint-medium) {
width: 44px;
&.sl-next {
right: 10px;
font-size: $sl-arrow-fontsize-medium;
}
&.sl-prev {
left: 10px;
font-size: $sl-arrow-fontsize-medium;
}
}
@media (min-width: $sl-breakpoint-large) {
width: 44px;
&.sl-next {
right: 20px;
font-size: $sl-arrow-fontsize-large;
}
&.sl-prev {
left: 20px;
font-size: $sl-arrow-fontsize-large;
}
}
}
}
&.sl-dir-rtl {
.sl-navigation {
direction: ltr;
}
}
.sl-image {
position: fixed;
@if $add-vendor-prefixes {
-ms-touch-action: none;
}
touch-action: none;
z-index: 10000;
img {
margin: 0;
padding: 0;
display: block;
border: $sl-img-border-small;
width: 100%;
height: auto;
border-radius: 15px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1),
0px -4px 8px rgba(255, 255, 255, 0.8);
@media (min-width: $sl-breakpoint-medium) {
border: $sl-img-border-medium;
}
@media (min-width: $sl-breakpoint-large) {
border: $sl-img-border-large;
}
}
iframe {
background: #000;
border: $sl-iframe-border-small;
@media (min-width: $sl-breakpoint-medium) {
border: $sl-iframe-border-medium;
}
@media (min-width: $sl-breakpoint-large) {
border: $sl-iframe-border-large;
}
}
.sl-caption {
display: none;
padding: 10px;
color: $sl-caption-color;
background: $sl-caption-background;
font-size: $sl-caption-fontsize;
position: absolute;
bottom: 0;
left: 0;
right: 0;
&.pos-top {
bottom: auto;
top: 0;
}
&.pos-outside {
bottom: auto;
}
}
.sl-download {
display: none;
position: absolute;
bottom: 5px;
right: 5px;
color: $sl-navigation-color;
z-index: 1060;
}
}
}
.sl-spinner {
display: none;
border: 5px solid #333;
border-radius: 40px;
height: 40px;
left: 50%;
margin: -20px 0 0 -20px;
opacity: 0;
position: fixed;
top: 50%;
width: 40px;
z-index: 1007;
@if $add-vendor-prefixes {
-webkit-animation: pulsate 1s ease-out infinite;
-moz-animation: pulsate 1s ease-out infinite;
-ms-animation: pulsate 1s ease-out infinite;
-o-animation: pulsate 1s ease-out infinite;
}
animation: pulsate 1s ease-out infinite;
}
.sl-scrollbar-measure {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
.sl-transition {
@if $add-vendor-prefixes {
transition: -moz-transform ease 200ms;
transition: -ms-transform ease 200ms;
transition: -o-transform ease 200ms;
transition: -webkit-transform ease 200ms;
}
transition: transform ease 200ms;
}
@-webkit-keyframes pulsate {
0% {
transform: scale(0.1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: scale(1.2);
opacity: 0;
}
}
@keyframes pulsate {
0% {
transform: scale(0.1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: scale(1.2);
opacity: 0;
}
}
@if $add-vendor-prefixes {
@-moz-keyframes pulsate {
0% {
transform: scale(0.1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: scale(1.2);
opacity: 0;
}
}
@-o-keyframes pulsate {
0% {
transform: scale(0.1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: scale(1.2);
opacity: 0;
}
}
@-ms-keyframes pulsate {
0% {
transform: scale(0.1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: scale(1.2);
opacity: 0;
}
}
}

12
assets/scss/navigation.scss Executable file
View File

@@ -0,0 +1,12 @@
.my_navigation {
padding-top: 3rem;
padding-bottom: 1rem;
margin: 0 auto;
max-width: 1200px;
.my_border {
box-shadow: $BorderShadow;
border-radius: $BDRadius;
}
}

View File

@@ -0,0 +1,96 @@
@media (min-width: 580px) {
.images {
grid-template-columns: 25% 25% 25% 25%;
}
}
img {
height: auto;
width: 100%;
max-width: 100%;
vertical-align: middle;
}
.template {
transition: all 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955);
opacity: 0;
position: relative;
background: #707070;
}
.template p {
position: absolute;
left: 0;
bottom: 0;
color: #fff;
text-transform: uppercase;
font-size: 13px;
letter-spacing: 1px;
margin: 0;
width: 100%;
background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
padding: 25px 10px 10px 10px;
}
.template.animate {
transform: scale(1);
opacity: 1;
}
#gallery-pagination {
margin: 30px 0;
}
#btnNext,
#btnPrevious {
background: transparent;
color: #609ea5;
padding: 8px 28px;
border: 0;
font-size: 18px;
cursor: pointer;
outline: none;
}
#gallery-pagination #page {
margin-left: 15px;
margin-right: 15px;
color: #707070;
font-style: italic;
font-size: 13px;
}
.sr-only {
position: absolute !important;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
#gallery-dots {
margin-bottom: 15px;
}
.gallery-dot {
background: #609ea5;
border: 0;
padding: 0;
width: 50px;
height: 8px;
margin: 5px;
opacity: 0.4;
outline: none;
cursor: pointer;
}
.gallery-dot.active {
opacity: 1;
}
#gallery-pagination {
display: grid;
grid-template-columns: 1fr 3fr 1fr;
align-items: start;
}

20
assets/scss/style.scss Executable file
View File

@@ -0,0 +1,20 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
$BDRadius: 15px;
$BorderShadow: 0px 4px 8px rgba(0, 0, 0, 0.1),
0px -4px 8px rgba(255, 255, 255, 0.8);
@import "./navigation.scss";
@import "./breadcrumbs.scss";
@import "./container.scss";
@import "gallery/basic.scss";
@import "album/basic.scss";
@import "./pagination.scss";
body {
margin-right: 40px;
margin-left: 40px;
align-items: center;
}