Skip to content

Commit f68e116

Browse files
committed
Add attempt to theme default page
1 parent 1f76753 commit f68e116

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

components/service_menu.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
mixin menu(links, target)
22
link(rel="stylesheet" href="/styles/service-menu.scss")
3+
link(rel="stylesheet" href="/styles/service-menu_10foot.scss")
34
section.service-menu.border-outer
45
each key in Object.keys(links)
56
a.service-link(href=links[key][0] target=target)

styles/service-menu_10foot.scss

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// ten-foot.scss
2+
// Variables
3+
$primary-gradient-start: #1a1a2e;
4+
$primary-gradient-end: #16213e;
5+
$text-color: #ffffff;
6+
$card-bg: rgba(255, 255, 255, 0.1);
7+
$card-bg-hover: rgba(255, 255, 255, 0.15);
8+
$card-border: rgba(255, 255, 255, 0.2);
9+
$card-border-hover: rgba(255, 255, 255, 0.4);
10+
$focus-color: #00d4ff;
11+
12+
// Mixins
13+
@mixin card-shadow {
14+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
15+
}
16+
17+
@mixin text-shadow {
18+
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
19+
}
20+
21+
@mixin smooth-transition($properties: all, $duration: 0.3s) {
22+
transition: $properties $duration ease;
23+
}
24+
25+
// Only apply rules on 10-foot mode
26+
body.ten-foot {
27+
// Service Grid
28+
.service-menu {
29+
flex: 1;
30+
display: flex;
31+
align-items: center;
32+
gap: 3rem;
33+
34+
overflow-x: auto;
35+
overflow-y: hidden;
36+
37+
scroll-behavior: smooth;
38+
scroll-snap-type: x mandatory;
39+
padding-inline: 3rem;
40+
41+
/* IE / Edge Legacy */
42+
-ms-overflow-style: none;
43+
}
44+
45+
.service-menu::-webkit-scrollbar {
46+
display: none; /* Chrome, Safari, Edge */
47+
}
48+
49+
.service-menu > a {
50+
// Un-linkify
51+
display: block;
52+
text-decoration: none;
53+
color: inherit;
54+
}
55+
56+
.service-menu > .service-link {
57+
flex: 0 0 auto; // prevents shrinking
58+
margin: 0;
59+
60+
display: flex;
61+
flex-direction: column;
62+
align-items: center;
63+
gap: 2em;
64+
65+
text-align: center;
66+
background: $card-bg;
67+
backdrop-filter: blur(10px);
68+
border-radius: 2rem;
69+
padding: 3em;
70+
@include smooth-transition;
71+
border: 2px solid $card-border;
72+
cursor: pointer;
73+
font-size: clamp(0.1rem, 1vw, 6rem);
74+
height: 25em;
75+
width: 25em;
76+
scroll-margin-inline: 30rem;
77+
78+
&:hover,
79+
&:focus {
80+
transform: scale(1.05);
81+
background: $card-bg-hover;
82+
border-color: $card-border-hover;
83+
@include card-shadow;
84+
}
85+
86+
div > h3 {
87+
h3 {
88+
font-size: 3em;
89+
font-weight: 600;
90+
}
91+
}
92+
93+
.service-icon {
94+
font-size: 6em;
95+
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
96+
}
97+
98+
.service-description {
99+
font-size: 1.8em;
100+
opacity: 0.9;
101+
line-height: 1.6;
102+
}
103+
104+
}
105+
}

0 commit comments

Comments
 (0)