Skip to content
Open
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
6 changes: 6 additions & 0 deletions src/_includes/layout.jlhtml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ $(pluto_head)
</div>
""") : nothing)
$(content)
<div class="page-foot">
<div class="copyright">
<a href="$(metadata["course_info"]["repo"])"><b>Edit this page on <img class="github-logo" src="https://unpkg.com/ionicons@5.1.2/dist/svg/logo-github.svg"></b></a><br>
Website based on the MIT course <a href="https://computationalthinking.mit.edu"><em><b>Computational Thinking</b>, a live online Julia/Pluto textbook</em></a> and built with <a href="https://plutojl.org/">Pluto.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>
</div>
</div>
</div>
</body>
Expand Down
45 changes: 45 additions & 0 deletions src/assets/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,48 @@
margin-right: auto;
margin-top: 5rem;
}

/* footnote */

main {
padding-bottom: 5rem !important;
}

.github-logo {
width: 1em;
}

.page-foot {
z-index: 4;
background: white;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0px 0px 10px 5px #1c12120d;

max-width: 700px;
margin-left: auto;
margin-right: auto;
margin-block-end: 5rem;
margin-bottom: 10em;
}

.page-foot a {
text-decoration: none;
/* background: #f3f3ff; */
/* border: 3px solid; */
color: black;
/* border-bottom: 0.2em solid rgba(0, 0, 0, 0.3); */
}
.page-foot a:not(.no-decoration) {
background-position: 0 0.83em;
background-repeat: repeat-x;
background-size: 2px 8px;
background-image: linear-gradient(to bottom, rgba(165, 213, 235, 0.3) 33%, rgba(165, 213, 235, 0.3));
/* text-shadow: 2px 2px white, 2px -2px white, -2px 2px white, -2px -2px white; */
transition: background-position 50ms linear, background-size 50ms linear;
}

.page-foot a:hover {
background-position: 0 0em;
background-size: 2px auto;
}