Skip to content

Commit 488d9c0

Browse files
committed
Improve the design of the home page
1 parent 1229e6e commit 488d9c0

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

src/components/button/button.scss

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,41 @@
66
align-items: center;
77
justify-content: center;
88
padding: 1px 20px 0;
9-
border: 2px solid rgba(#000, 0.3);
9+
border: 2px solid rgba(#fff, 0.2);
10+
border-radius: 8px;
11+
background-color: rgba(#fff, 0.05);
12+
color: #fff;
1013
cursor: pointer;
1114
font-size: 16px;
1215
font-weight: 700;
1316
letter-spacing: -0.5px;
17+
backdrop-filter: blur(8px);
18+
transition: all 0.2s ease;
1419

1520
&:hover {
16-
background-color: rgba(#000, 0.3);
17-
color: rgba(#000, 0.8);
18-
transition: none;
21+
background-color: rgba(#fff, 0.1);
22+
border-color: rgba(#fff, 0.3);
23+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
1924
}
2025

2126
&:active {
22-
border-color: rgba(#000, 0.25);
23-
background-color: rgba(#000, 0.25);
27+
background-color: rgba(#fff, 0.15);
28+
border-color: rgba(#fff, 0.35);
29+
transform: translateY(0);
30+
box-shadow: none;
2431

2532
.button__chevron-right {
26-
transform: translateX(1px);
33+
transform: translateX(2px);
2734
transition: none;
2835
}
2936
}
3037

3138
&__chevron-right {
32-
margin-left: 5px;
33-
transition: transform 0.1s ease-out,
34-
fill $default-transition-duration $default-transition-function;
39+
margin-left: 8px;
40+
font-size: 18px;
41+
opacity: 0.8;
42+
transition:
43+
transform 0.1s ease-out,
44+
opacity $default-transition-duration $default-transition-function;
3545
}
3646
}

src/index.njk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
<svg class="mr-3 w-10 h-10 text-blue-400 fill-current">
1313
<use xlink:href="#icon-logo"></use>
1414
</svg>
15-
<h1 class="text-2xl font-medium pb-[0.05em]">frontenso-11ty-starter</h1>
15+
<h1 class="text-2xl font-medium">frontenso-11ty-starter</h1>
1616
</div>
17+
<h2 class="text-2xl font-medium mb-4">Core Features</h2>
1718
<ul
18-
class="mb-14 text-sm lg:text-base font-bold rounded pl-4 space-y-1 list-disc max-w-xl"
19+
class="mb-14 text-sm lg:text-base font-semibold bg-gray-800 border border-gray-700 rounded-lg p-6 max-w-xl list-disc list-inside space-y-2 text-gray-100 marker:text-blue-400"
1920
>
2021
<li>Component-based approach.</li>
2122
<li>Fast builds with Gulp and SCSS support.</li>
@@ -38,6 +39,7 @@
3839
<li>(Optional) TailwindCSS with JIT.</li>
3940
<li>(Optional) TypeScript support using JSDoc notation.</li>
4041
</ul>
42+
4143
<p class="mb-14 max-w-2xl">
4244
This is a production-ready component-based starter that features
4345
Nunjucks, SCSS, TailwindCSS (with JIT compiler), Webpack, ESNext, and

0 commit comments

Comments
 (0)