Skip to content

Commit 1252f24

Browse files
authored
tweak CTA (sveltejs#529)
* tweak CTA * tweak spacing
1 parent 34d7cff commit 1252f24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/svelte.dev/src/routes/_home/Hero.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script>
2+
import { Icon } from '@sveltejs/site-kit/components';
23
// @ts-expect-error
34
import MachineDesktop from './svelte-machine-desktop.png?w=1200;2000;2800;4400&format=avif;webp;png;&as=picture';
45
// @ts-expect-error
@@ -8,7 +9,7 @@
89
<div class="hero">
910
<div class="hero-content">
1011
<h1>web development for the rest of us</h1>
11-
<a href="/docs" class="cta basic">get started</a>
12+
<a href="/docs" class="cta">get started <Icon name="arrow-right" /></a>
1213
</div>
1314

1415
<picture class="machine">
@@ -86,6 +87,7 @@
8687
8788
h1 {
8889
max-width: 9em;
90+
margin-bottom: 0.5em;
8991
}
9092
9193
.machine img {
@@ -97,8 +99,12 @@
9799
98100
.cta {
99101
font: var(--sk-font-ui-medium);
102+
font-size: 2rem;
100103
color: var(--sk-theme-1);
101104
text-transform: uppercase;
105+
display: flex;
106+
align-items: center;
107+
gap: 0.5rem;
102108
}
103109
104110
@media (min-width: 800px) {

0 commit comments

Comments
 (0)