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 all 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
19 changes: 13 additions & 6 deletions content/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ title:

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.
----
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.
----
links:

<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>
<div class="hero-links">
<!-- Button linking to the developer community page -->
<a class="button small is-success row" href="/community">
Join the Developer Community
</a>
</div>

<p class="hero-description">This site is for developers looking to contribute, but anyone can use CC tools to share their works.</p>
<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/">
Share your work using our licenses/tools
</a>
</div>

#### get-involved ####
Expand Down
3 changes: 0 additions & 3 deletions themes/vocabulary_theme/templates/blocks/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ <h1>
</div>
<div class="columns margin-right-0">
<div class="column is-5">
<p class="hero-description">
{{ this.description }}
</p>
{{ this.links }}
</div>
</div>
Expand Down
2 changes: 1 addition & 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 Down
17 changes: 12 additions & 5 deletions webpack/sass/home-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,35 @@
.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;

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

.icon {
@extend .margin-right-small;
@extend .padding-vertical-smaller;
}
display: inline-block; // Allow the button to wrap around the text
width: 100%; // Full width of the container
height: fit-content; // Fit the content within the button
max-width: 300px; // Maximum width for buttons
box-sizing: border-box; // Include padding in width calculation
text-align: center; // Center text inside buttons
line-height: 1.2; // Set line height for readability
white-space: normal; // Allow text wrapping within buttons
}
}

Expand Down