Skip to content

Commit 258df0c

Browse files
authored
Update features (#52)
1 parent 90a8f0e commit 258df0c

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

assets/scss/components/_feature.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
padding: 20px;
55
background-color: $gray-900;
66
display: flex;
7-
align-items: center;
87
flex-direction: column;
98
text-align: center;
9+
transition: 0.3s;
1010
img {
1111
width: 100%;
1212
height: auto;
1313
}
1414
.feature-content {
1515
margin-bottom: auto;
16-
margin-top: auto;
16+
text-align: initial;
1717
}
1818
h2 {
1919
font-weight: 600;
2020
}
21+
&:hover {
22+
transform: translateY(-5px);
23+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
24+
}
2125
}

data/features.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[
22
{
33
"title": "Strong",
4-
"description": "Stockfish has won the Top Chess Engine Championship and Chess.com Computer Chess Championship, and consistently ranks highly on rating lists.",
4+
"description": "One of the strongest chess engines in the world. Winner of the Top Chess Engine Championship and Chess.com Computer Chess Championship, and consistently ranks highly on rating lists.",
55
"url": "https://en.wikipedia.org/wiki/Stockfish_(chess)#Competition_results",
6-
"button_text": "Competition Results"
6+
"button_text": "View competition results"
77
},
88
{
9-
"title": "Open Source",
10-
"description": "Stockfish is open source (GPLv3 license). That means you can read the code, modify it, and contribute back.",
11-
"url": "https://github.com/official-stockfish/Stockfish",
12-
"button_text": "View Source"
9+
"title": "Community-Driven",
10+
"description": "Developed by a global community of chess enthusiasts and programmers and released under the GPLv3 license, so everyone can read the code, modify it, and contribute back.",
11+
"url": "https://discord.gg/GWDRS3kU6R",
12+
"button_text": "Join our Discord"
1313
},
1414
{
15-
"title": "Run Anywhere",
16-
"description": "You can use Stockfish on your computer or on your iOS or Android device. So you can get world-class chess analysis, wherever you are.",
15+
"title": "Cross-Platform",
16+
"description": "Available on Windows, macOS, Linux, Android, and iOS. You can get world-class chess analysis wherever you are.",
1717
"url": "/download/",
1818
"button_text": "Download"
1919
}

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>{{ .Description }}</h1>
3333
<div class="tagline">{{ .Content }}</div>
3434
<div class="actions mb-5">
3535
<a href="/download/" class="button mb-1">Download</a>
36-
<a href="https://github.com/official-stockfish/Stockfish" class="button button-secondary">View on GitHub</a>
36+
<a href="https://github.com/official-stockfish/Stockfish" target="_blank" class="button button-secondary">View on GitHub</a>
3737
</div>
3838
<p class="mb-1">
3939
<strong>
@@ -72,7 +72,7 @@ <h2 class="feature-title">{{ .title }}</h2>
7272
<div class="feature-content">
7373
<p>{{ .description }}</p>
7474
</div>
75-
<a href="{{ .url }}" class="button">{{ .button_text }}</a>
75+
<a href="{{ .url }}" class="button" target="_blank">{{ .button_text }}</a>
7676
</div>
7777
</div>
7878
{{end}}

0 commit comments

Comments
 (0)