Skip to content

Commit 71b336a

Browse files
committed
Add hero section for home page
1 parent cedafd9 commit 71b336a

13 files changed

+72
-30
lines changed

content/comments-solid.png

-5.16 KB
Binary file not shown.

content/contents.lr

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ _model: home
33
_template: home.html
44
---
55
block_content:
6+
67
#### hero ####
7-
title: Creative Commons Title
8-
----
9-
content:
10-
Creative Commons content
8+
_template: blocks/hero.html
-7.03 KB
Binary file not shown.

content/github.svg

+47
Loading

content/keyboard-solid.png

-2.84 KB
Binary file not shown.

content/language-solid.png

-5.98 KB
Binary file not shown.

content/laptop-code-solid.png

-3.61 KB
Binary file not shown.

content/pencil-ruler-solid.png

-4.83 KB
Binary file not shown.

content/vials-solid.png

-2.94 KB
Binary file not shown.

flowblocks/hero.ini

-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
11
[block]
22
name = Hero
3-
label = {{ this.title }}
4-
5-
[fields.title]
6-
label = Title
7-
type = string
8-
9-
[fields.content]
10-
label = Content
11-
type = text
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
{% block title %}{{ this.title }}{% endblock %}
2-
<div>
3-
{{ this.content }}
4-
</div>
1+
<section>
2+
<h1 class="column is-9 is-paddingless">
3+
We have been building
4+
<span class="has-text-forest-green">free software</span> at
5+
<span class="has-text-gold">Creative Commons</span> for over a decade.
6+
</h1>
7+
<div class="columns">
8+
<div class="column is-one-third">
9+
<p class="body-bigger margin-top-big">
10+
We work on code and products that support digital creativity and
11+
sharing, from usability of our legal tools to enabling discovery of
12+
CC-licensed content.
13+
</p>
14+
<a class="button small is-info margin-top-bigger" href="/community">Join the Developer Community</a>
15+
<br />
16+
<a class="button small margin-top-normal" href="https://twitter.com/creativecommons"><i
17+
class="icon twitter margin-right-small"></i>Follow us on twitter</a>
18+
</div>
19+
<div class="column">
20+
<img src="./github.svg" />
21+
</div>
22+
</div>
23+
</section>

themes/vocabulary_theme/templates/layout.html

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
<div class="page py-3">
150150
<h1 class="page-title pb-3 mb-4">{% block header %}{{ this.title }}{% endblock %}</h1>
151151
{% block body %}{% endblock %}
152-
<a id="back-to-top" href="#top" class="btn btn-dark btn-sm" role="button">Back to top</a>
153152
</div>
154153
</div>
155154
</div>

webpack/sass/main.scss

-12
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ h2 {
5858
}
5959
}
6060

61-
.page-title {
62-
background-color: $white;
63-
border: {
64-
bottom-style: solid;
65-
color: $brand-theme;
66-
width: 10px;
67-
}
68-
padding-left: 0px;
69-
font-weight: 600;
70-
color: $text-color;
71-
}
72-
7361
@mixin large-border-style {
7462
background-color: $white;
7563
padding-left: 0px;

0 commit comments

Comments
 (0)