aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/overrides
diff options
context:
space:
mode:
authorEvan Steinkerchner <esteinkerchner@gmail.com>2022-03-22 18:22:16 -0400
committerEvan Steinkerchner <esteinkerchner@gmail.com>2022-03-22 18:22:16 -0400
commit828582351780582558cb0f4a475ef9eeb4dc1299 (patch)
treeec165822c987924f30e2b8bdcebf3729ec772227 /docs/overrides
parent6f9a74ddcf4833e50df4033ae4291d718af784d9 (diff)
downloadhomer-828582351780582558cb0f4a475ef9eeb4dc1299.tar.gz
homer-828582351780582558cb0f4a475ef9eeb4dc1299.tar.zst
homer-828582351780582558cb0f4a475ef9eeb4dc1299.zip
Created new custom home page, moved Getting started to its own page, fixed requirements.txt, added docs/README.md
Diffstat (limited to 'docs/overrides')
-rw-r--r--docs/overrides/assets/stylesheets/home.css81
-rw-r--r--docs/overrides/home.html49
2 files changed, 130 insertions, 0 deletions
diff --git a/docs/overrides/assets/stylesheets/home.css b/docs/overrides/assets/stylesheets/home.css
new file mode 100644
index 0000000..76f585b
--- /dev/null
+++ b/docs/overrides/assets/stylesheets/home.css
@@ -0,0 +1,81 @@
1.hero {
2 padding: 32px 2.8rem;
3 color: var(--md-primary-bg-color);
4 background: linear-gradient(
5 to bottom,
6 var(--md-primary-fg-color),
7 hsla(160deg, 47%, 55%, 1) 99%,
8 #fff 99%
9 );
10}
11
12.hero-container {
13 display: flex;
14 flex-direction: row;
15 align-items: center;
16 justify-content: space-between;
17 padding: 1rem 0;
18}
19
20.hero-content {
21 flex: 0 0 40%;
22}
23
24.hero-title {
25 height: 4rem;
26 display: flex;
27 flex-direction: row;
28 align-items: center;
29}
30
31.hero-title > img {
32 max-height: 100%;
33 width: auto;
34}
35
36.hero-title > h1 {
37 margin: 0 0 0 0.5rem;
38 font-size: 4rem;
39 line-height: 1;
40 color: currentColor;
41 font-weight: 700;
42}
43
44.hero-image {
45 width: 17rem;
46 height: auto;
47 flex: 0 0 50%;
48 transform: perspective(300px) rotate3D(0, 1, 0, -5deg);
49 box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
50}
51
52.hero .md-button {
53 margin-top: 0.5rem;
54 margin-right: 0.5rem;
55 color: var(--md-primary-bg-color);
56}
57
58.hero .md-button-primary {
59 background-color: var(--md-primary-bg-color);
60 color: hsla(280deg, 37%, 48%, 1);
61 border-color: var(--md-primary-bg-color);
62}
63
64.hero .md-button:focus,
65.hero .md-button:hover {
66 background-color: var(--md-accent-fg-color);
67 color: var(--md-default-bg-color);
68 border-color: var(--md-accent-fg-color);
69}
70
71.md-header {
72 position: initial;
73}
74
75.md-main__inner {
76 margin: 0;
77}
78
79.md-content {
80 display: none;
81}
diff --git a/docs/overrides/home.html b/docs/overrides/home.html
new file mode 100644
index 0000000..81ef4aa
--- /dev/null
+++ b/docs/overrides/home.html
@@ -0,0 +1,49 @@
1{% extends "base.html" %}
2
3{% block extrahead %}
4<link
5 rel="stylesheet"
6 href="{{ 'overrides/assets/stylesheets/home.css' | url }}" />
7{% endblock %}
8
9{% block tabs %}
10{{ super() }}
11
12<section class="hero">
13 <div class="md-grid md-typeset hero-container">
14 <div class="hero-content">
15 <div class="hero-title">
16 <img src="images/logo.png" draggable="false" />
17 <h1>Homer</h1>
18 </div>
19 <p>
20 A dead simple static <strong>HOM</strong>epage for your serv<strong>ER</strong>
21 to keep your services on hand, from a simple <code>yaml</code> configuration file.
22 </p>
23 <a
24 href="{{ page.next_page.url | url }}"
25 title="{{ page.next_page.title | striptags }}"
26 class="md-button md-button-primary"
27 >
28 Get started
29 </a>
30 <a
31 href="{{ config.repo_url }}"
32 title="{{ lang.t('source.link.title') }}"
33 class="md-button"
34 >
35 Go to GitHub
36 </a>
37 </div>
38 <img class="hero-image" src="images/screenshot.png" draggable="false" />
39 </div>
40</section>
41
42<div>
43 TODO!
44</div>
45{% endblock %}
46
47{% block site_nav %}{% endblock %}
48{% block content %}{% endblock %}
49{% block footer %}{% endblock %}