Skip to content

Commit 8702bd9

Browse files
committed
layout update
1 parent af8298f commit 8702bd9

File tree

4 files changed

+52
-27
lines changed

4 files changed

+52
-27
lines changed

website/public/css/main.css

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#app {
2-
font-family: Tenorite, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
3-
/*margin: 5px;*/
4-
-webkit-font-smoothing: antialiased;
5-
-moz-osx-font-smoothing: grayscale;
6-
color: #2c3e50;
7-
margin-top: 0px;
8-
padding-top: 10px;
9-
overflow-x: hidden;
10-
2+
font-family: Tenorite, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
3+
/*margin: 5px;*/
4+
-webkit-font-smoothing: antialiased;
5+
-moz-osx-font-smoothing: grayscale;
6+
color: #2c3e50;
7+
margin-top: 0px;
8+
padding-top: 5px;
9+
overflow-x: hidden;
1110
}
1211

1312
.header {
@@ -19,13 +18,20 @@
1918
margin-left: 5px;
2019
}
2120

22-
h1,
23-
h2 {
24-
margin-top: 10pt;
21+
h1 {
22+
margin: 8px 0;
23+
font-size: 1.8em;
2524
}
2625

2726
h2 {
28-
font-weight: normal;
27+
margin: 8px 0;
28+
font-weight: normal;
29+
font-size: 1.5em;
30+
}
31+
32+
h3 {
33+
margin: 8px 0;
34+
font-size: 1.3em;
2935
}
3036

3137
hr {

website/src/App.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<template>
22
<div :class="{ 'map-layout': $route.name === 'mapPage' }">
33
<div class="header" :class="{ 'map-header': $route.name === 'mapPage' }">
4-
<h4>{{ $t("message.siteTitle") }}</h4>
4+
<h4>{{ $t("message.siteTitle") }}{{ $route.name === 'infoPage' ? ' - ' + $t('message.info') :
5+
$route.name === 'hutListPage' ? ' - ' + $t('message.list') :
6+
$route.name === 'mapPage' ? ' - ' + $t('message.map') : '' }}</h4>
57
<router-link :to="{ name: 'mapPage' }">{{ $t("message.map") }}</router-link> |
68
<router-link :to="{ name: 'hutListPage' }">{{ $t("message.list") }}</router-link> |
7-
<router-link :to="{ name: 'infoPage' }">{{ $t("message.info") }}</router-link> |
8-
9-
<template v-if="isAdmin">
10-
<a href="/logout">{{ $t("message.logout") }}</a>
11-
</template>
12-
<template v-else>
13-
<a href="/login">{{ $t("message.login") }}</a>
14-
</template>
9+
<router-link :to="{ name: 'infoPage' }">{{ $t("message.info") }}</router-link>
1510

1611
<span style="float:right;">
1712
<span v-for="locale in $i18n.availableLocales" :key="`locale-${locale}`">

website/src/components/HutListPage.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<template>
22
<section>
3-
<h1>{{ $t('hutListPage.allHuts') }}</h1>
4-
53
<p v-show="loading">{{ $t('message.loading') }}...</p>
64

75
<div v-show="!loading">
@@ -85,6 +83,11 @@
8583
</template>
8684

8785
<style scoped>
86+
section {
87+
padding: 0 16px;
88+
margin-top: -1rem;
89+
}
90+
8891
.table-container {
8992
margin-top: 2rem;
9093
}
Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
11
<template>
22
<div>
3-
<h3>{{ $t('infoPage.infoHeader')}}!</h3>
43
<p>{{ $t('infoPage.firstParagraph')}}</p>
54

65
<p>{{ $t('infoPage.secondParagraph')}}</p>
76

87
<p>{{ $t('infoPage.thirdParagraph')}} <a href="https://github.com/sebader/alpinehutproject" target="_blank">sebader/alpinehutproject</a></p>
8+
9+
<hr />
10+
<p>
11+
<template v-if="isAuthenticated">
12+
<a href="/logout">{{ $t("message.logout") }}</a>
13+
</template>
14+
<template v-else>
15+
<a href="/login">{{ $t("message.login") }}</a>
16+
</template>
17+
</p>
918
</div>
1019
</template>
1120

1221
<script>
1322
export default {
14-
async created() { },
23+
props: {
24+
isAuthenticated: {
25+
type: Boolean,
26+
default: false
27+
}
28+
},
1529
methods: {},
1630
computed: {},
1731
components: {}
1832
};
1933
</script>
2034

21-
<style>
35+
<style scoped>
36+
div {
37+
padding: 0 16px;
38+
margin-top: -1rem;
39+
}
2240
41+
p {
42+
margin: 16px 0;
43+
}
2344
</style>

0 commit comments

Comments
 (0)