Skip to content

Commit 94c250c

Browse files
feat: add icons to Documentation and crates.io buttons on homepage
1 parent 940b297 commit 94c250c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

site/src/pages/home.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ pub fn Home() -> impl IntoView {
3232
rel="noopener noreferrer"
3333
class="inline-flex items-center px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg transition-colors duration-200"
3434
>
35+
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 20 20">
36+
<path d="M9 4.804A7.968 7.968 0 005.5 4c-1.255 0-2.443.29-3.5.804v10A7.969 7.969 0 015.5 14c1.669 0 3.218.51 4.5 1.385A7.962 7.962 0 0114.5 14c1.255 0 2.443.29 3.5.804v-10A7.968 7.968 0 0014.5 4c-1.255 0-2.443.29-3.5.804V12a1 1 0 11-2 0V4.804z"/>
37+
</svg>
3538
"Documentation"
3639
</a>
3740
<a
@@ -40,6 +43,9 @@ pub fn Home() -> impl IntoView {
4043
rel="noopener noreferrer"
4144
class="inline-flex items-center px-6 py-3 bg-orange-600 hover:bg-orange-700 text-white font-semibold rounded-lg transition-colors duration-200"
4245
>
46+
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
47+
<path d="M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.12-.36.18-.57.18-.21 0-.41-.06-.57-.18l-7.9-4.44C3.21 17.21 3 16.88 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.12.36-.18.57-.18.21 0 .41.06.57.18l7.9 4.44c.32.17.53.5.53.88v9M12 4.15L6.04 7.5 12 10.85l5.96-3.35L12 4.15zM5 15.91l6 3.38v-6.71L5 9.21v6.7zm14 0v-6.7l-6 3.37v6.71l6-3.38z"/>
48+
</svg>
4349
"crates.io"
4450
</a>
4551
</div>

0 commit comments

Comments
 (0)