Skip to content

Commit 2673177

Browse files
committed
Update header and footer
1 parent 6d5369d commit 2673177

File tree

3 files changed

+73
-9
lines changed

3 files changed

+73
-9
lines changed

website/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ insert_anchor_links = "heading"
1515
logo_path = "images/happy_ferris.svg"
1616

1717
[[extra.menu_items]]
18-
name = "Home"
18+
name = "Rustlings"
1919
url = "/"
2020
[[extra.menu_items]]
2121
name = "Setup"
Lines changed: 61 additions & 0 deletions
Loading

website/templates/base.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
</head>
4949

5050
<body class="flex flex-col p-3 mx-auto min-h-screen text-lg text-white break-words bg-[#2A3439] lg:px-5 2xl:container">
51-
<header class="flex gap-x-6 items-center py-2 px-2.5 mb-1 bg-black/30 rounded-full">
51+
<header class="flex flex-col gap-x-4 items-center py-2 px-4 mb-1 bg-black/30 rounded-sm sm:flex-row sm:rounded-full">
5252
<a class="transition duration-500 hover:scale-110"
5353
href="{{ get_url(path='/') | safe }}"
5454
aria-hidden="true">
55-
<img class="m-0 w-12 h-12 rounded-full"
55+
<img class="m-0 w-12 h-12"
5656
src="{{ get_url(path=config.extra.logo_path) | safe }}"
5757
alt="">
5858
</a>
5959

60-
<nav class="flex gap-x-6 items-center font-bold">
60+
<nav class="flex flex-col gap-x-6 items-center font-bold sm:flex-row">
6161
{% for menu_item in config.extra.menu_items %}
6262
<a class="p-1 no-underline" href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
6363
{% endfor %}
@@ -68,12 +68,15 @@
6868
{% block content %}{% endblock %}
6969
</main>
7070

71-
<footer class="pt-2 pb-3 mt-auto">
72-
<img class="m-0 mx-auto w-20 h-20"
73-
src="{{ get_url(path='images/happy_ferris.svg') | safe }}"
74-
alt="">
71+
<footer class="pt-2 pb-3 mt-auto text-center">
72+
<div class="mx-auto inline-flex gap-x-1.5 items-center">
73+
<img class="w-8 h-8"
74+
src="{{ get_url(path='images/rust_logo.svg') | safe }}"
75+
alt="">
76+
<div class="text-sm italic">Rustlings is an official Rust project</div>
77+
</div>
7578

76-
<nav class="flex flex-col gap-y-3 justify-around py-3 text-center bg-black/30 rounded-sm sm:flex-row sm:rounded-full">
79+
<nav class="flex flex-col gap-y-3 justify-around py-3 bg-black/30 rounded-sm sm:flex-row sm:rounded-full">
7780
{% for footer_item in config.extra.footer_items %}
7881
<a class="text-sm no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
7982
{% endfor %}

0 commit comments

Comments
 (0)