Skip to content

Commit 47ea5cb

Browse files
committed
Homepage stuff
1 parent d77160c commit 47ea5cb

File tree

7 files changed

+94
-14
lines changed

7 files changed

+94
-14
lines changed
1.37 MB
Loading

docs/public/images/ui.png

21.1 KB
Loading

docs/src/components/NavMenu/NavMenu.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--nav-menu-title-icon-color: inherit;
2020
--nav-menu-title-icon-opacity: 0.4;
2121
--nav-menu-title-icon-width: 1.5rem;
22-
--nav-menu-title-icon-distance: 1rem;
22+
--nav-menu-title-icon-distance: 10px;
2323

2424
--nav-menu-title-icon-active-opacity: 1;
2525

docs/src/layouts/Homepage.css

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,92 @@
77
position: absolute;
88
top: 1rem;
99
width: 100%;
10+
z-index: var(--float-layer);
1011
}
1112

1213
aboveFold {
1314
color: var(--standard-80);
1415
background-image: var(--angled-gradient);
15-
display: block;
16+
display: flex;
17+
flex-direction: column;
1618
overflow: hidden;
19+
contain: content;
1720
height: 620px;
21+
perspective: 1000px;
22+
23+
24+
content {
25+
position: relative;
26+
width: 100%;
27+
flex-grow: 1;
28+
z-index: 2;
29+
line-height: 1.18;
30+
background-image: radial-gradient(circle at 50% 50%, oklch(0.34 0.08 192.2 / 0.59) 0%, oklch(0.24 0.07 240.07 / 0.61) 400px, oklch(0.11 0 0) 1500px);
31+
background-image: radial-gradient(circle at 50% 50%, oklch(0.15 0 0) 0%, oklch(0.23 0.06 239.71 / 0.59) 600px, oklch(0.38 0.09 218.29) 1500px);
32+
align-content: center;
33+
transition: background 1000ms;
34+
}
35+
1836

1937
h2 {
20-
font-size: 24px;
38+
font-size: 48px;
39+
margin: 0;
2140
}
2241
p {
23-
font-size: 18px;
42+
font-size: 20px;
43+
line-height: 1.8;
44+
margin-top: 0.5rem;
45+
46+
b {
47+
color: #52B5FF;
48+
}
2449
}
2550

2651
ui-button {
2752
font-size: 18px;
2853
}
54+
.center {
55+
margin: 0 auto;
56+
text-align: center;
57+
max-width: 800px;
58+
}
2959

30-
.left {
31-
margin-top: 10rem;
60+
61+
&:before {
62+
position: absolute;
63+
z-index: 1;
64+
width: 135%;
65+
height: 170%;
66+
top: 0;
67+
left: 0px;
68+
content: '';
69+
pointer-events: none;
70+
background: url(/images/ui.png);
71+
transform-origin: 50% 50%;
72+
transform-style: preserve-3d;
73+
animation-name: masthead;
74+
transition: filter 500ms ease-in-out, opacity 3000ms ease-in-out, transform 6000ms ease-in-out;
75+
opacity: 0;
76+
animation-duration: 15s;
77+
animation-fill-mode: both;
78+
filter: blur(0px);
79+
animation-timing-function: linear;
80+
animation-iteration-count: infinite;
81+
transform: rotateX(10deg) rotateZ(0deg) rotateY(0deg) translateY(0%) translateX(0%) translateZ(0px);
82+
}
83+
84+
&.animate{
85+
.content {
86+
background-image: radial-gradient(circle at 50% 50%, oklch(0.34 0.08 192.2 / 0.59) 0%, oklch(0.24 0.07 240.07 / 0.61) 400px, oklch(0.11 0 0) 1500px);
87+
}
88+
89+
&:before {
90+
opacity: 0.03;
91+
filter: blur(3px);
92+
transform: rotateX(47deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(0%) translateZ(370px);
93+
}
3294
}
95+
3396
}
3497

3598
ribbon {
@@ -43,3 +106,13 @@
43106

44107

45108
}
109+
110+
111+
@keyframes masthead {
112+
0% {
113+
background-position: 0% 0%;
114+
}
115+
100% {
116+
background-position: 0% -475px;
117+
}
118+
}

docs/src/pages/index.astro

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
---
22
import Homepage from '../layouts/Homepage.astro';
33
---
4-
54
<Homepage>
65
<aboveFold>
6+
<content>
77
<ui-container>
8-
<div class="left">
9-
<h2>This is the title</h2>
10-
<p>This is the copy</p>
11-
<ui-button primary icon-after icon="right-chevron" href="/learn/selection">Try It Out</ui-button>
12-
<ui-button transparent inverted href="/components"> Visit Docs</ui-button>
8+
<div class="center">
9+
<h2>Build Once. Use Anywhere.</h2>
10+
<p>Create your next in house UI framework using <b>web standards</b> with robust <b>ui primitives</b>, rich <b>templating</b>, signals based <b>reactivity</b>, and all the bells & whistles to work at scale.</p>
11+
<ui-button primary icon-after icon="right-chevron" href="/learn/selection">Try In 5 Minutes</ui-button>
12+
<ui-button secondary href="/components">View Docs</ui-button>
1313
</div>
1414
</ui-container>
15+
</content>
1516
</aboveFold>
17+
<script is:inline>
18+
const el = document.querySelector('aboveFold');
19+
requestAnimationFrame(function() {
20+
el.classList.add('animate');
21+
});
22+
</script>
1623
<ribbons>
1724
<ribbon>
1825
1

src/themes/base/button/content/button-variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
:root, :defined {
22

33
--button-vertical-align: baseline;
44

src/themes/base/button/types/emphasis-variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
:root, :defined {
22

33
/* Primary */
44
--button-primary-color: var(--primary-color);

0 commit comments

Comments
 (0)