Skip to content

Commit

Permalink
feat: copyright footer
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus authored Nov 27, 2024
1 parent d6c1673 commit d84306c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions www/_includes/layouts/page.webc
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,48 @@ layout: base.webc

<main id="main" @raw="content"></main>

<footer>
<p class="copyright" xmlns:cc="http://creativecommons.org/ns#">
This work by
<a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="/eric/"
>Eric McCarthy</a
>
is licensed under
<a
href="https://creativecommons.org/licenses/by/4.0/"
target="_blank"
rel="license noopener noreferrer"
>CC BY 4.0
<script webc:type="js">
this.svg('creative-commons') + this.svg('creative-commons-by')
</script>
</a>
</p>
</footer>

<style>
a[href='#main'] {
position: absolute;
top: 8px;
left: 8px;
}

footer p.copyright {
margin: 3rem 0 2rem 0;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
stroke: var(--color);
fill: var(--color);
}

footer p.copyright svg {
display: inline-block;
vertical-align: text-bottom;
height: 1.4em;
width: 1.4em;
margin: 0 0.3em;
}
</style>

<div webc:for="script of scripts ? [scripts].flat() : []" webc:nokeep>
Expand Down
1 change: 1 addition & 0 deletions www/assets/svg/lib/creative-commons-by.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions www/assets/svg/lib/creative-commons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d84306c

Please sign in to comment.