Adding music shelf
This commit is contained in:
parent
c2af88d118
commit
bdd00ec9e8
18 changed files with 394 additions and 110 deletions
|
|
@ -3,15 +3,183 @@
|
|||
width: 100%;
|
||||
height: 100vh;
|
||||
background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
|
||||
> .page-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 60%;
|
||||
margin: auto;
|
||||
z-index: 999;
|
||||
|
||||
padding-top: 330px;
|
||||
|
||||
@include media-down(lg) {
|
||||
padding-top: 400px;
|
||||
}
|
||||
|
||||
.neon-sign {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
top: 100px;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
|
||||
.neon-text {
|
||||
@include media-down(lg) {
|
||||
font-size: 5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.record-shelf-container {
|
||||
.shelf {
|
||||
display: flex;
|
||||
gap: 5rem;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.shelf::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 10px;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
#6b4423 0%,
|
||||
#4a2f1a 50%,
|
||||
#2d1b0e 100%
|
||||
);
|
||||
border-radius: 0 0 6px 6px;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.record-slot {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
min-width: 140px;
|
||||
height: 200px;
|
||||
perspective: 1000px;
|
||||
}
|
||||
|
||||
.record-sleeve {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.sleeve-front {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
border-radius: 2px;
|
||||
box-shadow:
|
||||
0 2px 8px rgba(0, 0, 0, 0.3),
|
||||
inset 0 0 20px rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
background-image: var(--album-cover);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
transition: transform 0.3s ease;
|
||||
z-index: 99;
|
||||
|
||||
.album-title {
|
||||
font-size: 16px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.album-title {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.vinyl-record {
|
||||
position: absolute;
|
||||
width: 95%;
|
||||
height: 95%;
|
||||
border-radius: 50%;
|
||||
top: 2%;
|
||||
right: 2%;
|
||||
background:
|
||||
radial-gradient(circle at center, #1a1a1a 30%, transparent 30%),
|
||||
conic-gradient(
|
||||
from 0deg,
|
||||
#0f0f0f 0deg,
|
||||
#1a1a1a 45deg,
|
||||
#0f0f0f 90deg,
|
||||
#1a1a1a 135deg,
|
||||
#0f0f0f 180deg,
|
||||
#1a1a1a 225deg,
|
||||
#0f0f0f 270deg,
|
||||
#1a1a1a 315deg,
|
||||
#0f0f0f 360deg
|
||||
);
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
||||
z-index: 1;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.vinyl-record::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 35%;
|
||||
height: 35%;
|
||||
border-radius: 50%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: radial-gradient(
|
||||
circle,
|
||||
#000 0%,
|
||||
#ff4444 10%,
|
||||
#cc0000 50%,
|
||||
#1a1a1a 50%,
|
||||
#0f0f0f 100%
|
||||
);
|
||||
}
|
||||
|
||||
.vinyl-record::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
transform: translateX(-50%);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background: repeating-radial-gradient(
|
||||
circle at center,
|
||||
transparent 0px,
|
||||
transparent 2px,
|
||||
rgba(255, 255, 255, 0.03) 2px,
|
||||
rgba(255, 255, 255, 0.03) 3px
|
||||
);
|
||||
}
|
||||
|
||||
.record-slot:hover .vinyl-record {
|
||||
transform: translateX(20%);
|
||||
}
|
||||
|
||||
.record-slot:hover .sleeve-front {
|
||||
transform: translateX(-10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +196,11 @@
|
|||
height: 40%;
|
||||
width: 50%;
|
||||
z-index: 2;
|
||||
|
||||
@include media-down(lg) {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,24 +5,34 @@
|
|||
left: 60%;
|
||||
transform: translateX(-50%) rotate(-10deg);
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
line-height: 5rem;
|
||||
|
||||
> .neon-text {
|
||||
font-family: "Neonderthaw", cursive;
|
||||
font-size: 7rem;
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
/* White core */
|
||||
0 0 5px #fff,
|
||||
0 0 5px #fff,
|
||||
/* Bright green inner glow */ 0 0 21px #0f0,
|
||||
0 0 42px #0f0,
|
||||
0 0 82px #0f0,
|
||||
/* Outer green glow */ 0 0 92px #0f0,
|
||||
0 0 142px #0f0,
|
||||
0 0 181px #0f0;
|
||||
text-shadow: neon-glow(#0f0);
|
||||
animation:
|
||||
neon-flicker 10s infinite alternate,
|
||||
neon-pulse 3s ease-in-out infinite;
|
||||
|
||||
&.purple {
|
||||
text-shadow: neon-glow(#f0f);
|
||||
animation:
|
||||
neon-flicker 10s infinite alternate,
|
||||
neon-pulse-purple 3s ease-in-out infinite;
|
||||
animation-delay: 1.2s;
|
||||
|
||||
> span {
|
||||
color: #fff;
|
||||
text-shadow: neon-glow(#0ff);
|
||||
animation:
|
||||
neon-flicker 10s infinite alternate,
|
||||
neon-pulse-cyan 3s ease-in-out infinite;
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[role="navigation"] & {
|
||||
|
|
@ -32,48 +42,62 @@
|
|||
left: 10px;
|
||||
transform: translateX(0) rotate(-10deg);
|
||||
z-index: 9999;
|
||||
|
||||
> .neon-text {
|
||||
font-size: 2rem;
|
||||
text-shadow:
|
||||
/* White core */
|
||||
0 0 5px #fff,
|
||||
0 0 5px #fff,
|
||||
/* Bright green inner glow */ 0 0 11px #0f0,
|
||||
0 0 11px #0f0,
|
||||
0 0 22px #0f0,
|
||||
0 0 42px #0f0,
|
||||
/* Outer green glow */ 0 0 22px #0f0,
|
||||
0 0 22px #0f0,
|
||||
0 0 42px #0f0,
|
||||
0 0 81px #0f0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes neon-pulse {
|
||||
0%,
|
||||
100% {
|
||||
text-shadow:
|
||||
0 0 7px #fff,
|
||||
0 0 10px #fff,
|
||||
0 0 21px #0f0,
|
||||
0 0 42px #0f0,
|
||||
0 0 82px #0f0,
|
||||
0 0 92px #0f0,
|
||||
0 0 102px #0f0,
|
||||
0 0 151px #0f0;
|
||||
}
|
||||
50% {
|
||||
text-shadow:
|
||||
0 0 4px #fff,
|
||||
0 0 7px #fff,
|
||||
0 0 15px #0f0,
|
||||
0 0 30px #0f0,
|
||||
0 0 60px #0f0,
|
||||
0 0 70px #0f0,
|
||||
0 0 80px #0f0,
|
||||
0 0 120px #0f0;
|
||||
// Function for standard neon glow effect
|
||||
@function neon-glow($color) {
|
||||
@return 0 0 5px #fff, 0 0 5px #fff, 0 0 21px $color, 0 0 42px $color,
|
||||
0 0 82px $color, 0 0 92px $color, 0 0 142px $color, 0 0 181px $color;
|
||||
}
|
||||
|
||||
// Mixin for pulse animation - generates keyframes for any color
|
||||
@mixin neon-pulse-animation($name, $color) {
|
||||
@keyframes #{$name} {
|
||||
0%,
|
||||
100% {
|
||||
text-shadow:
|
||||
0 0 7px #fff,
|
||||
0 0 10px #fff,
|
||||
0 0 21px $color,
|
||||
0 0 42px $color,
|
||||
0 0 82px $color,
|
||||
0 0 92px $color,
|
||||
0 0 102px $color,
|
||||
0 0 151px $color;
|
||||
}
|
||||
50% {
|
||||
text-shadow:
|
||||
0 0 4px #fff,
|
||||
0 0 7px #fff,
|
||||
0 0 15px $color,
|
||||
0 0 30px $color,
|
||||
0 0 60px $color,
|
||||
0 0 70px $color,
|
||||
0 0 80px $color,
|
||||
0 0 120px $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Generate all three pulse animations
|
||||
@include neon-pulse-animation(neon-pulse, #0f0);
|
||||
@include neon-pulse-animation(neon-pulse-purple, #f0f);
|
||||
@include neon-pulse-animation(neon-pulse-cyan, #0ff);
|
||||
|
||||
@keyframes neon-flicker {
|
||||
0%,
|
||||
19%,
|
||||
|
|
|
|||
|
|
@ -1633,7 +1633,7 @@ body {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
> .time-display {
|
||||
.time-display {
|
||||
width: 150px;
|
||||
z-index: 30;
|
||||
padding: 0.5em;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue