Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Jan 17, 2024
1 parent 0d614e7 commit b2785c7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions website/assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion website/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,25 @@ p a {
transition: box-shadow 200ms ease 0s;
}

a:hover {
p a:hover {
box-shadow: 0 2px 0 #007cd7;
}

strong {
color: #555;
}

.logo {
margin: 0 auto;
}

.icons {
margin: 0 auto;
width: 80px;
display: flex;
justify-content: space-between;
}

h1 {
text-align: center;
}
Expand Down
1 change: 1 addition & 0 deletions website/assets/x-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion website/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ def generate():


def copy_assets():
for file in ['style.css', 'logo.jpg', 'map.js', 'favicon.ico']:
for file in [
'style.css',
'logo.jpg',
'map.js',
'favicon.ico',
'github.svg',
'x-twitter.svg',
]:
shutil.copyfile(ASSETS_DIR / file, OUT_DIR / file)


Expand Down
8 changes: 8 additions & 0 deletions website/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
<body>
<img src="logo.jpg" alt="logo" height="200" class="logo" />
<h1>OpenFreeMap</h1>
<div class="icons">
<a href="https://github.com/hyperknot/openfreemap" target="_blank"
><img src="github.svg" alt="github" height="28"
/></a>
<a href="https://twitter.com/OpenFreeMapOrg" target="_blank"
><img src="x-twitter.svg" alt="x-twitter" height="28"
/></a>
</div>

{main}

Expand Down

0 comments on commit b2785c7

Please sign in to comment.