Skip to content

Commit

Permalink
add landing page screen shot to readme
Browse files Browse the repository at this point in the history
link repo from footer
  • Loading branch information
janosh committed May 28, 2023
1 parent 35bdc57 commit 7b4df32
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# My Blog

I write/plan to write about physics, machine learning, sustainability and web development.
I write about things I learned in machine learning, data visualization, web development and coding best practices.

<a href="https://janosh.dev">
<img src="https://github.com/janosh/blog/assets/30958850/962918ab-f9f7-470b-a605-ebbfa11461b2" alt="Landing Page" />
</a>
13 changes: 13 additions & 0 deletions src/lib/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
<script>
import { repository as repo } from '$root/package.json'
import Icon from '@iconify/svelte'
</script>

<button on:click={() => document.body.scrollIntoView({ behavior: `smooth` })}>
<Icon icon="material-symbols:arrow-upward-rounded" />
</button>

<footer>
<a href={repo}><Icon icon="octicon:mark-github" width="20pt" />Source</a>
</footer>

<style>
footer {
margin: 3em;
}
footer a {
display: flex;
place-content: center;
gap: 5pt;
}
button {
position: absolute;
bottom: 18pt;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
object-fit: cover;
height: 10em;
width: 10em;
margin: 1em auto 0;
margin: 4em auto 0;
}
h1 {
margin: 0;
Expand Down

0 comments on commit 7b4df32

Please sign in to comment.