391 lines
7.6 KiB
SCSS
391 lines
7.6 KiB
SCSS
// 88x31 Buttons Collection - Laptop Lid CSS Art
|
|
// Standalone page with 3D laptop lid displaying collected IndieWeb buttons
|
|
|
|
// Heart flash animation
|
|
@keyframes heart-flash {
|
|
0%,
|
|
100% {
|
|
filter: none;
|
|
color: rgba(255, 0, 0, 0.3);
|
|
}
|
|
5%,
|
|
15% {
|
|
filter: drop-shadow(0 0 8px #ff0000) drop-shadow(0 0 4px #ff3333);
|
|
text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
|
|
color: rgba(255, 0, 0, 0.8);
|
|
}
|
|
20%,
|
|
100% {
|
|
filter: none;
|
|
color: rgba(255, 0, 0, 0.3);
|
|
}
|
|
}
|
|
|
|
.buttons-container {
|
|
> .wall {
|
|
position: fixed !important;
|
|
width: 100vw !important;
|
|
height: 100vh !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
background: repeating-linear-gradient(
|
|
90deg,
|
|
#2a2a2a 0px,
|
|
#2a2a2a 100px,
|
|
#252525 100px,
|
|
#252525 101px
|
|
),
|
|
linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%) !important;
|
|
|
|
&::before,
|
|
&::after {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
> .desk {
|
|
height: 37%;
|
|
}
|
|
|
|
.button-lavalamp {
|
|
width: 190px;
|
|
height: 340px;
|
|
position: absolute;
|
|
right: 10%;
|
|
bottom: 20%;
|
|
z-index: 5;
|
|
|
|
&::after {
|
|
// Add a drop shadow under the lava lamp
|
|
content: "";
|
|
position: absolute;
|
|
width: 220px;
|
|
height: 50px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
border-radius: 50%;
|
|
bottom: -20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
filter: blur(8px);
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
.buttons-header {
|
|
width: 400px;
|
|
margin: auto;
|
|
margin-top: 2rem;
|
|
transform: rotate(-3deg);
|
|
}
|
|
}
|
|
|
|
// Override wall styling with /now page grid pattern
|
|
|
|
.buttons-page {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
z-index: 10;
|
|
position: relative;
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.1rem;
|
|
color: #666;
|
|
}
|
|
}
|
|
}
|
|
|
|
.laptop-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
perspective: 2000px;
|
|
margin: 4rem 0;
|
|
min-height: 570px;
|
|
padding: 2rem;
|
|
position: relative;
|
|
}
|
|
|
|
.laptop-container::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 810px;
|
|
height: 50px;
|
|
background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
|
|
border-radius: 0 0 15px 15px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
|
|
inset 0 1px 2px rgba(255, 255, 255, 0.05);
|
|
z-index: 1;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateZ(-30px);
|
|
}
|
|
|
|
.laptop-container::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 770px;
|
|
height: 30px;
|
|
bottom: 10px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateZ(0px);
|
|
background: repeating-linear-gradient(
|
|
90deg,
|
|
#2a2a2a 0,
|
|
#2a2a2a 12px,
|
|
#1a1a1a 12px,
|
|
#1a1a1a 16px
|
|
),
|
|
repeating-linear-gradient(
|
|
0deg,
|
|
#2a2a2a 0,
|
|
#2a2a2a 8px,
|
|
#1a1a1a 8px,
|
|
#1a1a1a 12px
|
|
);
|
|
border-radius: 5px;
|
|
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.laptop-lid {
|
|
position: relative;
|
|
width: 800px;
|
|
height: 480px;
|
|
background: linear-gradient(135deg, #d4d4d4 0%, #c0c0c0 40%, #b0b0b0 100%);
|
|
border-radius: 20px 20px 0 0;
|
|
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4),
|
|
inset 0 1px 2px rgba(255, 255, 255, 0.5),
|
|
inset 0 -3px 8px rgba(0, 0, 0, 0.08);
|
|
transform: rotateX(25deg) translateZ(20px);
|
|
transform-style: preserve-3d;
|
|
transform-origin: bottom center;
|
|
transition: transform 0.3s ease;
|
|
border: 3px solid #909090;
|
|
border-bottom: 8px solid #707070;
|
|
z-index: 10;
|
|
padding: 20px;
|
|
overflow: hidden;
|
|
|
|
// Logo face
|
|
&::after {
|
|
content: "(•ᴗ•)";
|
|
position: absolute;
|
|
background: linear-gradient(135deg, #d4d4d4 0%, #c0c0c0 40%, #b0b0b0 100%);
|
|
// clip the background to the text
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
font-size: 3rem;
|
|
top: 22%;
|
|
left: 25px;
|
|
transform: translateY(-50%) rotate(-45deg);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
// Animated heart
|
|
&::before {
|
|
content: "❤";
|
|
position: absolute;
|
|
font-size: 2.5rem;
|
|
color: #ff0000;
|
|
font-size: 3rem;
|
|
top: 11%;
|
|
left: 122px;
|
|
transform: translateY(-50%) rotate(-45deg);
|
|
pointer-events: none;
|
|
animation: heart-flash 3s ease-in-out infinite;
|
|
opacity: 1;
|
|
}
|
|
|
|
// Bezel/display frame
|
|
.laptop-lid-bezel {
|
|
position: absolute;
|
|
inset: 15px;
|
|
border: 12px solid #1a1a1a;
|
|
border-radius: 8px;
|
|
background: #0a0a0a;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
&:hover {
|
|
transform: rotateX(0deg) translateZ(0px);
|
|
}
|
|
}
|
|
|
|
.button-sticker {
|
|
position: absolute;
|
|
left: var(--x, 20px);
|
|
top: var(--y, 20px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 88px;
|
|
height: 31px;
|
|
border: none;
|
|
border-radius: 2px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
transform-style: preserve-3d;
|
|
transform: rotate(var(--rotation, 0deg)) scale(0.9);
|
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
display: block;
|
|
pointer-events: none;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
&:hover {
|
|
transform: rotate(0deg) scale(1.2);
|
|
z-index: 100;
|
|
filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
|
|
}
|
|
|
|
&:focus {
|
|
outline: 2px solid #4a90e2;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
&:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.buttons-content {
|
|
max-width: 800px;
|
|
margin: 4rem auto 0;
|
|
padding: 2rem;
|
|
perspective: 400px;
|
|
|
|
// Show as a grid with 2 colums
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2rem;
|
|
|
|
.buttons-paper {
|
|
position: relative;
|
|
// Paper-like background
|
|
background: #f9f9f9;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid #e0e0e0;
|
|
// Lined background
|
|
background-image: linear-gradient(
|
|
to bottom,
|
|
#f9f9f9 0%,
|
|
#f9f9f9 95%,
|
|
#e0e0e0 95%,
|
|
#e0e0e0 100%
|
|
);
|
|
background-size: 100% 24px;
|
|
// Add a slight perspective so it looks like its on the table
|
|
transform: rotateX(25deg) translateZ(20px);
|
|
transform-style: preserve-3d;
|
|
transform-origin: bottom center;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 1.5rem;
|
|
line-height: 1.6;
|
|
color: #828282;
|
|
}
|
|
}
|
|
|
|
// Responsive adjustments
|
|
@media (max-width: 900px) {
|
|
.laptop-container {
|
|
min-height: 500px;
|
|
}
|
|
|
|
.laptop-container::before {
|
|
width: 600px;
|
|
height: 40px;
|
|
}
|
|
|
|
.laptop-container::after {
|
|
width: 570px;
|
|
height: 24px;
|
|
bottom: 8px;
|
|
}
|
|
|
|
.laptop-lid {
|
|
width: 600px;
|
|
height: 375px;
|
|
}
|
|
|
|
.button-sticker {
|
|
width: 66px;
|
|
height: 23px;
|
|
|
|
&:hover {
|
|
transform: rotateX(-25deg) rotate(0deg) scale(1.3) translateZ(30px);
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.buttons-page {
|
|
padding: 1rem;
|
|
|
|
header {
|
|
margin-bottom: 2rem;
|
|
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.laptop-container {
|
|
perspective: 800px;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.laptop-container::before {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
height: 30px;
|
|
}
|
|
|
|
.laptop-container::after {
|
|
width: 370px;
|
|
height: 18px;
|
|
bottom: 6px;
|
|
}
|
|
|
|
.laptop-lid {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
height: 250px;
|
|
transform: rotateX(25deg) translateZ(20px);
|
|
}
|
|
|
|
.button-sticker {
|
|
width: 44px;
|
|
height: 15px;
|
|
|
|
&:hover {
|
|
transform: rotateX(-25deg) rotate(0deg) scale(1.3) translateZ(30px);
|
|
}
|
|
}
|
|
}
|