Skip to content

Commit c67b659

Browse files
committed
add CC logo in the bottom right of all the project pages
1 parent 44b7a14 commit c67b659

12 files changed

Lines changed: 104 additions & 2 deletions

‎activities.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ listing:
1919
<style>
2020
.cc-license-badge {
2121
position: fixed;
22-
bottom: -15px;
22+
bottom: 3px;
2323
left: 0px;
2424
z-index: 1000;
2525
background: rgba(255, 255, 255, 0.8);

‎docs/activities.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ <h1 class="title">Activities</h1>
231231
<style>
232232
.cc-license-badge {
233233
position: fixed;
234-
bottom: -15px;
234+
bottom: 3px;
235235
left: 0px;
236236
z-index: 1000;
237237
background: rgba(255, 255, 255, 0.8);

‎docs/projects/acceleratetheblob.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ <h2 class="anchored" data-anchor-id="accelerate-the-blob-videos">Accelerate the
204204
</main></div>
205205

206206
<!-- /main -->
207+
<div class="cc-license-badge">
208+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
209+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
210+
</a>
211+
</div>
207212
<script id="quarto-html-after-body" type="application/javascript">
208213
window.document.addEventListener("DOMContentLoaded", function (event) {
209214
const icon = "";

‎docs/projects/airpressure.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ <h2 class="anchored" data-anchor-id="air-pressure-versus-height-playlist">Air Pr
219219
</section>
220220

221221
</main> <!-- /main -->
222+
<div class="cc-license-badge">
223+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
224+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
225+
</a>
226+
</div>
222227
<script id="quarto-html-after-body" type="application/javascript">
223228
window.document.addEventListener("DOMContentLoaded", function (event) {
224229
const icon = "";

‎docs/projects/apollo.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ <h2 class="anchored" data-anchor-id="apollo-moon-landing-playlist">Apollo Moon L
192192
</main></div>
193193

194194
<!-- /main -->
195+
<div class="cc-license-badge">
196+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
197+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
198+
</a>
199+
</div>
195200
<script id="quarto-html-after-body" type="application/javascript">
196201
window.document.addEventListener("DOMContentLoaded", function (event) {
197202
const icon = "";

‎docs/projects/balloon.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ <h2 class="anchored" data-anchor-id="what-do-to-with-the-data">What do to with t
286286
</section>
287287

288288
</main> <!-- /main -->
289+
<div class="cc-license-badge">
290+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
291+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
292+
</a>
293+
</div>
289294
<script id="quarto-html-after-body" type="application/javascript">
290295
window.document.addEventListener("DOMContentLoaded", function (event) {
291296
const icon = "";

‎docs/projects/errorbar3.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ <h2 class="anchored" data-anchor-id="solution-calculate-the-error-on-the-mean">S
212212
</section>
213213

214214
</main> <!-- /main -->
215+
<div class="cc-license-badge">
216+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
217+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
218+
</a>
219+
</div>
215220
<script id="quarto-html-after-body" type="application/javascript">
216221
window.document.addEventListener("DOMContentLoaded", function (event) {
217222
const icon = "";

‎docs/projects/vax.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ <h2 class="anchored" data-anchor-id="links-to-activity">Links to Activity</h2>
199199
</section>
200200

201201
</main> <!-- /main -->
202+
<div class="cc-license-badge">
203+
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
204+
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc.png" alt="CC BY-NC License">
205+
</a>
206+
</div>
202207
<script id="quarto-html-after-body" type="application/javascript">
203208
window.document.addEventListener("DOMContentLoaded", function (event) {
204209
const icon = "";

‎docs/styles.css‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,4 +859,36 @@ main.content>*,
859859
.sc-hero {
860860
padding: 2.5rem 1.25rem 2rem;
861861
}
862+
}
863+
864+
/* ---------- Creative Commons License Badge ---------- */
865+
.cc-license-badge {
866+
position: fixed;
867+
bottom: 1px;
868+
left: 0px;
869+
z-index: 1000;
870+
background: rgba(255, 255, 255, 0.8);
871+
padding: 1px;
872+
border-radius: 4px;
873+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
874+
transition: opacity 0.3s;
875+
}
876+
877+
.cc-license-badge p {
878+
margin: 0;
879+
}
880+
881+
.cc-license-badge:hover {
882+
background: rgba(255, 255, 255, 1);
883+
}
884+
885+
.cc-license-badge img {
886+
display: block;
887+
height: 80px;
888+
}
889+
890+
@media (max-width: 1024px) {
891+
.cc-license-badge {
892+
display: none;
893+
}
862894
}

‎projects/_metadata.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
format:
2+
html:
3+
include-after-body: cc-badge.html

0 commit comments

Comments
 (0)