Skip to content

Commit

Permalink
scroll up button
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilef12000 committed May 17, 2024
1 parent d15f964 commit f908d22
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/about-me.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/about.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/assets/scripts/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions docs/assets/styles/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/projects.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/projects/grandMA2_Lissaious_Form_Effect.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion render-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"http://localhost:3000/assets/styles/style.css",
"http://localhost:3000/assets/styles/fonts.css",
"http://localhost:3000/assets/images/thumbnail/pencil_case.jpg",
"http://localhost:3000/assets/scripts/script.js",
"http://localhost:3000/assets/scripts/404.js",
"http://localhost:3000/projects/grandMA2_Lissaious_Form_Effect",
"http://localhost:3000/assets/images/thumbnail/x42_space.png",
Expand All @@ -21,6 +22,7 @@
"http://localhost:3000/assets/images/thumbnail/xilef12000.github.io.png",
"http://localhost:3000/assets/scripts/about.js",
"http://localhost:3000/assets/downloads/Lissaious.xml",
"http://localhost:3000/assets/images/Lissaious_Graph_Editor.png"
"http://localhost:3000/assets/images/Lissaious_Graph_Editor.png",
"http://localhost:3000/projects/assets/scripts/script.js"
]
}
3 changes: 3 additions & 0 deletions views/assets/scripts/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function goTop() {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
11 changes: 11 additions & 0 deletions views/assets/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@ h6 {
.footer a:hover {
color: var(--color-blue);
}
.footer a.up-svg {
height: 2rem;
width: 2rem;
margin-right: 5rem;
}
.footer a.up-svg svg path {
fill: var(--color-text);
}
.footer a.up-svg:hover svg path {
fill: var(--color-blue);
}
@media screen and (max-width: calc(1920px*0.8)) {
.footer .limiter{
width: 80vw;
Expand Down
5 changes: 5 additions & 0 deletions views/ejs/partials/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
<a href="/about">about</a>
<a href="/about-me">about me</a>
</div>
<div class="block">
<a onclick="goTop()" class="up-svg">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#3c3c3c" d="M12.71,8.29a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0,1.42,1.42L11,11.41V15a1,1,0,0,0,2,0V11.41l1.29,1.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"></path></svg>
</a>
</div>
</div>
</div>
</footer>
3 changes: 2 additions & 1 deletion views/ejs/partials/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>x42.space | <%= typeof title != 'undefined' ? title : '' %></title>
<link rel="stylesheet" href="/assets/styles/style.css">
<link rel="stylesheet" href="/assets/styles/fonts.css">
<link rel="stylesheet" href="/assets/styles/fonts.css">
<script src="assets/scripts/script.js" type="text/javascript"></script>

0 comments on commit f908d22

Please sign in to comment.