Skip to content

Commit 84d952f

Browse files
committed
simplify
1 parent 4fcef96 commit 84d952f

3 files changed

Lines changed: 28 additions & 262 deletions

File tree

_layouts/default.html

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,45 @@
99
background: #000;
1010
}
1111

12-
#sequin-bg-canvas {
13-
position: fixed;
14-
inset: 0;
15-
background: #000;
16-
display: block;
12+
#hero-bg-wrap {
13+
position: absolute;
14+
top: 0;
15+
left: 0;
16+
width: 100%;
1717
pointer-events: none;
1818
user-select: none;
1919
z-index: 0;
2020
}
21+
22+
#hero-bg-image {
23+
display: block;
24+
width: 100%;
25+
height: auto;
26+
opacity: 0.34;
27+
filter: brightness(0.46) saturate(0.64);
28+
}
29+
30+
#hero-bg-wrap::after {
31+
content: "";
32+
position: absolute;
33+
inset: 0;
34+
background: linear-gradient(
35+
to bottom,
36+
rgba(0, 0, 0, 0) 0%,
37+
rgba(0, 0, 0, 0) 90%,
38+
rgba(0, 0, 0, 1) 100%
39+
);
40+
}
2141
</style>
2242
{% endif %}
2343
{% include layouts/meta.html %}
2444
{% include layouts/analytics.html %}
2545
</head>
2646
<body class="relative flex flex-col min-h-screen rounded-t-lg">
2747
{% if page.url == '/' or page.url == '/index.html' %}
28-
<canvas id="sequin-bg-canvas" aria-hidden="true" data-image-src="{{ '/assets/img/bg/hero-cathedral-new.png' | relative_url }}"></canvas>
48+
<div id="hero-bg-wrap" aria-hidden="true">
49+
<img id="hero-bg-image" src="{{ '/assets/img/bg/hero-cathedral-new.png' | relative_url }}" alt="" decoding="async" loading="eager" />
50+
</div>
2951
{% endif %}
3052
<header id="nav-sticky" class="sticky top-0 z-30 rounded-t-lg overflow-hidden border-t border-t-yellow-300 border-b border-b-transparent transition-colors duration-200{% if page.url == '/' or page.url == '/index.html' %} nav-enter{% endif %}">
3153
{% include v1/nav.html %}
@@ -36,9 +58,6 @@
3658
<footer class="relative z-10 mt-20">
3759
{% include v1/footer.html %}
3860
</footer>
39-
{% if page.url == '/' or page.url == '/index.html' %}
40-
<script src="{{ '/assets/js/ascii-bg.js' | relative_url }}?v=hero-cathedral-new-20260329-1"></script>
41-
{% endif %}
4261
<script src="{{ '/assets/js/terminal-tilt.js' | relative_url }}"></script>
4362
</body>
4463
</html>

assets/css/main.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,10 @@ body {
7979
}
8080
}
8181

82-
#sequin-bg-canvas {
83-
position: absolute;
84-
top: 0;
85-
left: 0;
86-
width: 100%;
87-
height: min(1300px, calc(100vh + 360px));
88-
display: block;
89-
background-color: #000;
90-
pointer-events: none;
91-
z-index: 0;
92-
border-top-left-radius: inherit;
93-
border-top-right-radius: inherit;
94-
}
95-
9682
html.dark body {
9783
background-color: #000000 !important;
9884
}
9985

100-
html:not(.dark) #sequin-bg-canvas {
101-
display: none;
102-
}
103-
10486
.terminal-hero-card {
10587
position: relative;
10688
--terminal-rx: 0deg;

assets/js/ascii-bg.js

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)