Compare commits

...

2 Commits

Author SHA1 Message Date
Sam ff1bcfd6ab Update css for page content and modify divs 2024-08-01 15:44:02 +01:00
Sam 4affda2e81 Update license info 2024-08-01 15:42:19 +01:00
5 changed files with 22 additions and 21 deletions

3
content/license.md Normal file
View File

@ -0,0 +1,3 @@
# License
All work on this site is licensed using [unlicense](https://unlicense.org/). This effectively means all of the content hosted on https://bitlab21.com and in the bitlab21.com repository at https://git.bitlab21.com/sam/bitlab21.com is in the public domain. You can use this material as you wish. Attribution is appreciated, but not required.

View File

@ -7,8 +7,4 @@
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"
></script> ></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1/dist/echarts.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1/dist/echarts.min.js"></script>
<div class="main-page"> {{ template "partials/body.html" . }}
<html lang="{{ .Site.LanguageCode }}">
{{ template "partials/body.html" . }}
</html>
</div>

View File

@ -1,8 +1,7 @@
<body> <body>
{{ partial "header.html" . }} <div class="page-container">
<main class="main-content"> {{ partial "header.html" . }}
{{- block "main" . }} <main class="main-content">{{- block "main" . }} {{ end -}}</main>
{{ end -}} {{ partial "footer.html" . }}
</main> </div>
{{ partial "footer.html" . }}
</body> </body>

View File

@ -1,8 +1,8 @@
<footer> <footer>
<div id="footer"> <div id="footer">
<p> <p>
2023 BitLab21. Uncopywrited. Bitlab21.com by Sam Chance.
<a href="https://unlicense.org/">View License.</a> <a href="/license">Uncopywrited.</a>
</p> </p>
</div> </div>
</footer> </footer>

View File

@ -66,19 +66,26 @@ body {
color: var(--text-color); color: var(--text-color);
} }
.main-page { .page-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
} }
.main-content { .main-content {
flex-grow: 1; flex: 1;
}
.page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
} }
a { a {
text-decoration: none; text-decoration: none;
color: var(--link-color); color: var(--link-color);
text-decoration: underline;
} }
a:hover { a:hover {
@ -107,6 +114,7 @@ a:hover {
.profile-img { .profile-img {
margin-right: 20px; margin-right: 20px;
margin-left: 20px;
} }
.profile-img img { .profile-img img {
@ -134,7 +142,6 @@ a:hover {
} }
} }
/* Articles */
.main-article { .main-article {
padding: var(--content-padding); padding: var(--content-padding);
width: var(--article-max-width); width: var(--article-max-width);
@ -408,15 +415,11 @@ footer {
background-color: var(--footer-background-color); background-color: var(--footer-background-color);
color: var(--text-color); color: var(--text-color);
padding: 20px; padding: 20px;
height: 10vh;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
footer a {
color: #f2f2f2;
transition: background-color 0.3s ease;
}
footer a:hover { footer a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;