Skip to content

Commit bc328b3

Browse files
committed
Update hero section and button styling: Improve layout, fix description styling, and refactor buttons
1 parent d59ac7c commit bc328b3

File tree

3 files changed

+11
-26
lines changed

3 files changed

+11
-26
lines changed

content/contents.lr

+4-10
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,18 @@ title:
99

1010
We have been building <span class="has-text-forest-green">free software</span> at <span class="has-text-gold">Creative Commons</span> for over a decade.
1111
----
12-
description:
13-
14-
We work on code and products that support digital creativity and sharing, from usability of our legal tools to enabling discovery of CC-licensed content.
15-
----
1612
links:
1713

18-
<!-- Container for the hero section links -->
14+
<p class="hero-description">We work on code and products that support digital creativity and sharing, from usability of our legal tools to enabling discovery of CC-licensed content.</p>
1915
<div class="hero-links">
2016
<!-- Button linking to the developer community page -->
2117
<a class="button small is-success row" href="/community">
2218
Join the Developer Community
2319
</a>
20+
</div>
2421

25-
<!-- Informational text about the purpose of the site -->
26-
<div class = "hero-notice">
27-
This site is for developers looking to contribute, but anyone can use CC tools to share their works.
28-
</div>
29-
22+
<p class="hero-description">This site is for developers looking to contribute, but anyone can use CC tools to share their works.</p>
23+
<div class="hero-links">
3024
<!-- Button linking to the Creative Commons "Share your work" page -->
3125
<a class="button small row" href="https://creativecommons.org/share-your-work/">
3226
Share your work using our licenses/tools

themes/vocabulary_theme/templates/blocks/hero.html

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ <h1>
77
</div>
88
<div class="columns margin-right-0">
99
<div class="column is-5">
10-
<p class="hero-description">
11-
{{ this.description }}
12-
</p>
1310
{{ this.links }}
1411
</div>
1512
</div>

webpack/sass/home-page.scss

+7-13
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,18 @@
1919
@extend .margin-vertical-normal;
2020
@extend .padding-horizontal-big;
2121

22-
.hero-notice {
23-
@extend .body-bigger;
24-
@extend .padding-top-normal;
25-
@extend .has-text-dark-slate-gray;
26-
}
27-
2822
// Button styling within the hero links
2923
.button {
3024
@extend .margin-top-normal;
3125
text-decoration: none;
32-
display: inline-block; /* Allow the button to wrap around the text */
33-
width: 100%; // Full width of the container
34-
height: fit-content; // Fit the content within the button
35-
max-width: 300px; // Maximum width for buttons
26+
display: inline-block; // Allow the button to wrap around the text
27+
width: 100%; // Full width of the container
28+
height: fit-content; // Fit the content within the button
29+
max-width: 300px; // Maximum width for buttons
3630
box-sizing: border-box; // Include padding in width calculation
37-
text-align: center; // Center text inside buttons
38-
line-height: 1.2; // Set line height for readability
39-
white-space: normal; // Allow text wrapping within buttons
31+
text-align: center; // Center text inside buttons
32+
line-height: 1.2; // Set line height for readability
33+
white-space: normal; // Allow text wrapping within buttons
4034
}
4135
}
4236

0 commit comments

Comments
 (0)