improve light theme on frontpage

This commit is contained in:
outfoxxed 2024-11-08 18:02:02 -08:00
parent 4e92d47695
commit e804c7c39c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 66 additions and 9 deletions

View file

@ -18,17 +18,17 @@
align-items: center; align-items: center;
margin-block: 0.618rem; margin-block: 0.618rem;
border-radius: 9px; border-radius: 9px;
background-color: hsla(var(--blue) 100 81 / 0.05); background-color: hsla(var(--blue) 60 98 / 0.6);
padding-inline: 0.618rem; padding-inline: 0.618rem;
padding-block: 1.217rem; padding-block: 1.217rem;
border: 1px solid hsla(0 0 100 / 0.05); border: 1px solid hsla(0 0 0 / 0.1);
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
inset: 0.618rem; inset: 0.618rem;
z-index: -1; z-index: -1;
background-image: radial-gradient( background-image: radial-gradient(
hsla(0 0 100 / 0.1) 1px, hsla(0 0 0 / 0.4) 1px,
transparent 1px transparent 1px
); );
background-position: 50% 50%; background-position: 50% 50%;
@ -39,12 +39,30 @@
} }
} }
html.dark .featurelist-item {
background-color: hsla(var(--blue) 100 81 / 0.05);
border-color: hsla(0 0 100 / 0.05);
&::before {
background-image: radial-gradient(
hsla(0 0 100 / 0.1) 1px,
transparent 1px
);
}
}
.feature-text { .feature-text {
text-align: center; text-align: center;
font-size: 1.2rem; font-size: 1.2rem;
& .feature-title { & .feature-title {
margin-bottom: 0.517rem; margin-bottom: 0.517rem;
} }
& .feature-subtitle {
color: #303030;
}
}
html.dark .feature-text {
& .feature-subtitle { & .feature-subtitle {
color: #afafaf; color: #afafaf;
} }

View file

@ -22,6 +22,16 @@
} }
h1.gradient-text { h1.gradient-text {
background: linear-gradient(
30deg,
hsl(var(--green) 80 42),
hsl(var(--blue) 80 49)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
html.dark h1.gradient-text {
background: linear-gradient( background: linear-gradient(
30deg, 30deg,
hsl(var(--green) 100 62), hsl(var(--green) 100 62),
@ -44,6 +54,12 @@ h1.gradient-text {
font-weight: 400; font-weight: 400;
letter-spacing: 0.018rem; letter-spacing: 0.018rem;
margin-bottom: 0.117rem; margin-bottom: 0.117rem;
color: hsl(var(--blue) 40 33);
}
}
html.dark .main-page_hero-text {
& h2 {
color: hsl(var(--blue) 100 83); color: hsl(var(--blue) 100 83);
} }
} }
@ -78,14 +94,38 @@ h1.gradient-text {
height: 3.67rem; height: 3.67rem;
border-radius: 9px; border-radius: 9px;
overflow: hidden; overflow: hidden;
border: 1px solid transparent; border: 1px solid hsl(var(--green) 10 10);
transition: border-color 0.3s; transition: background-color 0.3s, border-color 0.3s;
background-color: hsl(var(--green) 38 30);
color: hsl(194 0 100);
&:hover { &:hover {
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
border-color: hsl(var(--green) 20 20);
background-color: hsl(var(--green) 48 40);
} }
&.main-page_bluecard {
border-color: hsl(var(--blue) 10 10);
background-color: hsl(var(--blue) 38 30);
&:hover {
border-color: hsl(var(--blue) 20 20);
background-color: hsl(var(--blue) 48 40);
}
}
& h3 {
z-index: 2;
}
}
html.dark .main-page_link-card {
background-color: transparent;
border-color: transparent;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -111,6 +151,9 @@ h1.gradient-text {
} }
&.main-page_bluecard { &.main-page_bluecard {
background-color: transparent;
border-color: transparent;
&::before { &::before {
background: linear-gradient( background: linear-gradient(
115deg, 115deg,
@ -126,10 +169,6 @@ h1.gradient-text {
} }
} }
} }
& h3 {
z-index: 2;
}
} }
.baselayout footer { .baselayout footer {