diff --git a/config.toml b/config.toml index 4629822..0207885 100644 --- a/config.toml +++ b/config.toml @@ -8,6 +8,8 @@ highlight_code = true [extra] +name = "Foo Bar" + social = [ {title = 'Mail', icon = 'mail', link = 'mailto:foo@bar.de'}, {title = 'Git', icon = 'git', link = '#git'}, @@ -15,6 +17,9 @@ social = [ {title = 'Web', icon = 'web', link = 'https://example.com'}, ] +backgroundcolor = "#10A1EE40" +backgroundimage = "img/background.svg" + [[extra.footer]] copyleft = 'Kasia-Marysia' zola = 'Created With Rust' diff --git a/public/img/background.svg b/public/img/background.svg new file mode 100644 index 0000000..97e8165 --- /dev/null +++ b/public/img/background.svg @@ -0,0 +1,53 @@ + + + + diff --git a/public/img/fediverse.svg b/public/img/fediverse.svg new file mode 100644 index 0000000..dbe3213 --- /dev/null +++ b/public/img/fediverse.svg @@ -0,0 +1 @@ + diff --git a/public/img/git.svg b/public/img/git.svg new file mode 100644 index 0000000..dbe3213 --- /dev/null +++ b/public/img/git.svg @@ -0,0 +1 @@ + diff --git a/public/img/mail.svg b/public/img/mail.svg new file mode 100644 index 0000000..ba15719 --- /dev/null +++ b/public/img/mail.svg @@ -0,0 +1 @@ + diff --git a/public/img/profile.png b/public/img/profile.png new file mode 100644 index 0000000..f8073e2 Binary files /dev/null and b/public/img/profile.png differ diff --git a/public/img/web.svg b/public/img/web.svg new file mode 100644 index 0000000..dbe3213 --- /dev/null +++ b/public/img/web.svg @@ -0,0 +1 @@ + diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..e4cee7b --- /dev/null +++ b/public/style.css @@ -0,0 +1,22 @@ +body { + margin: 0px; + width: 100%; + height: 100%; + display: flex; + background-repeat: repeat-y; +} + +.container { + width: 100vw; + height: 100vh; + margin: 0px; +} + +.content-social-profile img { + max-width: 200px; + max-height: 200px; + border-radius: 50%; +} + + + diff --git a/static/img/background.svg b/static/img/background.svg new file mode 100644 index 0000000..97e8165 --- /dev/null +++ b/static/img/background.svg @@ -0,0 +1,53 @@ + + + + diff --git a/static/img/profile.png b/static/img/profile.png new file mode 100644 index 0000000..f8073e2 Binary files /dev/null and b/static/img/profile.png differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..e4cee7b --- /dev/null +++ b/static/style.css @@ -0,0 +1,22 @@ +body { + margin: 0px; + width: 100%; + height: 100%; + display: flex; + background-repeat: repeat-y; +} + +.container { + width: 100vw; + height: 100vh; + margin: 0px; +} + +.content-social-profile img { + max-width: 200px; + max-height: 200px; + border-radius: 50%; +} + + + diff --git a/templates/index.html b/templates/index.html index 78da6e9..f267d8a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,16 +5,24 @@ {% block title %}{{ config.title }}{% endblock title %} - -
+ +

Here comes the banner

+
+ +
+
+

{{ config.extra.name }}

+
{% if config.extra.social %} {% for links in config.extra.social %} + {% endfor %} {% endif %}