Skip to content

Commit 640fd23

Browse files
committed
Add icon to buttons.
1 parent 567b82d commit 640fd23

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

assets/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ header
544544
}
545545
.mainPageBtn
546546
{
547-
padding: 20px;
547+
padding: 15px;
548548
background-color: #cadfe6;
549549
margin-right: 10px;
550550
margin-top: 15px;

index.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
Slang is a GPU-first language with modern features for modular, extensible, and high-performance programming.
55
</span>
66
<div id="mainPageBanerNav">
7-
<a class="mainPageBtn" href="/slang-playground">Try</a>
8-
<a class="mainPageBtn" href="https://github.com/shader-slang/slang/releases/latest">Download</a>
9-
<a class="mainPageBtn" href="https://github.com/shader-slang/slang">GitHub</a>
7+
<a class="mainPageBtn" href="/slang-playground" title="Try slang directly in your browser."><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-terminal" viewBox="0 0 16 16">
8+
<path d="M6 9a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 9M3.854 4.146a.5.5 0 1 0-.708.708L4.793 6.5 3.146 8.146a.5.5 0 1 0 .708.708l2-2a.5.5 0 0 0 0-.708z"/>
9+
<path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm12 1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"/>
10+
</svg> Try</a>
11+
<a class="mainPageBtn" href="https://github.com/shader-slang/slang/releases/latest" title="Download latest prebuilt release."><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
12+
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/>
13+
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>
14+
</svg> Download</a>
15+
<a class="mainPageBtn" href="https://github.com/shader-slang/slang" title="Slang GitHub Repository"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
16+
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"/>
17+
</svg></a>
1018
</div>
1119
</div>
1220
<img id="bannerCode" src="/assets/slang-example-code.gif"/>

0 commit comments

Comments
 (0)