From 80b7f7466d3a7c9311916f130302b3f039740547 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 5 Jul 2020 11:23:13 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20travail=20hugo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archetypes/default.md | 6 ++ config.toml | 8 ++ content/_index.md | 6 ++ content/contact.md | 10 ++ content/portfolio/CV.md | 6 ++ content/portfolio/modelisation.md | 6 ++ content/portfolio/realisation.md | 6 ++ themes/anna/LICENSE | 20 ++++ themes/anna/archetypes/default.md | 2 + themes/anna/assets/sass/main.scss | 106 ++++++++++++++++++++++ themes/anna/assets/sass/reset.css | 48 ++++++++++ themes/anna/layouts/404.html | 0 themes/anna/layouts/_default/baseof.html | 11 +++ themes/anna/layouts/_default/list.html | 13 +++ themes/anna/layouts/_default/single.html | 3 + themes/anna/layouts/index.html | 3 + themes/anna/layouts/partials/footer.html | 0 themes/anna/layouts/partials/head.html | 11 +++ themes/anna/layouts/partials/header.html | 18 ++++ themes/anna/layouts/portfolio/single.html | 15 +++ themes/anna/static/logo.svg | 66 ++++++++++++++ themes/anna/theme.toml | 21 +++++ 22 files changed, 385 insertions(+) create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 content/_index.md create mode 100644 content/contact.md create mode 100644 content/portfolio/CV.md create mode 100644 content/portfolio/modelisation.md create mode 100644 content/portfolio/realisation.md create mode 100644 themes/anna/LICENSE create mode 100644 themes/anna/archetypes/default.md create mode 100644 themes/anna/assets/sass/main.scss create mode 100644 themes/anna/assets/sass/reset.css create mode 100644 themes/anna/layouts/404.html create mode 100644 themes/anna/layouts/_default/baseof.html create mode 100644 themes/anna/layouts/_default/list.html create mode 100644 themes/anna/layouts/_default/single.html create mode 100644 themes/anna/layouts/index.html create mode 100644 themes/anna/layouts/partials/footer.html create mode 100644 themes/anna/layouts/partials/head.html create mode 100644 themes/anna/layouts/partials/header.html create mode 100644 themes/anna/layouts/portfolio/single.html create mode 100644 themes/anna/static/logo.svg create mode 100644 themes/anna/theme.toml diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..579b407 --- /dev/null +++ b/config.toml @@ -0,0 +1,8 @@ +baseURL = "http://example.org/" +languageCode = "fr-fr" +title = "Anna Uetwiller - Architecte" +theme = "anna" + +[[menu.main]] + name = "Accueil" + url = "/" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..80704cc --- /dev/null +++ b/content/_index.md @@ -0,0 +1,6 @@ +--- +title: "" +date: 2020-07-04T15:40:03+02:00 +--- + +# Hello there diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..3d8cd2e --- /dev/null +++ b/content/contact.md @@ -0,0 +1,10 @@ +--- +title: "Contact" +date: 2020-07-04T16:17:52+02:00 +menu: "main" +--- +# Contact + +Adresse: 16, rue du Ziegelfeld, 67100 STRASBOURG +Téléphone: [0678825821](tel:0678825821) +email: anna.tsoi.fr@gmail.com diff --git a/content/portfolio/CV.md b/content/portfolio/CV.md new file mode 100644 index 0000000..204f0ab --- /dev/null +++ b/content/portfolio/CV.md @@ -0,0 +1,6 @@ +--- +title: "CV" +date: 2020-07-04T15:09:49+02:00 +menu: "main" +--- + diff --git a/content/portfolio/modelisation.md b/content/portfolio/modelisation.md new file mode 100644 index 0000000..6e5eb35 --- /dev/null +++ b/content/portfolio/modelisation.md @@ -0,0 +1,6 @@ +--- +title: "Modelisation" +date: 2020-07-04T15:09:42+02:00 +menu: "main" +--- + diff --git a/content/portfolio/realisation.md b/content/portfolio/realisation.md new file mode 100644 index 0000000..896789a --- /dev/null +++ b/content/portfolio/realisation.md @@ -0,0 +1,6 @@ +--- +title: "Realisation" +date: 2020-07-04T15:09:37+02:00 +menu: "main" +--- + diff --git a/themes/anna/LICENSE b/themes/anna/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/themes/anna/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/anna/archetypes/default.md b/themes/anna/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/anna/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/anna/assets/sass/main.scss b/themes/anna/assets/sass/main.scss new file mode 100644 index 0000000..c6bf615 --- /dev/null +++ b/themes/anna/assets/sass/main.scss @@ -0,0 +1,106 @@ +@import 'reset'; + +body { + background-color: #e6e6e6; + margin: 0; + display: grid; +} + +@media (min-width: 1025px) { + body { + grid-template-columns: 250px; + grid-template-areas: 'menu title' 'menu content'; + } + + #navbar { + height: 100vh; + position: fixed; + padding: 1rem; + margin-right: 1rem; + } +} + +@media (max-width: 1024px) { + body { + grid-template-areas: 'title' 'menu' 'content'; + } + + #navbar { + width: 100%; + margin-bottom: 1rem; + } +} + +#title { + grid-area: title; + display: flex; + flex-direction: column; + align-items: center; + margin-top: 1rem; + margin-bottom: 2rem; + + h1 { + margin: 0; + font-size: xx-large; + } + + h2 { + margin: 0; + font-size: x-large; + } +} + +#navbar { + display: flex; + flex-direction: column; + align-items: center; + background-color: #eadecc; + list-style: none; + grid-area: menu; + + li { + &:not(:first-child) { + margin-top: 1rem; + } + + &:last-child { + margin-bottom: 1rem; + } + } +} + +#logo { + width: 150px; +} + +#content { + grid-area: content; + display: flex; + flex-direction: column; + align-items: center; +} + +h1, h2, h3 { + color: #8c877d; +} + +.galery { + display: flex; + justify-content: center; + flex-wrap: wrap; + + a img { + margin: 0.5rem; + } +} + +#contact { + background-color: #f6f1ea; + width: 100%; + + p { + margin: 1rem; + font-size: large; + color: #8c877d; + } +} diff --git a/themes/anna/assets/sass/reset.css b/themes/anna/assets/sass/reset.css new file mode 100644 index 0000000..e29c0f5 --- /dev/null +++ b/themes/anna/assets/sass/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/themes/anna/layouts/404.html b/themes/anna/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/anna/layouts/_default/baseof.html b/themes/anna/layouts/_default/baseof.html new file mode 100644 index 0000000..abd1ee2 --- /dev/null +++ b/themes/anna/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/anna/layouts/_default/list.html b/themes/anna/layouts/_default/list.html new file mode 100644 index 0000000..68970fa --- /dev/null +++ b/themes/anna/layouts/_default/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+ {{ .Content }} + {{ range .Pages }} + {{ .Title }} + {{ end }} +
+
+
+{{ end }} diff --git a/themes/anna/layouts/_default/single.html b/themes/anna/layouts/_default/single.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/themes/anna/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/themes/anna/layouts/index.html b/themes/anna/layouts/index.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/themes/anna/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/themes/anna/layouts/partials/footer.html b/themes/anna/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/anna/layouts/partials/head.html b/themes/anna/layouts/partials/head.html new file mode 100644 index 0000000..70eaf6f --- /dev/null +++ b/themes/anna/layouts/partials/head.html @@ -0,0 +1,11 @@ + + {{ .Site.Title }} + + + + + {{ $styles := resources.Get "sass/main.scss" | toCSS }} + + + + diff --git a/themes/anna/layouts/partials/header.html b/themes/anna/layouts/partials/header.html new file mode 100644 index 0000000..ccf1e59 --- /dev/null +++ b/themes/anna/layouts/partials/header.html @@ -0,0 +1,18 @@ +
+ +
+

Anna Uetwiller

+

Architecte - Dessinatrice

+
+
diff --git a/themes/anna/layouts/portfolio/single.html b/themes/anna/layouts/portfolio/single.html new file mode 100644 index 0000000..ac65c29 --- /dev/null +++ b/themes/anna/layouts/portfolio/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+
+ {{ with .Params.images }} +
+ +
+ {{ end }} + {{ .Content }} +
+
+
+{{ end }} diff --git a/themes/anna/static/logo.svg b/themes/anna/static/logo.svg new file mode 100644 index 0000000..8131d77 --- /dev/null +++ b/themes/anna/static/logo.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/anna/theme.toml b/themes/anna/theme.toml new file mode 100644 index 0000000..cd446a7 --- /dev/null +++ b/themes/anna/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Anna" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""