Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prominent link to CC tools and clarify site purpose (Fixes #793) #810

Merged
merged 6 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions content/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,28 @@ We work on code and products that support digital creativity and sharing, from u
----
links:

<!-- Container for the hero section links -->
<div class="hero-links">
<a class="button small is-success row" href="/community">Join the Developer Community</a>
<a class="button small row" href="https://twitter.com/cc_opensource"><i class="icon twitter"></i>Follow us on twitter</a>
<!-- Button linking to the Creative Commons "Share your work" page -->
<a class="button small row" href="https://creativecommons.org/share-your-work/" style="background-color: red; color: white;">
Share your work using our licenses/tools
</a>

<!-- Button linking to the developer community page -->
<a class="button small is-success row" href="/community">
Join the Developer Community
</a>

<!-- Button linking to Creative Commons' Twitter page -->
<a class="button small row" href="https://twitter.com/cc_opensource">
<!-- Icon displayed before the text inside the button -->
<i class="icon twitter"></i> Follow us on Twitter
</a>

<!-- Informational text about the purpose of the site -->
<p>
This site is for developers looking to contribute, but anyone can use CC tools to share their works.
</p>
</div>

#### get-involved ####
Expand Down
8 changes: 7 additions & 1 deletion themes/vocabulary_theme/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <h5 class="b-header">Subscribe to our newsletter</h5>
<input type="submit" value="subscribe" class="button small">
</form>
</div>
<div class="attribution margin-top-bigger">
<div class="attribution margin-top-bigger">
TimidRobot marked this conversation as resolved.
Show resolved Hide resolved
<p class="caption">
Except where otherwise
<a href="https://creativecommons.org/policies#license" target="_blank" rel="noopener">noted</a>,
Expand All @@ -249,6 +249,12 @@ <h5 class="b-header">Subscribe to our newsletter</h5>
by
<a href="https://fontawesome.com/" target="_blank" rel="noopener">Font Awesome</a>.
</p>
<!-- Notice for site purpose and link to CC tools -->
<p class="caption">
This site is for developers looking to contribute to Creative Commons. Anyone can use
<a href="https://creativecommons.org/share-your-work/" target="_blank" rel="noopener">CC tools</a>
to share their works.
</p>
<div class="margin-top-smaller">
<i class="icon margin-right-small is-size-4">cclogo</i>
<i class="icon margin-right-small is-size-4">ccby</i>
Expand Down
24 changes: 22 additions & 2 deletions webpack/sass/home-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,44 @@
.hero {
@extend .margin-top-large;

// Title styling within the hero section
.hero-title {
@extend .padding-horizontal-big;
}

// Description styling within the hero section
.hero-description {
@extend .body-bigger;
@extend .padding-top-big;
@extend .padding-horizontal-big;
}

// Links container within the hero section
.hero-links {
@extend .margin-vertical-normal;
@extend .padding-horizontal-big;

// Use flexbox for layout
display: flex;
flex-direction: column; // Stack buttons vertically
align-items: center; // Center-align the buttons

// Button styling within the hero links
.button {
// Apply normal top margin from the defined style
@extend .margin-top-normal;
text-decoration: none;

text-decoration: none; // Remove default underline from links
margin-bottom: 0.5rem; // Add spacing between buttons
width: 100%; // Full width of the container
max-width: 300px; // Maximum width for buttons
padding: 1rem; // Padding inside buttons
box-sizing: border-box; // Include padding in width calculation
text-align: center; // Center text inside buttons
font-size: 1em; // Set font size
line-height: 1.2; // Set line height for readability
white-space: normal; // Allow text wrapping within buttons

// Icon styling within buttons
.icon {
@extend .margin-right-small;
@extend .padding-vertical-smaller;
Expand Down