diff --git a/lektor/lektordata/project/assets/static/apple-touch-icon.png b/lektor/lektordata/project/assets/apple-touch-icon.png similarity index 100% rename from lektor/lektordata/project/assets/static/apple-touch-icon.png rename to lektor/lektordata/project/assets/apple-touch-icon.png diff --git a/lektor/lektordata/project/assets/static/favicon-96x96.png b/lektor/lektordata/project/assets/favicon-96x96.png similarity index 100% rename from lektor/lektordata/project/assets/static/favicon-96x96.png rename to lektor/lektordata/project/assets/favicon-96x96.png diff --git a/lektor/lektordata/project/assets/static/favicon.ico b/lektor/lektordata/project/assets/favicon.ico similarity index 100% rename from lektor/lektordata/project/assets/static/favicon.ico rename to lektor/lektordata/project/assets/favicon.ico diff --git a/lektor/lektordata/project/assets/static/favicon.svg b/lektor/lektordata/project/assets/favicon.svg similarity index 100% rename from lektor/lektordata/project/assets/static/favicon.svg rename to lektor/lektordata/project/assets/favicon.svg diff --git a/lektor/lektordata/project/assets/images/about_square.jpg b/lektor/lektordata/project/assets/images/about_square.jpg new file mode 100644 index 0000000..7277350 Binary files /dev/null and b/lektor/lektordata/project/assets/images/about_square.jpg differ diff --git a/lektor/lektordata/project/assets/images/header-bg.jpg b/lektor/lektordata/project/assets/images/header-bg.jpg new file mode 100644 index 0000000..ebecb8e Binary files /dev/null and b/lektor/lektordata/project/assets/images/header-bg.jpg differ diff --git a/lektor/lektordata/project/assets/images/kontakt_square.jpg b/lektor/lektordata/project/assets/images/kontakt_square.jpg new file mode 100644 index 0000000..f60d9a5 Binary files /dev/null and b/lektor/lektordata/project/assets/images/kontakt_square.jpg differ diff --git a/lektor/lektordata/project/assets/images/logo.svg b/lektor/lektordata/project/assets/images/logo.svg new file mode 100644 index 0000000..f0acc7e --- /dev/null +++ b/lektor/lektordata/project/assets/images/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lektor/lektordata/project/assets/images/termine_square.jpg b/lektor/lektordata/project/assets/images/termine_square.jpg new file mode 100644 index 0000000..79316f2 Binary files /dev/null and b/lektor/lektordata/project/assets/images/termine_square.jpg differ diff --git a/lektor/lektordata/project/assets/static/site.webmanifest b/lektor/lektordata/project/assets/site.webmanifest similarity index 100% rename from lektor/lektordata/project/assets/static/site.webmanifest rename to lektor/lektordata/project/assets/site.webmanifest diff --git a/lektor/lektordata/project/assets/static/style.css b/lektor/lektordata/project/assets/static/style.css index 62ecdcc..dbd76c9 100644 --- a/lektor/lektordata/project/assets/static/style.css +++ b/lektor/lektordata/project/assets/static/style.css @@ -1,211 +1,411 @@ + +@font-face { + font-family: "Roboto-Black"; + src: url(/static/webfonts/Roboto-Black.woff2)format("woff2"),url(/static/webfonts/Roboto-Black.woff)format("woff") +} + +@font-face { + font-family: "Roboto-BlackItalic"; + src: url(/static/webfonts/Roboto-BlackItalic.woff2)format("woff2"),url(/static/webfonts/Roboto-BlackItalic.woff)format("woff") +} + +@font-face { + font-family: "Roboto-Bold"; + src: url(/static/webfonts/Roboto-Bold.woff2)format("woff2"),url(/static/webfonts/Roboto-Bold.woff)format("woff") +} + +@font-face { + font-family: "Roboto-BoldItalic"; + src: url(/static/webfonts/Roboto-BoldItalic.woff2)format("woff2"),url(/static/webfonts/Roboto-BoldItalic.woff)format("woff") +} + +@font-face { + font-family:"Roboto-Italic"; + src:url(/static/webfonts/Roboto-Italic.woff2)format("woff2"),url(/static/webfonts/Roboto-Italic.woff)format("woff") +} + +@font-face { + font-family:"Roboto-Light"; + src:url(/static/webfonts/Roboto-Light.woff2)format("woff2"),url(/static/webfonts/Roboto-Light.woff)format("woff") +} + +@font-face { + font-family:"Roboto-LightItalic"; + src:url(/static/webfonts/Roboto-LightItalic.woff2)format("woff2"),url(/static/webfonts/Roboto-LightItalic.woff)format("woff") +} + +@font-face { + font-family:"Roboto-Medium"; + src:url(/static/webfonts/Roboto-Medium.woff2)format("woff2"),url(/static/webfonts/Roboto-Medium.woff)format("woff") +} + +@font-face { + font-family:"Roboto-MediumItalic"; + src:url(/static/webfonts/Roboto-MediumItalic.woff2)format("woff2"),url(/static/webfonts/Roboto-MediumItalic.woff)format("woff") +} + @font-face { font-family: "Roboto-Regular"; src: url(/static/webfonts/Roboto-Regular.woff2)format("woff2"),url(/static/webfonts/Roboto-Regular.woff)format("woff") } @font-face { - font-family:"Roboto-Light";src:url(/static/webfonts/Roboto-Light.woff2)format("woff2"),url(/static/webfonts/Roboto-Light.woff)format("woff") + font-family:"Roboto-Thin"; + src:url(/static/webfonts/Roboto-Thin.woff2)format("woff2"),url(/static/webfonts/Roboto-Thin.woff)format("woff") +} + +@font-face { + font-family:"Roboto-ThinItalic"; + src:url(/static/webfonts/Roboto-ThinItalic.woff2)format("woff2"),url(/static/webfonts/Roboto-ThinItalic.woff)format("woff") } body { - font-size: 1vw; - font-family: "Roboto-Light","Arial",sans-serif; - margin: 50px 25px -} - -.navbar-nav { - padding-top: 10px -} - -.navbar-nav .active a,a:hover { - color: #7f5e3c + font-family: "Roboto-Regular","Arial",sans-serif; + margin: 0px; + padding: 0px; + background: #f4f4f4; } a { - color: #b78c66; - text-decoration: none -} - -td,th { - padding: 5px 15px -} - -div.page,footer,header { - position: relative; - width: 80%; - margin: 0 auto; - background: #ececec; - max-width: 1200px -} - -div.page { - color: #6c7d8c -} - -div.page>div.inner_page,footer>div.inner_footer,header>div.inner_header { - padding: 20px 30px -} - -div.inner_page>* { - margin: 0 -} - -body,div.page h1,div.page h2,div.page h3,div.page h4,div.page h5,div.page h6 { - color: #5d5d5d -} - -div.inner_page { - position: relative; - top: 0; - padding: 0 -} - -div.inner_page.bgimage { - background-image: url(/images/bg_image_welcome_1.jpg); - background-size: 100%; - background-position: top; - background-repeat: no-repeat; - background-color: rgba(255,255,255,.6); - background-blend-mode: lighten; - min-height: 672px; - box-sizing: border-box -} - -footer,header,header h1 { - color: #b0b0b0 + text-decoration: none; } header { - font-size: 1vw + width: 100%; + height: 200px; + background-image: linear-gradient(to bottom, rgba(0.13, 0.13, 0.13, 0.80), rgba(0.13, 0.13, .13, 0.00)), url(/images/header-bg.jpg); + background-blend-mode: multiply; + background-size: 100%; + background-position: 0 47%; + background-repeat: no-repeat; } -footer { - font-size: .75vw +nav{ + padding: 12px 0; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; } -header h1 { - margin: 0; - font-weight: 700; - font-size: 1.9vw +.left_header{ + font-family: "Roboto-Black","Arial Bold",sans-serif; + font-size: 24px; + color: #fff; + display: flex; + align-items: center; + padding: 0 0 0 28px; } -header nav ul { +.left_header ul.nav{ + padding: 0; +} + +.left_header a{ + color: #fff; + display: flex; + align-items: center; +} + +.left_header img.header-logo{ + width: 43px; + margin-right: 12px; +} + +.right_header{ + font-family: "Roboto-Medium","Arial",sans-serif; + font-size: 18px; + color: #fff; + display: flex; + align-items: center; +} + +.left_header .nav, .right_header .nav { + display: flex; list-style: none; margin: 0; - padding: 0 + padding: 0 20px; + align-items: center; } -header nav ul li { - display: inline; - margin: 0 8px 0 0; - padding: 0 +ul { + list-style: none; } -div.page { - background: #fafafa +li { + list-style: none; } -.inner_page.bgimage .image img { - width: 283.66px +.navbar-nav{ + color: #f00; } -@media (max-width:768px) { - header h1 { - font-size: 3.15vw +.right_header .nav li { + margin: 0 20px; +} + +nav input[type='checkbox'], nav label { + display: none; +} + +.right_header a{ + color: #fff; +} + +header .button a { + padding: 0.5rem 1rem; + background-color: #2563eb; + color: #fff; + border-radius: 4px; +} + +div.page{ + position: relative; + top: 150px; + left: 50%; + transform: translateX(-50%); + width: 1100px; + background: #fff; + text-align: center; + color: #2563eb; + padding: 0; + font-family: "Roboto-Thin","Arial",sans-serif; + font-size:36px; + line-height: 1em; + margin: -230px 0 0 0; +} + +div.page h2 { + font-family: "Roboto-Black","Arial Bold",sans-serif; + font-size:60px; + margin: 30px 0 0 0; + padding: 22px 0 0 0; + font-weight: normal; + line-height: 50px; +} + +div.page h3 { + font-family: "Roboto-Thin","Arial",sans-serif; + font-size:60px; + margin: 0px; + padding: 0; + font-weight: normal; + line-height: 30px; + +} + +div.page strong { + font-family: "Roboto-Regular","Arial",sans-serif; + color: #1e3a8a; +} + +div.page div.threecolumn{ + display: flex; + justify-content: space-between; + align-items: center; + padding: 30px 50px; + +} + +div.page div.threecolumn div{ + display: flex; + align-items: center; + width: 300px; + line-height: 50px; + font-size:30px; +} + +div.inner_footer{ + z-index: -1; + position: relative; + top: 150px; + left: 0; + height: 200px; + width: 100%; + background: #2563eb; + color: #fff; + font-family: "Roboto-Thin","Arial",sans-serif; + font-size:18px; + line-height: 27px; + margin: -50px 0 0 0; + display: flex; + justify-content: space-between; + align-items: end; +} + +div.inner_footer a{ + color: #fff; +} + +div.left_footer, div.middle_footer, div.right_footer { + display: flex; + align-items: end; + padding: 28px; +} + +@media (min-width: 769px) and (max-width: 1100px) { + header { + height: calc(200vw /1100*100); + } +/* header > div.inner_header{ + padding: calc(12vw /1100*100) calc(28vw /1100*100); + }*/ + header .left_header{ + font-size: calc(24vw /1100*100); + } + header .left_header img.header-logo{ + width: calc(43vw /1100*100); + margin-right: calc(12vw /1100*100); + } + header .right_header{ + font-size: calc(18vw /1100*100); + } + header .right_header .nav { + padding: 0 calc(20vw /1100*100); + } + header .right_header .nav li { + margin: 0 calc(20vw /1100*100); + } + div.page{ + top: calc(150vw /1100*100); + width: calc(1100vw /1100*100); /* That's actually 100% I know */ + font-size:calc(36vw /1100*100); + margin: calc(-230vw /1100*100) 0 0 0; + } + div.page h2 { + font-size:calc(60vw /1100*100); + margin: calc(30vw /1100*100) 0 0 0; + padding: calc(22vw /1100*100) 0 0 0; + line-height: calc(50vw /1100*100); + } + div.page h3 { + font-size:calc(60vw /1100*100); + line-height: calc(30vw /1100*100); + } + div.page div.threecolumn{ + padding: calc(30vw /1100*100) calc(50vw /1100*100); + + } + div.page div.threecolumn div{ + width: calc(300vw /1100*100); + line-height: calc(50vw /1100*100); + font-size: calc(30vw /1100*100); + } + div.page div.threecolumn img{ + width: calc(300vw /1100*100); + } + div.inner_footer{ + top: calc(150vw /1100*100); + height: calc(200vw /1100*100); + font-size: calc(18vw /1100*100); + line-height: calc(27vw /1100*100); + margin: calc(-50vw /1100*100)px 0 0 0; + } + div.left_footer, div.middle_footer, div.right_footer { + padding: calc(28vw /1100*100); + } +} + +@media (max-width: 768px) { + header { + height: auto; + } + header .left_header{ + font-size: calc(24px * 0.7); + } + header .left_header img.header-logo{ + width: calc(43px * 0.7); + margin-right: calc(12px * 0.7); + } + header .right_header{ + font-size: 18px; + } + header .right_header .nav { + padding: 0 calc(20px * 0.7); + } + header .right_header .nav li { + margin: 0 calc(20px * 0.7); + } + div.page{ + top: 0; + width: 100%; + font-size:calc(36px * 0.7); + margin: 0; + } + div.page h2 { + font-size:calc(60px * 0.7); + margin: 0; + padding: calc(22px * 0.7) 0 0 0; + line-height: calc(50px * 0.7); + } + div.page h3 { + font-size:calc(60px * 0.7); + line-height: calc(30px * 0.7); + } + div.page div.threecolumn{ + padding: calc(30px * 0.7) calc(50px * 0.7); + + } + div.page div.threecolumn div{ + width: 300px; + line-height: calc(50px * 0.7); + font-size: calc(30px * 0.7); + } + div.page div.threecolumn img{ + width: 300px; + } + div.inner_footer{ + top: calc(150px * 0.7); + height: auto; + font-size: calc(18px * 0.7); + line-height: calc(27px * 0.7); + margin: 0; + } + div.left_footer, div.middle_footer, div.right_footer { + padding: calc(28px * 0.7); } - header nav ul { - display: flex; + + nav { + justify-content: start; + flex-direction: column; flex-wrap: wrap; - width: 75%; - font-size: 2.5vw + margin-left: 0; + margin-right: 0; + align-items: start; } - - header nav ul li { - flex-basis: 25%; - box-sizing: border-box; - padding: 5px 2.5% 5px 0; - white-space: nowrap + .left_header .nav, .right_header .nav, nav ul { + display: block; } - - div.inner_page.bgimage { - background-image: none; - min-height: 0 + nav ul:last-child { + width: 100%; + flex-basis: 100%; } - - body { - font-size: 4vw + nav ul li { + margin-bottom: 0; + width: 100%; + text-align: right; + padding: 0em; } - - header { - font-size: 3vw + nav .left_header ul li { + margin: 0; + padding: 0; } - - footer { - font-size: 2vw + nav .right_header ul li { + padding: 0.5em; } - - .inner_page.bgimage .image img { - width: 80% + nav label { + text-align: right; + display: block; + padding: 0.5em; + font-size: 20px; + align-self: self-start; } -} - -@media (min-width:1025px) and (max-width:1540px) { - div.inner_page.bgimage { - min-height: calc((80vw - 60px)*.572) + input[type='checkbox']:not(:checked)+ul { + display: none; } - - header h1 { - font-size: 2.4vw - } - - body { - font-size: 1.5vw - } - - header { - font-size: 1.25vw - } - - footer { - font-size: 1vw - } -} - -@media (min-width:769px) and (max-width:1024px) { - header h1 { - font-size: 3.15vw - } - - header nav ul { - display: flex; + .threecolumn{ + flex-direction: column; flex-wrap: wrap; - width: 75% - } - - header nav ul li { - flex-basis: 25%; - box-sizing: border-box; - padding: 5px 2.5% 5px 0 - } - - div.inner_page.bgimage { - min-height: calc((80vw - 60px)*.572) - } - - body { - font-size: 2.5vw - } - - header { - font-size: 2vw - } - - footer { - font-size: 1.75vw - } - - .inner_page.bgimage .image img { - width: 150px } } \ No newline at end of file diff --git a/lektor/lektordata/project/assets/static/web-app-manifest-192x192.png b/lektor/lektordata/project/assets/web-app-manifest-192x192.png similarity index 100% rename from lektor/lektordata/project/assets/static/web-app-manifest-192x192.png rename to lektor/lektordata/project/assets/web-app-manifest-192x192.png diff --git a/lektor/lektordata/project/assets/static/web-app-manifest-512x512.png b/lektor/lektordata/project/assets/web-app-manifest-512x512.png similarity index 100% rename from lektor/lektordata/project/assets/static/web-app-manifest-512x512.png rename to lektor/lektordata/project/assets/web-app-manifest-512x512.png diff --git a/lektor/lektordata/project/content/contents.lr b/lektor/lektordata/project/content/contents.lr index 423da41..7f9fbac 100644 --- a/lektor/lektordata/project/content/contents.lr +++ b/lektor/lektordata/project/content/contents.lr @@ -1,8 +1,23 @@ +_model: HTMLPage +--- title: Willkommen beim Pistolenclub Stammertal! --- body: -
-
+

Unser nächster Anlass:

+
+

Sonntag 8. Dezember, Gangfischschiessen in Ermatingen

+
+
+
+ All unsere Termine +
+
+ Alle Infos über uns +
+
+ Kontaktiere uns +
+ --- -_template: title_page.html +_template: page.html diff --git a/lektor/lektordata/project/models/html-page.ini b/lektor/lektordata/project/models/html-page.ini new file mode 100644 index 0000000..97d78a9 --- /dev/null +++ b/lektor/lektordata/project/models/html-page.ini @@ -0,0 +1,11 @@ +[model] +name = HTMLPage +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.body] +label = Body +type = html diff --git a/lektor/lektordata/project/templates/layout.html b/lektor/lektordata/project/templates/layout.html index 3c005cc..30470fd 100644 --- a/lektor/lektordata/project/templates/layout.html +++ b/lektor/lektordata/project/templates/layout.html @@ -1,31 +1,42 @@ - - - - + + + + - + {% block title %}Welcome{% endblock %} — PCS
-

Pistolenclub Stammertal

@@ -33,8 +44,17 @@ {% block body %}{% endblock %}
diff --git a/lektor/lektordata/project/templates/title_page.html b/lektor/lektordata/project/templates/title_page.html deleted file mode 100644 index 7d27714..0000000 --- a/lektor/lektordata/project/templates/title_page.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "layout.html" %} -{% block title %}{{ this.title }}{% endblock %} -{% block body %} -
-

{{ this.title }}

- {{ this.body }} -
-{% endblock %}