Skip to content

Commit

Permalink
Improved design
Browse files Browse the repository at this point in the history
  • Loading branch information
Jos Gesenhues committed Mar 3, 2024
1 parent 87f7896 commit 07f8068
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
33 changes: 17 additions & 16 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<html lang="{{ site.lang | default: " en-US" }}">

<head>
<meta charset="UTF-8">

{% seo %}
{% seo %}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style"
type="text/css" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
</head>
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>
</head>

<header class="page-header" role="banner">
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
</header>
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>

<main id="content" class="main-content" role="main">
{{ content }}

<footer class="site-footer">
</footer>
<div class="center">
<div class="img"> <img src="/assets/biene.png" alt="Biene"></div>
{{ content }}
</div>
<footer class="site-footer">
</footer>
</main>
</body>
</body>

</html>
10 changes: 0 additions & 10 deletions _layouts/page.html

This file was deleted.

Binary file added assets/biene.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
---

@import "{{ site.theme }}";
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
}

.img {
max-width: 50%;
height: auto;
left: 50%;
transform: translateX(50%);
}
.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: normal; color: #7b2525}
2 changes: 1 addition & 1 deletion index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults

layout: page
layout: default
---
# 2024 ist ein Bienenbarjahr!

Expand Down

0 comments on commit 07f8068

Please sign in to comment.