Skip to content

Commit 0e08019

Browse files
committed
Homepage
1 parent 47ea5cb commit 0e08019

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

docs/src/layouts/Homepage.css

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,27 @@
2727
flex-grow: 1;
2828
z-index: 2;
2929
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);
3230
align-content: center;
33-
transition: background 1000ms;
31+
32+
&:before {
33+
position: absolute;
34+
width: 100%;
35+
content: '';
36+
top: 0;
37+
left: 0;
38+
height: 100%;
39+
opacity: 0;
40+
transition: opacity 3s ease-in-out;
41+
background-image: radial-gradient(circle at 50% 50%, oklch(0 0 0) 0%, oklch(0.32 0.08 228.42 / 0.66) 600px, oklch(0 0 0) 1200px);
42+
pointer-events: none;
43+
}
44+
45+
* {
46+
position: relative;
47+
z-index: 2;
48+
opacity: 0;
49+
transition: opacity 1s ease-in-out;
50+
}
3451
}
3552

3653

@@ -71,25 +88,29 @@
7188
transform-origin: 50% 50%;
7289
transform-style: preserve-3d;
7390
animation-name: masthead;
74-
transition: filter 500ms ease-in-out, opacity 3000ms ease-in-out, transform 6000ms ease-in-out;
91+
transition: filter 500ms ease-in-out, opacity 3000ms ease-in-out, transform 3000ms ease-in-out;
7592
opacity: 0;
7693
animation-duration: 15s;
7794
animation-fill-mode: both;
7895
filter: blur(0px);
7996
animation-timing-function: linear;
8097
animation-iteration-count: infinite;
81-
transform: rotateX(10deg) rotateZ(0deg) rotateY(0deg) translateY(0%) translateX(0%) translateZ(0px);
98+
transform: rotateX(30deg) rotateZ(0deg) rotateY(0deg) translateY(0%) translateX(0%) translateZ(0px);
8299
}
83100

84101
&.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);
102+
content:before {
103+
opacity: 1;
87104
}
88105

89106
&:before {
90107
opacity: 0.03;
91108
filter: blur(3px);
92-
transform: rotateX(47deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(0%) translateZ(370px);
109+
transform: rotateX(30deg) rotateZ(0deg) rotateY(0deg) translateY(-7%) translateX(0%) translateZ(0px);
110+
}
111+
112+
* {
113+
opacity: 1;
93114
}
94115
}
95116

docs/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Homepage from '../layouts/Homepage.astro';
66
<content>
77
<ui-container>
88
<div class="center">
9-
<h2>Build Once. Use Anywhere.</h2>
9+
<h2>Design Once. Use Anywhere.</h2>
1010
<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>
1111
<ui-button primary icon-after icon="right-chevron" href="/learn/selection">Try In 5 Minutes</ui-button>
1212
<ui-button secondary href="/components">View Docs</ui-button>

0 commit comments

Comments
 (0)