diff --git a/src/public/fonts/SpaceMono-Bold.ttf b/src/public/fonts/SpaceMono-Bold.ttf new file mode 100644 index 0000000..14aab33 Binary files /dev/null and b/src/public/fonts/SpaceMono-Bold.ttf differ diff --git a/src/public/fonts/SpaceMono-BoldItalic.ttf b/src/public/fonts/SpaceMono-BoldItalic.ttf new file mode 100644 index 0000000..3124efb Binary files /dev/null and b/src/public/fonts/SpaceMono-BoldItalic.ttf differ diff --git a/src/public/fonts/SpaceMono-Italic.ttf b/src/public/fonts/SpaceMono-Italic.ttf new file mode 100644 index 0000000..eb15c27 Binary files /dev/null and b/src/public/fonts/SpaceMono-Italic.ttf differ diff --git a/src/public/fonts/SpaceMono-Regular.ttf b/src/public/fonts/SpaceMono-Regular.ttf new file mode 100644 index 0000000..d713495 Binary files /dev/null and b/src/public/fonts/SpaceMono-Regular.ttf differ diff --git a/src/views/layout.slim b/src/views/layout.slim index 68b76f8..0d794b7 100644 --- a/src/views/layout.slim +++ b/src/views/layout.slim @@ -6,6 +6,15 @@ html lang="en" link rel="stylesheet" href="/style.css" title The Auction House body + header + nav + ul + li + a.button#register href="/register" target="_self" + | Register + li + a.button#login href="/login" target="_self" + | Log in ==yield diff --git a/src/views/stylesheets/_fonts.scss b/src/views/stylesheets/_fonts.scss new file mode 100644 index 0000000..2d5c8be --- /dev/null +++ b/src/views/stylesheets/_fonts.scss @@ -0,0 +1,28 @@ +@font-face { + font-family: 'Space Mono'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url(/fonts/SpaceMono-Italic.ttf) format('truetype'); +} +@font-face { + font-family: 'Space Mono'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url(/fonts/SpaceMono-BoldItalic.ttf) format('truetype'); +} +@font-face { + font-family: 'Space Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/fonts/SpaceMono-Regular.ttf) format('truetype'); +} +@font-face { + font-family: 'Space Mono'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url(/fonts/SpaceMono-Bold.ttf) format('truetype'); +} diff --git a/src/views/stylesheets/style.sass b/src/views/stylesheets/style.sass index aee33f8..3bb4406 100644 --- a/src/views/stylesheets/style.sass +++ b/src/views/stylesheets/style.sass @@ -1,3 +1,60 @@ +@import "fonts" + +$font_stack: "Space Mono", monospace +$bg_clr: #f2f5f7 +// #e7ecef +$bg_alt_clr: #fffcf7 +$fg_clr: #262526 +$fg_alt_clr: #fff + +$shadow_clr: #ccc + +$special_btn_clr: #4776C1 + +\:root + display: border-box + margin: 0 + padding: 0 + font-family: $font_stack + font-size: 16px + html - background-color: red + background-color: $bg_clr + + +body + margin: 0 + header + background-color: $bg_alt_clr + border-bottom: 1px solid $shadow_clr + nav + max-width: 80rem + margin: 0 auto + padding: 8px + + ul + margin: 0 + display: flex + flex-direction: row + list-style-type: none + justify-content: flex-end + + li + margin: 0 8px + + +#login + color: $fg_alt_clr + background-color: $special_btn_clr + +a.button + display: inline-block + text-decoration: none + padding: .4rem 1rem + color: $fg_clr + border-radius: .25rem + transition: opacity .2s + +a.button:hover + opacity: .8