4
0
mirror of https://git.coop/cotech/website.git synced 2025-06-26 16:40:52 +00:00

Style homepage hero

This commit is contained in:
Chris Lowis
2025-06-20 14:49:33 +01:00
parent 1e60c58a6e
commit b4faded4b3
2 changed files with 48 additions and 12 deletions

View File

@ -4,20 +4,18 @@
<body> <body>
{% include header.html %} {% include header.html %}
<div> <section class="hero">
<section> <h1 class="hero_title">Cooperative Technologists</h1>
<h1>Cooperative Technologists</h1> <p class="hero_body">Creative technology companies, fully owned and controlled by
<p>Creative technology companies, fully owned and controlled by the people who do the work.<br />
the people who do the work. Cooperative ownership means tech Cooperative ownership means tech thats better for its workers and customers.</p>
thats better for its workers and customers.</p>
<span> <span class="hero_button">
<a href="/about#manifesto">Our manifesto</a> <a href="/about#manifesto">Our manifesto</a>
</span> </span>
</section> </section>
{{ content }} {{ content }}
</div>
{% include footer.html %} {% include footer.html %}
</body> </body>

View File

@ -50,3 +50,41 @@ h1, h2, h3, h4, h5, h6 {
font-size: 1rem; font-size: 1rem;
letter-spacing: 0.05em; letter-spacing: 0.05em;
} }
.hero {
width: 100%;
padding: 8rem;
background-image: url(/assets/img/banner-collage.jpg);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
text-align: center;
}
.hero_body {
font-size: 1.5em;
font-weight: bold;
line-height: 1.6;
color: #ffffff;
max-width: 50ch;
}
.hero_title {
display: none;
}
.hero_button {
cursor: pointer;
padding: 1rem;
border: 1px solid white;
border-radius: 4px;
}
.hero_button a {
color: white;
}