Skip to content

Commit 2207e3c

Browse files
authored
Merge pull request #15 from ethmarks/home-redesign
Redesign home page
2 parents 1bfd97d + 7105727 commit 2207e3c

10 files changed

Lines changed: 480 additions & 550 deletions

File tree

assets/css/base/_animations.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
transform: none !important;
9494
}
9595

96-
header .title,
96+
header #title,
9797
header nav a {
9898
animation: none !important;
9999
opacity: 1 !important;

assets/css/base/_constants.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ $color-panel-zebra: darken($color-panel, 1%);
3030
$color-panel-dark: darken($color-panel, 3%);
3131
$color-panel-hover: transparentize(lighten($color-panel, 7%), 0.5);
3232

33+
$color-card: rgba(40, 40, 40, 0.8);
34+
$color-card-hover: rgba(50, 50, 50, 0.9);
35+
3336
$mint-gradient: linear-gradient(135deg, $color-accent, $color-text);
3437
$mint-blend: mix($color-accent, $color-text, 75%);
3538

@@ -105,6 +108,8 @@ $radius-round: 18px;
105108
$color-shadow-standard: rgba(black, 0.2);
106109
$color-shadow-accent: $color-accent-transparent-30;
107110
$color-shadow-accent-hover: $color-accent-transparent-40;
111+
$shadow-card: 0 4px 12px rgba(black, 0.15);
112+
$shadow-card-hover: 0 8px 24px rgba(black, 0.25);
108113

109114
// =========================================================================
110115
// TRANSITION

assets/css/base/_mixins.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@
2222
}
2323
}
2424

25+
@mixin motion {
26+
@media (prefers-reduced-motion: no-preference) {
27+
@content;
28+
}
29+
}
30+
31+
@mixin noMotion {
32+
@media (prefers-reduced-motion: reduce) {
33+
@content;
34+
}
35+
}
36+
37+
@mixin tall {
38+
@media (min-height: 1200px) {
39+
@content
40+
}
41+
}
42+
43+
@mixin notTall {
44+
@media (max-height: 1200px) {
45+
@content
46+
}
47+
2548
@mixin nomint {
2649
background: none;
2750
background-clip: none;

assets/css/components/_footer.scss

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ $footer-bg: rgba(255, 255, 255, 0.1);
44
$footer-border-color: rgba(255, 255, 255, 0.18);
55
$footer-border: 1px solid $footer-border-color;
66

7+
$footer-radius: $radius-lg;
8+
79
$footer-blur: 10px;
810

911
$footer-padding-top: 10px;
10-
$footer-padding-sides: 30px;
12+
$footer-padding-sides: 25px;
1113
$footer-padding-bottom: 5px;
1214

15+
$footer-margin-top: 0px;
16+
$footer-margin-sides: 10px;
17+
$footer-margin-bottom: 5px;
18+
19+
$footer-width: 100vw;
20+
1321
footer {
1422
display: flex;
1523
justify-content: space-between;
1624
align-items: center;
17-
width: 100%;
1825
background: $footer-bg;
1926
backdrop-filter: blur($footer-blur);
2027
transform: translate3d(0, 0, 0);
21-
border-top: $footer-border;
2228
padding: $footer-padding-top $footer-padding-sides $footer-padding-bottom;
2329
box-sizing: border-box;
2430
color: $color-text;
@@ -27,6 +33,22 @@ footer {
2733
position: fixed;
2834
bottom: 0;
2935

36+
@include mobile {
37+
width: $footer-width;
38+
border-top: $footer-border;
39+
border-radius: 0;
40+
margin: 0;
41+
}
42+
43+
@include notMobile {
44+
--footer-width: $footer-width;
45+
--footer-margin-sides: $footer-margin-sides;
46+
width: calc(var(--footer-width) - var(--footer-margin-sides) * 2);
47+
border: $footer-border;
48+
border-radius: $footer-radius;
49+
margin: $footer-margin-top $footer-margin-sides $footer-margin-bottom;
50+
}
51+
3052
body.height-overflow & {
3153
position: static;
3254
}

assets/css/components/_header.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ header {
2929
transform: translate3d(0, 0, 0);
3030
}
3131

32-
@media (pointer: fine) {
33-
&:hover {
34-
backdrop-filter: blur(5px) saturate(0.8);
35-
}
36-
}
37-
3832
#title {
3933
font-weight: $font-weight-light !important;
4034
display: inline-block;

0 commit comments

Comments
 (0)