Skip to content

Commit d59ac7c

Browse files
committed
Address feedback: removed Twitter button, moved 'Share your work' button, updated styling and padding
1 parent 936a6a6 commit d59ac7c

File tree

3 files changed

+15
-34
lines changed

3 files changed

+15
-34
lines changed

content/contents.lr

+7-13
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,20 @@ links:
1717

1818
<!-- Container for the hero section links -->
1919
<div class="hero-links">
20-
<!-- Button linking to the Creative Commons "Share your work" page -->
21-
<a class="button small row" href="https://creativecommons.org/share-your-work/" style="background-color: red; color: white;">
22-
Share your work using our licenses/tools
23-
</a>
24-
2520
<!-- Button linking to the developer community page -->
2621
<a class="button small is-success row" href="/community">
2722
Join the Developer Community
2823
</a>
2924

30-
<!-- Button linking to Creative Commons' Twitter page -->
31-
<a class="button small row" href="https://twitter.com/cc_opensource">
32-
<!-- Icon displayed before the text inside the button -->
33-
<i class="icon twitter"></i> Follow us on Twitter
34-
</a>
35-
3625
<!-- Informational text about the purpose of the site -->
37-
<p>
26+
<div class = "hero-notice">
3827
This site is for developers looking to contribute, but anyone can use CC tools to share their works.
39-
</p>
28+
</div>
29+
30+
<!-- Button linking to the Creative Commons "Share your work" page -->
31+
<a class="button small row" href="https://creativecommons.org/share-your-work/">
32+
Share your work using our licenses/tools
33+
</a>
4034
</div>
4135

4236
#### get-involved ####

themes/vocabulary_theme/templates/layout.html

-6
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ <h5 class="b-header">Subscribe to our newsletter</h5>
249249
by
250250
<a href="https://fontawesome.com/" target="_blank" rel="noopener">Font Awesome</a>.
251251
</p>
252-
<!-- Notice for site purpose and link to CC tools -->
253-
<p class="caption">
254-
This site is for developers looking to contribute to Creative Commons. Anyone can use
255-
<a href="https://creativecommons.org/share-your-work/" target="_blank" rel="noopener">CC tools</a>
256-
to share their works.
257-
</p>
258252
<div class="margin-top-smaller">
259253
<i class="icon margin-right-small is-size-4">cclogo</i>
260254
<i class="icon margin-right-small is-size-4">ccby</i>

webpack/sass/home-page.scss

+8-15
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,24 @@
1919
@extend .margin-vertical-normal;
2020
@extend .padding-horizontal-big;
2121

22-
// Use flexbox for layout
23-
display: flex;
24-
flex-direction: column; // Stack buttons vertically
25-
align-items: center; // Center-align the buttons
22+
.hero-notice {
23+
@extend .body-bigger;
24+
@extend .padding-top-normal;
25+
@extend .has-text-dark-slate-gray;
26+
}
2627

2728
// Button styling within the hero links
2829
.button {
29-
// Apply normal top margin from the defined style
3030
@extend .margin-top-normal;
31-
text-decoration: none; // Remove default underline from links
32-
margin-bottom: 0.5rem; // Add spacing between buttons
31+
text-decoration: none;
32+
display: inline-block; /* Allow the button to wrap around the text */
3333
width: 100%; // Full width of the container
34+
height: fit-content; // Fit the content within the button
3435
max-width: 300px; // Maximum width for buttons
35-
padding: 1rem; // Padding inside buttons
3636
box-sizing: border-box; // Include padding in width calculation
3737
text-align: center; // Center text inside buttons
38-
font-size: 1em; // Set font size
3938
line-height: 1.2; // Set line height for readability
4039
white-space: normal; // Allow text wrapping within buttons
41-
42-
// Icon styling within buttons
43-
.icon {
44-
@extend .margin-right-small;
45-
@extend .padding-vertical-smaller;
46-
}
4740
}
4841
}
4942

0 commit comments

Comments
 (0)