Skip to content

Commit 567b82d

Browse files
committed
Add action buttons
1 parent cf7d4a7 commit 567b82d

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

assets/style.scss

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,37 @@ header
520520
width: 100%;
521521
padding:0px;
522522
}
523-
#bannerText
523+
#bannerLeft
524524
{
525-
font-size:26px;
526525
flex-grow: 1;
527526
padding-right:20px;
527+
display: flex;
528+
flex-direction: column;;
529+
}
530+
#bannerText
531+
{
532+
font-size:26px;
533+
528534
}
529535
#bannerCode
530536
{
531537
width:500px;
532538
flex-grow: 0;
539+
}
540+
#mainPageBanerNav
541+
{
542+
display: flex;
543+
flex-direction: row;
544+
}
545+
.mainPageBtn
546+
{
547+
padding: 20px;
548+
background-color: #cadfe6;
549+
margin-right: 10px;
550+
margin-top: 15px;
551+
align-content: center;
552+
}
553+
.mainPageBtn:hover
554+
{
555+
background-color: #e7f5f9;
533556
}

index.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<div id="banner">
2-
<span id="bannerText">
3-
Slang is a GPU-first language with modern features for modular, extensible, and high-performance programming.
4-
</span>
2+
<div id="bannerLeft">
3+
<span id="bannerText">
4+
Slang is a GPU-first language with modern features for modular, extensible, and high-performance programming.
5+
</span>
6+
<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>
10+
</div>
11+
</div>
512
<img id="bannerCode" src="/assets/slang-example-code.gif"/>
613
</div>
714

0 commit comments

Comments
 (0)