Skip to content

Commit 334c98a

Browse files
committed
remove black screen intro
1 parent 30a361b commit 334c98a

12 files changed

+21
-97
lines changed

static/general.css

+10-51
Original file line numberDiff line numberDiff line change
@@ -390,64 +390,23 @@ td {
390390
}
391391

392392
/* home */
393-
.home-intro {
394-
height: 90vh;
395-
display: flex;
396-
flex-direction: column;
397-
justify-content: space-between;
398-
align-items: center;
399-
}
400-
@media (max-width: 960px) {
401-
.home-intro {
402-
height: calc(100vh - 76px);
403-
}
393+
.home-about {
394+
background: var(--teal-600);
395+
color: #fff;
404396
}
405397

406-
.home-intro-text {
407-
font-size: 40px;
408-
text-align: center;
409-
max-width: 720px;
410-
margin-top: 32px;
398+
.home-about-intro {
399+
font-size: var(--lead-size);
400+
padding: 100px 180px;
411401
}
412402
@media (max-width: 960px) {
413-
.home-intro-text {
414-
font-size: 24px;
403+
.home-about-intro {
415404
padding: 8px;
416405
}
417406
}
418407

419-
@keyframes movedown {
420-
from {
421-
transform: translateY(0);
422-
}
423-
424-
to {
425-
transform: translateY(32px);
426-
}
427-
}
428-
.home-intro-icon {
429-
margin-bottom: 32px;
430-
animation-direction: alternate;
431-
animation-duration: 0.5s;
432-
animation-iteration-count: infinite;
433-
animation-name: movedown;
434-
animation-timing-function: ease-in;
435-
}
436-
437-
.home-intro-icon a {
438-
font-size: var(--lead-size);
439-
color: #000;
440-
display: inline-block;
441-
transform: rotate(90deg);
442-
}
443-
444-
.home-intro-icon a {
445-
text-decoration: none;
446-
}
447-
448-
.home-about {
449-
background: var(--teal-600);
450-
color: #fff;
408+
.home-about-intro p {
409+
max-width: 600px;
451410
}
452411

453412
.home-about-content {
@@ -466,7 +425,7 @@ td {
466425

467426
.home-about-image {
468427
width: 300px;
469-
margin-top: 180px;
428+
margin-top: 100px;
470429
margin-bottom: 80px;
471430
}
472431

templates/about.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}about — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>About</h1>

templates/blog-page.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}{{ page.title }} — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main class="blog">
107
<article itemscope itemtype="http://schema.org/BlogPosting">

templates/blog-section.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}blog — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main class="blog">
107
<h1>Blog</h1>

templates/book-page.html

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
</style>
1313
{% endblock extra_head %}
1414

15-
{% block intro %}
16-
{% endblock intro %}
17-
1815
{% block content %}
1916
<main class="books">
2017
<h1>{{ page.title }}</h1>

templates/book-section.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}books — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main class="books">
107
<h1>Books</h1>

templates/how-it-works.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}how it works — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>How it works</h1>

templates/index.html

+11-16
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,8 @@
1717
</head>
1818
<body>
1919

20-
{% block intro %}
21-
<section class="home-intro">
22-
<div class="home-intro-balancer">
23-
</div>
24-
<div class="home-intro-text">
25-
We help independent authors turn their
26-
words into public domain books.
27-
</div>
28-
<div class="home-intro-icon">
29-
<a href="#home">»</a>
30-
</div>
31-
</section>
32-
{% endblock intro %}
33-
3420
<header id="home">
35-
<a href="/#home" class="logo">
21+
<a href="/" class="logo">
3622
<h1>laniakea books</h1>
3723
</a>
3824
<nav>
@@ -48,10 +34,19 @@ <h1>laniakea books</h1>
4834

4935
{% block content %}
5036
<section class="home-about">
51-
<div class="home-about-content">
37+
<div class="home-about-intro">
5238
<div class="home-about-image">
5339
{% include "telescope.html" %}
5440
</div>
41+
<p>
42+
We help independent authors turn their
43+
words into public domain books.
44+
</p>
45+
</div>
46+
47+
<hr>
48+
49+
<div class="home-about-content">
5550
<p>
5651
We support independent authors and free knowledge by
5752
publishing books in the public domain.

templates/lets-chat.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}let’s chat — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>Let’s chat</h1>

templates/open.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}transparency — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>Open Operations</h1>

templates/philosophy.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}philosophy — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>Philosophy</h1>

templates/pricing.html

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block title %}pricing — laniakea books{% endblock title %}
44

5-
{% block intro %}
6-
{% endblock intro %}
7-
85
{% block content %}
96
<main>
107
<h1>Pricing</h1>

0 commit comments

Comments
 (0)