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 4 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
17 changes: 15 additions & 2 deletions content/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,22 @@ 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 developer community page -->
<a class="button small is-success row" href="/community">
Join the Developer Community
</a>

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

<!-- 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
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
23 changes: 18 additions & 5 deletions webpack/sass/home-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,41 @@
.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;

.hero-notice {
@extend .body-bigger;
@extend .padding-top-normal;
@extend .has-text-dark-slate-gray;
}

TimidRobot marked this conversation as resolved.
Show resolved Hide resolved
// 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 */
TimidRobot marked this conversation as resolved.
Show resolved Hide resolved
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