From d85ece03edc3669726b50e9c8c193e5626268ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 10 Apr 2021 15:48:17 +0200 Subject: Add skeleton of a Haunt web site. --- website/static/css/code.css | 33 +++ website/static/css/main.css | 321 +++++++++++++++++++++++++++ website/static/fonts/FiraMono-Regular.ttf | Bin 0 -> 174632 bytes website/static/fonts/OFL.txt | 94 ++++++++ website/static/fonts/Roboto-Bold.ttf | Bin 0 -> 162464 bytes website/static/fonts/Roboto-Light.ttf | Bin 0 -> 162420 bytes website/static/fonts/Roboto-LightItalic.ttf | Bin 0 -> 166492 bytes website/static/images/background.png | Bin 0 -> 753 bytes website/static/images/favicon.png | Bin 0 -> 4210 bytes website/static/images/feed.png | Bin 0 -> 815 bytes website/static/images/h-separator-darker.png | Bin 0 -> 1091 bytes website/static/images/logo-small.png | Bin 0 -> 9619 bytes website/static/images/logo.png | Bin 0 -> 7616 bytes 13 files changed, 448 insertions(+) create mode 100644 website/static/css/code.css create mode 100644 website/static/css/main.css create mode 100755 website/static/fonts/FiraMono-Regular.ttf create mode 100644 website/static/fonts/OFL.txt create mode 100644 website/static/fonts/Roboto-Bold.ttf create mode 100644 website/static/fonts/Roboto-Light.ttf create mode 100644 website/static/fonts/Roboto-LightItalic.ttf create mode 100644 website/static/images/background.png create mode 100644 website/static/images/favicon.png create mode 100644 website/static/images/feed.png create mode 100644 website/static/images/h-separator-darker.png create mode 100644 website/static/images/logo-small.png create mode 100644 website/static/images/logo.png (limited to 'website/static') diff --git a/website/static/css/code.css b/website/static/css/code.css new file mode 100644 index 0000000..c308845 --- /dev/null +++ b/website/static/css/code.css @@ -0,0 +1,33 @@ +/* Syntax highlighting code, by David Thompson, borrowed + from: + https://git.dthompson.us/blog.git/blob_plain/refs/heads/haunt-migration:/css/dthompson.css + David Thompson gives permission for this to be GPLv3+ and CC BY-SA 4.0 + + Modified significantly since. +*/ + + +.syntax-special, .syntax-element { + color: #856; + font-weight: bold; +} + +.syntax-symbol { + color: #423; +} + +.syntax-string { + color: #484; +} + +.syntax-keyword, .syntax-attribute { + color: #921; +} + +.syntax-comment { + color: #666; +} + +.syntax-open, .syntax-close { + color: #688; +} diff --git a/website/static/css/main.css b/website/static/css/main.css new file mode 100644 index 0000000..16f4836 --- /dev/null +++ b/website/static/css/main.css @@ -0,0 +1,321 @@ +@import url("code.css"); + +@font-face { + font-family: 'Roboto'; + src: url('/static/fonts/Roboto-Light.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'Roboto-Italic'; + src: url('/static/fonts/Roboto-LightItalic.ttf') format('truetype'); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'Roboto-Bold'; + src: url('/static/fonts/Roboto-Bold.ttf') format('truetype'); + font-weight: normal; + font-style: bold; +} + +@font-face { + font-family: 'FiraMono'; + src: url('/static/fonts/FiraMono-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: bold; +} + +@media all {html {font-size: 20px;}} +@media all and (max-width:1260px){html {font-size: 20px;}} +@media all and (max-width:1000px){html {font-size: 20px;}} +@media all and (max-width:960px){html {font-size: 19px;}} +@media all and (max-width:920px){html {font-size: 18px;}} +@media all and (max-width:880px){html {font-size: 17px;}} +@media all and (max-width:840px){html {font-size: 16px;}} +@media all and (max-width:800px){html {font-size: 16px;}} +@media all and (max-width:760px){html {font-size: 16px;}} + +/*#ffbf2d*/ + +body,html { + background-color: #fff; + width: 100%; + height: 100%; + line-height: 1.6em; + padding: 0px; + margin: 0px; + font-family: 'Roboto', sans-serif; +} + +pre { + border-style: none; + border-radius: 0.3em; + background-color: #f2efe4; + border-width: thin; + color: #423; + font-size: 0.9em; + padding: 10px; + text-align: left; + font-family: fixed-width; + overflow-x: auto; + margin-bottom: 0.8rem; +} + +code { + font-family: 'FiraMono', monospace; + border-radius: 0.3em; +} + +/* Arrange to have between 40 and 70 characters per line. */ + +.width-control { + max-width: 800px; + width: 65%; +} + +@media all and (max-width: 760px) { .width-control { width: 90%; } }; + +p { + max-width: 70rem; + margin-bottom: 0; +} + +p + p { + /*text-indent: 0.5rem;*/ + margin-top: 1.0rem; +} + +#header { + background: #fff; + height: 90px; + width: 100%; + box-shadow: 0 3px 8px #ccc; +} + +#header .logo { + padding: 10px; + display: block; +} + +#header .baseline { + color: #073b4c; + font-size: 16px; + font-family: 'Roboto', sans-serif; + font-weight: bold; + display: none; /* overridden below */ + padding: 10px; + padding-top: 2px; +} + +#header .members { + float: right; +} + +@media screen and (min-width: 640px) { + #header .baseline { + display: block; + } + #header { + height: 110px; + } +} + +#header.frontpage { + height: auto; + margin-bottom: 1em; + text-align: center; + padding-top: 2rem; + padding-bottom: 1rem; +} + +#header.frontpage .logo { + padding: 0; + margin: 0 auto; + max-width: 100%; +} + +#header.frontpage .baseline { + padding-top: 1rem; +} + +#menubar { + margin: auto; + padding: 0px; + clear: both; +} + +#header-inner { + margin: auto; + padding: 0px; +} + + +.latest-news { + margin-top: 20px; + padding-top: 0px; + padding-bottom: 0px; + padding-left: 10pt; + border-left: solid 10px #ffbf2d; + color: #533; +} + +.news-brief { +} + +#collaboration { + border-top: solid 4px #aaaaaa; + border-bottom: solid 4px #aaaaaa; + background: #ffffff; + width: 100%; + bottom: 0px; +} +#collaboration-inner { margin: 10px auto 10px auto; } +#collaboration .members { text-align: center; } +#collaboration p { padding: 0px 10px 0px 10px; } +#collaboration .members ul { display: inline-block; padding: 0px; margin: 0px; } +#collaboration .members li { + display: inline-block; padding: 0px 10px; 0px 0px; + vertical-align: middle; +} + +.post { + background: #ffffff; + padding: 10px; + margin-bottom: 25px; +} + +hr { + height: 3px; + background: url('/static/images/h-separator-darker.png'); + background-repeat: no-repeat; + background-position: center; + width: 100%; + border: none; +} + +.post h1 { color: #433; } +.post h2 { color: #433; padding: 0pt; font-size: 1.3rem; } + +.post-about { + color: #4D4D4D; + font-size: 0.9em; + margin-top: -3em; +} + +#menubar ul { display: inline-block; padding: 0px; margin: 0px; } +#menubar li { + display: inline-block; + color: #000000; + height: 32px; + line-height: 32px; + list-style-type: none; + margin: 0px; + margin: 0px 13px 0px 0px; + text-transform: uppercase; + text-decoration: none; + font-size: small; +} + +#menubar li img { + vertical-align: middle; +} + +#menubar ul:first-child { + padding-left: 10px; +} + +#content { + margin: auto; + padding: 0px; +} + +#content .search-field { + border: solid thin #aaaaaa; + width: 100%; + padding: 7px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} + +#content table { + border-spacing: 0px; + padding: 0px; +} + +#content table td { padding: 3px 5px 3px 5px; height: 25px; } + +#packages-table-wrapper { + font-size: 16px; +} + +#stand-by { + background: #decd87; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + font-size: 16px; +} + +#stand-by p { padding: 7px } + +#footer-box { + width: 100%; + margin: auto; + text-align: center; + color: #333333; + font-size: 0.8rem; +} + +#footer-box p { + max-width: 100%; + text-align: center; +} + +h1 { + clear: both; + line-height: 125%; + margin-top: 1.3rem; + margin-bottom: .3rem; + padding: 0px; + display: block; + font-size: 1.6rem; + font-weight: 800; +} + +h1:first-child { + font-size: 1.8rem; + margin-bottom: 3rem; + margin-top: 0; +} + +.title a { border: none; } +a { + color: #000000; + outline: none; + border-style: none none solid none; + border-width: 2px; + border-color: #ef476f; + text-decoration: none; +} +a:visited { + color: #433; + border-color: #06d6a0; + border-style: none none solid none; + border-width: 2px; + text-decoration: none; +} +a img { outline : none; } +img { border: none; } + +audio, video, .full-width { + display: block; + margin: 50px auto; + max-width: 100%; +} + +#footer-box a { color: #333333; } +#footer-box a:visited { color: #333333; } diff --git a/website/static/fonts/FiraMono-Regular.ttf b/website/static/fonts/FiraMono-Regular.ttf new file mode 100755 index 0000000..59e1e1a Binary files /dev/null and b/website/static/fonts/FiraMono-Regular.ttf differ diff --git a/website/static/fonts/OFL.txt b/website/static/fonts/OFL.txt new file mode 100644 index 0000000..ae50f94 --- /dev/null +++ b/website/static/fonts/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2010, Matt McInerney (matt@pixelspread.com), +Copyright (c) 2011, Pablo Impallari (www.impallari.com|impallari@gmail.com), +Copyright (c) 2011, Rodrigo Fuenzalida (www.rfuenzalida.com|hello@rfuenzalida.com), with Reserved Font Name Raleway +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/Roboto-Bold.ttf b/website/static/fonts/Roboto-Bold.ttf new file mode 100644 index 0000000..a355c27 Binary files /dev/null and b/website/static/fonts/Roboto-Bold.ttf differ diff --git a/website/static/fonts/Roboto-Light.ttf b/website/static/fonts/Roboto-Light.ttf new file mode 100644 index 0000000..94c6bcc Binary files /dev/null and b/website/static/fonts/Roboto-Light.ttf differ diff --git a/website/static/fonts/Roboto-LightItalic.ttf b/website/static/fonts/Roboto-LightItalic.ttf new file mode 100644 index 0000000..04cc002 Binary files /dev/null and b/website/static/fonts/Roboto-LightItalic.ttf differ diff --git a/website/static/images/background.png b/website/static/images/background.png new file mode 100644 index 0000000..8772226 Binary files /dev/null and b/website/static/images/background.png differ diff --git a/website/static/images/favicon.png b/website/static/images/favicon.png new file mode 100644 index 0000000..448d4cb Binary files /dev/null and b/website/static/images/favicon.png differ diff --git a/website/static/images/feed.png b/website/static/images/feed.png new file mode 100644 index 0000000..0bfc69d Binary files /dev/null and b/website/static/images/feed.png differ diff --git a/website/static/images/h-separator-darker.png b/website/static/images/h-separator-darker.png new file mode 100644 index 0000000..2f20098 Binary files /dev/null and b/website/static/images/h-separator-darker.png differ diff --git a/website/static/images/logo-small.png b/website/static/images/logo-small.png new file mode 100644 index 0000000..ba0f29b Binary files /dev/null and b/website/static/images/logo-small.png differ diff --git a/website/static/images/logo.png b/website/static/images/logo.png new file mode 100644 index 0000000..209287c Binary files /dev/null and b/website/static/images/logo.png differ -- cgit v1.2.1