Skip to content

Commit

Permalink
Use SVG icon and text in banner
Browse files Browse the repository at this point in the history
  • Loading branch information
wooferzfg committed Apr 16, 2024
1 parent 3a2cf7f commit 0c00bbb
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
10 changes: 7 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
<div class="fork-me">
<a href="https://github.com/LiveSplit/LiveSplit" target="_blank"><img src="{{ site.imagesurl }}/forkme.png" alt="Fork Me on GitHub"></a>
</div>
<div class="banner">
<a href="{{ site.baseurl }}/"><img src="{{ site.imagesurl }}/banner.png" alt="LiveSplit Banner"></a>
</div>
<a class="banner" href="{{ site.baseurl }}/">
<img class="banner-icon" src="{{ site.imagesurl }}/icon.svg" alt="LiveSplit">
<div class="banner-text">
<div class="banner-title">LiveSplit</div>
<div class="banner-subtitle">A sleek, highly customizable timer for speedrunners</div>
</div>
</a>
<div class="container-fluid">
<ul class="nav nav-pills">
{% assign sorted_pages = (site.pages | sort: 'order') %}
Expand Down
44 changes: 40 additions & 4 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@font-face {
font-family: fira;
font-display: swap;
src: url(FiraSans-Regular.woff);
}

html {
background-image: url(../images/diagonal-stripes.png);
background-repeat: repeat;
Expand All @@ -20,10 +26,40 @@ p {
margin-top: 20px;
}

.banner>a>img {
display:block;
margin-left: auto;
margin-right: auto;
.banner {
display: flex;
text-decoration: none;
color: #cccccc;
justify-content: center;
align-items: center;
padding: 20px 0 5px 0;

&:hover {
text-decoration: none;
color: #cccccc;
}

.banner-icon {
height: 150px;
}

.banner-text {
display: flex;
flex-direction: column;
padding-left: 20px;
font-family: "fira", Trebuchet, arial, sans-serif;

.banner-title {
font-size: 6em;
margin-top: -20px;
}

.banner-subtitle {
font-size: 2em;
margin-top: -20px;
margin-left: 8px; // Align left edge with the title text
}
}
}

.img-align-center {
Expand Down
Binary file added css/FiraSans-Regular.woff
Binary file not shown.
Binary file removed images/banner.png
Binary file not shown.
1 change: 1 addition & 0 deletions images/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c00bbb

Please sign in to comment.