Skip to content

Commit

Permalink
fix: add smaller bg image and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Polostor committed Sep 5, 2023
1 parent 7306ded commit 37366d1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
static/*.png filter=lfs diff=lfs merge=lfs -text
static/*.svg filter=lfs diff=lfs merge=lfs -text
static/*.ttf filter=lfs diff=lfs merge=lfs -text
18 changes: 12 additions & 6 deletions sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@
font-size: 100%;
vertical-align: baseline;
background: transparent;
color: white;
}

:root {
--main-bg-color: #340000;
--main-text1-color: white;
--main-text2-color: black;
background-color: var(--main-bg-color);
}

body {
color: var(--main-text1-color);
font-size: 1em;
padding-bottom: 30px;
}

div#header {
background: image-set( "header_short.png" 2x, "header_wide.png" 1x) center repeat-x;
background-image: -webkit-image-set( url("header_short.png") 2x, url("header_wide.png") 1x);
background: url("header_wide.svg") center repeat-x;
background-size: contain;
background-size: auto 100%;
height: 600px;
Expand All @@ -28,17 +34,17 @@ div.middle {
width: 45%;
box-sizing: border-box;
& h1 {
color: white;
color: var(--main-text1-color);
font-size: 45px;
text-align: center;
padding-top: 30px;
padding-bottom: 10%;
}
& h2 {
color: black;
color: var(--main-text2-color);
font-size: 35px;
text-align: center;
padding-top: 130px;
padding-top: 80px;
}
& p, & ol {
padding-top: 16px;
Expand Down
3 changes: 0 additions & 3 deletions static/header_short.png

This file was deleted.

3 changes: 0 additions & 3 deletions static/header_wide.png

This file was deleted.

3 changes: 3 additions & 0 deletions static/header_wide.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preload" as="font" href="ShareTechMono-Regular.ttf" sizes="100vw">
<link rel="preload" as="image" imagesrcset="header_short.png 2x, header_wide.png 1x" sizes="100vw">
<link rel="preload" as="image" imagesrcset="header_wide.svg" sizes="100vw">
<style>
@font-face {
font-family: "shareTechMono";
Expand Down

0 comments on commit 37366d1

Please sign in to comment.