diff --git a/daily.photo b/daily.photo index 9d4657d..62a80fb 100755 --- a/daily.photo +++ b/daily.photo @@ -119,25 +119,20 @@ def generate_day( print(f"Generating {output_name}") - yesterday = today - datetime.timedelta(days=1) - tomorrow = today + datetime.timedelta(days=1) - with open(metadata_file) as f: metadata = json.load(f) + # TODO get rid of the parallel index.html and the lastday.html. its + # confusing + yesterday = today - datetime.timedelta(days=1) if no_prev: - yesterday_text = "<-" - else: - yesterday_text = '<-'.format( - format_filename("/", yesterday), - ) + yesterday = today + yesterday_text = format_filename("/", yesterday) + tomorrow = today + datetime.timedelta(days=1) if no_next or index: - tomorrow_text = "->" - else: - tomorrow_text = '->'.format( - format_filename("/", tomorrow), - ) + tomorrow = today + tomorrow_text = format_filename("/", tomorrow) try: shot_date = photo_date(metadata.get("date")) diff --git a/main.css b/main.css index 6311f59..e9ce937 100644 --- a/main.css +++ b/main.css @@ -1,4 +1,4 @@ -* { +body { background: #222222; color: white; font-family: sans-serif; @@ -18,12 +18,33 @@ main { .arrow { width: 5%; + height: 10em; + display: flex; + justify-content: center; + align-items: center; + text-align: center; font-weight: bold; font-size: 2em; + background: #303030; + color: #888888; + text-decoration: none; +} + +.arrow:hover { + background: #888888; + color: #bbbbbb; +} + +.arrow-left { + border-radius: 0em .5em .5em 0em; +} + +.arrow-right { + border-radius: .5em 0em 0em .5em; } -#main { +#center { display: flex; flex-flow: row wrap; justify-content: center; @@ -38,6 +59,7 @@ img { max-width: 100%; max-height: 1400px; border: 2em solid white; + padding } #img { @@ -55,6 +77,6 @@ img { text-align: right } -.header { +.meta_header { color: grey; } diff --git a/template.html b/template.html index a798e65..17fa6ff 100644 --- a/template.html +++ b/template.html @@ -19,28 +19,28 @@