Skip to content

Commit

Permalink
make the home page a bit more fancy
Browse files Browse the repository at this point in the history
though not that fancy! Could probably benefit from better design.
  • Loading branch information
pahjbo committed Mar 25, 2024
1 parent 4c7c5db commit c031449
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
Binary file added docs/assets/polaris4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: Welcome to Polaris
template: home.html
---

# Welcome to Polaris

Polaris is a toolkit for creating and managing astronomical observing proposals.
Expand Down
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ theme:
- content.action.edit
logo: assets/logo.svg
favicon: assets/icons/polaris_square_icon.png
palette:
primary: black
custom_dir: theme_overrides

markdown_extensions:
- tables
Expand Down
50 changes: 50 additions & 0 deletions theme_overrides/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% extends "main.html" %}
{% block tabs %}

<style>
.greeting {
background-image: url(/assets/orp_background_image_small.png);
height: 100%;

/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-color: black;
justify-content: center;
display: flex;
flex-direction: column;
color: white;


}
.polarislogo {
display: flex;
justify-content: center;
margin-left: auto;
margin-right: auto;
width:50%;

}
.intromessage{

color: white;
justify-content: center;
font-size: 4vw;
margin-left: auto;
margin-right: auto;

}

</style>
<div class="greeting">
<img class="polarislogo" src="/assets/polaris4.png">
<div class="intromessage">
<a href="/prototype_information/">Read More</a>
</div>
<div class="intromessage"><a href="https://kilburn.jb.man.ac.uk/pst/gui/tool/">Demo</a></div>
</div>


{% endblock %}
{% block footer %}{% endblock %}

0 comments on commit c031449

Please sign in to comment.