update style, add div hyperlinks

This commit is contained in:
Kaisa Marysia 2025-04-12 11:00:36 +02:00
parent dfa924a58b
commit 75cc059556
5 changed files with 116 additions and 7 deletions

0
1 Normal file
View file

View file

@ -9,6 +9,7 @@ highlight_code = true
[extra] [extra]
name = "Kasiandra Richmond" name = "Kasiandra Richmond"
description = "Cyber Witch"
# Links will be set here. Enter the Title which should be shown on the site # Links will be set here. Enter the Title which should be shown on the site
# icon is the svg filename (icon.svg) which are stored in static/img/ # icon is the svg filename (icon.svg) which are stored in static/img/
@ -19,6 +20,22 @@ social = [
{title = 'Forgejo', icon = 'git', link = '#git'}, {title = 'Forgejo', icon = 'git', link = '#git'},
{title = 'Mastodon', icon = 'fediverse', link = '#fediverse'}, {title = 'Mastodon', icon = 'fediverse', link = '#fediverse'},
{title = 'gitea', icon = 'git', link = 'https://example.com'}, {title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
{title = 'gitea', icon = 'git', link = 'https://example.com'},
] ]
# Background Configurations # Background Configurations
@ -29,7 +46,7 @@ social = [
backgroundcolor = "#acab00" backgroundcolor = "#acab00"
backgroundimage = "img/background-sonic.svg" # [background-sonic|background-chess_small|background-chess_big|background-intro] backgroundimage = "img/background-sonic.svg" # [background-sonic|background-chess_small|background-chess_big|background-intro]
backgroundrepeat = "yes" # [yes|no] backgroundrepeat = "no" # [yes|no]
backgroundvignette = "yes" # [yes|no] backgroundvignette = "yes" # [yes|no]
# if you want to use a header, set the header option to yes # if you want to use a header, set the header option to yes

View file

@ -7,7 +7,7 @@ body {
.container { .container {
width: 100vw; width: 100vw;
height: 100vh; height: 100vw;
margin: 0px; margin: 0px;
} }
@ -27,6 +27,27 @@ body {
border-style: solid; border-style: solid;
border-color: black; border-color: black;
box-shadow: 8px 8px 0px black; box-shadow: 8px 8px 0px black;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.content-social-name {
font-weight: bold;
font-family: sans;
font-size: xx-large;
text-transform: uppercase;
}
.content-social-desc {
font-weight: bold;
font-family: sans;
font-size: large;
text-transform: uppercase;
}
[class*="-txt"] {
width: 80%;
} }
.content-social-profile img { .content-social-profile img {
@ -38,11 +59,28 @@ body {
position: relative; position: relative;
} }
.div-link {
position: relative;
}
.div-link a {
position: absolute;
width: 100%;
height: 38px;
top: 0;
left: 0;
text-decoration: none;
z-index: 10;
background-color: #FFF;
opacity: 0;
filter: alpha(opacity=1);
}
.footer { .footer {
width: 100%; width: 100%;
background: white; background: white;
text-align: center; text-align: center;
position: absolute; position: fixed;
height: 28px; height: 28px;
bottom: 0; bottom: 0;
} }
@ -74,3 +112,8 @@ body {
width: 20%; width: 20%;
float: left; float: left;
} }
p {
margin-bottom: 10px;
margin-top: 5px;
}

View file

@ -7,7 +7,7 @@ body {
.container { .container {
width: 100vw; width: 100vw;
height: 100vh; height: 100vw;
margin: 0px; margin: 0px;
} }
@ -27,6 +27,27 @@ body {
border-style: solid; border-style: solid;
border-color: black; border-color: black;
box-shadow: 8px 8px 0px black; box-shadow: 8px 8px 0px black;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.content-social-name {
font-weight: bold;
font-family: sans;
font-size: xx-large;
text-transform: uppercase;
}
.content-social-desc {
font-weight: bold;
font-family: sans;
font-size: large;
text-transform: uppercase;
}
[class*="-txt"] {
width: 80%;
} }
.content-social-profile img { .content-social-profile img {
@ -38,11 +59,28 @@ body {
position: relative; position: relative;
} }
.div-link {
position: relative;
}
.div-link a {
position: absolute;
width: 100%;
height: 38px;
top: 0;
left: 0;
text-decoration: none;
z-index: 10;
background-color: #FFF;
opacity: 0;
filter: alpha(opacity=1);
}
.footer { .footer {
width: 100%; width: 100%;
background: white; background: white;
text-align: center; text-align: center;
position: absolute; position: fixed;
height: 28px; height: 28px;
bottom: 0; bottom: 0;
} }
@ -74,3 +112,8 @@ body {
width: 20%; width: 20%;
float: left; float: left;
} }
p {
margin-bottom: 10px;
margin-top: 5px;
}

View file

@ -7,9 +7,9 @@
</head> </head>
{% if config.extra.backgroundrepeat == "yes" %} {% if config.extra.backgroundrepeat == "yes" %}
<body style="background-image: url({{ config.extra.backgroundimage }}); background-repeat: {{config.extra.backgroundrepeat }};"> <body style="background-image: url({{ config.extra.backgroundimage }}); background-repeat: repeat;">
{% else %} {% else %}
<body style="background-image: url({{ config.extra.backgroundimage }}); background-repeat: {{config.extra.backgroundrepeat }}; background-size: cover;"> <body style="background-image: url({{ config.extra.backgroundimage }}); background-repeat: no-repeat; background-size: cover;">
{% endif %} {% endif %}
{% if config.extra.backgroundvignette == "yes" %} {% if config.extra.backgroundvignette == "yes" %}
<div class="container" style="background: {{ config.extra.backgroundcolor}}40; box-shadow: inset 0 0 2000px"> <div class="container" style="background: {{ config.extra.backgroundcolor}}40; box-shadow: inset 0 0 2000px">
@ -29,9 +29,15 @@
<div class="content-social-name"> <div class="content-social-name">
<p>{{ config.extra.name }}</p> <p>{{ config.extra.name }}</p>
</div> </div>
<div class="content-social-desc">
<p>{{ config.extra.description }}</p>
</div>
{% if config.extra.social %} {% if config.extra.social %}
{% for links in config.extra.social %} {% for links in config.extra.social %}
<div class="content-social-link-{{ links.title }}"> <div class="content-social-link-{{ links.title }}">
<div class="div-link">
<a href="{{ links.link }}"></a>
</div>
<div class="{{ links.title }}-img"> <div class="{{ links.title }}-img">
<a class="linkimg" href="{{ links.link }}"><img src="/img/{{ links.icon }}.svg"alt="Socialmedia Icon for {{links.icon}}" style="width: 25px; filter: invert(75%)"</img></a> <a class="linkimg" href="{{ links.link }}"><img src="/img/{{ links.icon }}.svg"alt="Socialmedia Icon for {{links.icon}}" style="width: 25px; filter: invert(75%)"</img></a>
</div> </div>