Skip to content

Commit af0b99e

Browse files
committed
feat: add suggestive action
1 parent 0b8fab7 commit af0b99e

4 files changed

Lines changed: 80 additions & 2 deletions

File tree

‎content/_index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ title: An up to date, easy to use and privacy respecting operating system for yo
1313
</div>
1414

1515
<div id="landing-buttons">
16-
{{ button(id="download-button", href="/downloads", label="Download Apollo") }}
16+
{{ button(id="download-button", extra_classes="suggestive", href="/downloads", label="Download Apollo") }}
1717
{{ button(href="#everything-you-need", label="Learn more") }}
1818
</div>
1919

‎sass/_body.scss‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
$alpha: -0.5,
3939
);
4040
}
41+
42+
div.container {
43+
background-color: color.adjust(
44+
$dark-background-colour,
45+
$lightness: 4%
46+
);
47+
border: 1px solid color.adjust(
48+
$dark-background-colour,
49+
$lightness: 10%
50+
);
51+
}
4152
}
4253
}
4354
@media (prefers-color-scheme: light) {
@@ -76,6 +87,18 @@
7687
$alpha: -0.5,
7788
);
7889
}
90+
91+
div.container {
92+
background-color: color.adjust(
93+
$light-background-colour,
94+
$lightness: -5%
95+
);
96+
97+
border: 1px solid color.adjust(
98+
$light-background-colour,
99+
$lightness: -10%
100+
);
101+
}
79102
}
80103
}
81104

@@ -121,11 +144,39 @@ body {
121144
padding-inline: 2em;
122145
}
123146

147+
div.container {
148+
border-radius: 24px;
149+
padding: 1.5em 2em;
150+
margin-bottom: 1.5em;
151+
display: flex;
152+
flex-direction: column;
153+
gap: 8px;
154+
}
155+
124156
a.button {
125157
border-radius: 24px;
126158
padding: 16px 32px;
127159
transition: 0.2s background-color;
128160
font-weight: 800;
129161
text-decoration: none;
130162
}
163+
164+
165+
a.button.suggestive {
166+
background-color: color.adjust(
167+
$apollo-theme-colour,
168+
$saturation: -5%,
169+
$lightness: -5%,
170+
);
171+
color: white;
172+
}
173+
174+
a.button.suggestive:hover {
175+
background-color: color.adjust(
176+
$apollo-theme-colour,
177+
$saturation: -5%,
178+
$lightness: -10%,
179+
);
180+
color: white;
181+
}
131182
}

‎sass/_download.scss‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
body {
2+
div.download-container {
3+
h2 {
4+
margin:0;
5+
}
6+
7+
p.description {
8+
margin: 0.35em 0;
9+
}
10+
11+
p.info {
12+
font-size: 12pt;
13+
line-height: 1.2em;
14+
margin: 0;
15+
16+
code {
17+
font-size: 11pt;
18+
padding: 3px;
19+
border-radius: 4px;
20+
}
21+
}
22+
23+
div.button-container {
24+
display: flex;
25+
}
26+
}
27+
}

‎templates/shortcodes/button.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a href="{{href}}" {% if id %} id="{{id}}" {% endif %} class="button">
1+
<a href="{{href}}" {% if id %} id="{{id}}" {% endif %} class="button {% if extra_classes %} {{ extra_classes }} {% endif %}">
22
{{label}}
33
</a>

0 commit comments

Comments
 (0)