Skip to content

Commit a9be63a

Browse files
authored
Merge pull request creativecommons#810 from MohdMuslim92/feature/share-button
Add prominent link to CC tools and clarify site purpose (Fixes creativecommons#793)
2 parents 8b1f5bc + 3684d59 commit a9be63a

File tree

4 files changed

+26
-15
lines changed

4 files changed

+26
-15
lines changed

content/contents.lr

+13-6
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,22 @@ 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

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>
15+
<div class="hero-links">
16+
<!-- Button linking to the developer community page -->
17+
<a class="button small is-success row" href="/community">
18+
Join the Developer Community
19+
</a>
20+
</div>
21+
22+
<p class="hero-description">This site is for developers looking to contribute, but anyone can use CC tools to share their works.</p>
1823
<div class="hero-links">
19-
<a class="button small is-success row" href="/community">Join the Developer Community</a>
20-
<a class="button small row" href="https://twitter.com/cc_opensource"><i class="icon twitter"></i>Follow us on twitter</a>
24+
<!-- Button linking to the Creative Commons "Share your work" page -->
25+
<a class="button small row" href="https://creativecommons.org/share-your-work/">
26+
Share your work using our licenses/tools
27+
</a>
2128
</div>
2229

2330
#### get-involved ####

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>

themes/vocabulary_theme/templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ <h5 class="b-header">Subscribe to our newsletter</h5>
238238
<input type="submit" value="subscribe" class="button small">
239239
</form>
240240
</div>
241-
<div class="attribution margin-top-bigger">
241+
<div class="attribution margin-top-bigger">
242242
<p class="caption">
243243
Except where otherwise
244244
<a href="https://creativecommons.org/policies#license" target="_blank" rel="noopener">noted</a>,

webpack/sass/home-page.scss

+12-5
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,35 @@
22
.hero {
33
@extend .margin-top-large;
44

5+
// Title styling within the hero section
56
.hero-title {
67
@extend .padding-horizontal-big;
78
}
89

10+
// Description styling within the hero section
911
.hero-description {
1012
@extend .body-bigger;
1113
@extend .padding-top-big;
1214
@extend .padding-horizontal-big;
1315
}
1416

17+
// Links container within the hero section
1518
.hero-links {
1619
@extend .margin-vertical-normal;
1720
@extend .padding-horizontal-big;
1821

22+
// Button styling within the hero links
1923
.button {
2024
@extend .margin-top-normal;
2125
text-decoration: none;
22-
23-
.icon {
24-
@extend .margin-right-small;
25-
@extend .padding-vertical-smaller;
26-
}
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
30+
box-sizing: border-box; // Include padding in width calculation
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
2734
}
2835
}
2936

0 commit comments

Comments
 (0)