aboutsummaryrefslogtreecommitdiff
path: root/src/site/pages/index.vue
blob: a9e02a153576d6be78918900541bf75a3b8025b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<template>
	<div>
		<div class="logoContainer">
			<Logo />
		</div>
		<div class="leftSpacer">
			<div class="mainBlock">
				<div>
					<h4>Blazing fast file uploader. For real.</h4>
					<p>
						A <strong>modern</strong> and self-hosted file upload service that can handle anything you throw at it.
					</p>
					<p>
						With a fast API, chunked file uploads out of the box, beautiful masonry-style file manager and both individual and album sharing capabilities, this little tool was crafted with the best user experience in mind.<br>
					</p>
					<div class="mt4" />
					<Uploader v-if="config.publicMode || (!config.publicMode && loggedIn)" />
					<div
						v-else
						class="has-text-right is-size-4">
						This site has disabled public uploads. You need an account.
					</div>

					<Links />
				</div>
			</div>
		</div>
	</div>
</template>
<script>
import { mapState, mapGetters } from 'vuex';

import Logo from '~/components/logo/Logo.vue';
import Uploader from '~/components/uploader/Uploader.vue';
import Links from '~/components/home/links/Links.vue';

export default {
	name: 'Home',
	components: {
		Logo,
		Uploader,
		Links
	},
	data() {
		return { albums: [] };
	},
	computed: {
		...mapGetters({ loggedIn: 'auth/isLoggedIn' }),
		...mapState(['config'])
	},
	head() {
		return {
			title: 'Home'
		};
	}
};
</script>
<style lang="scss" scoped>
	.logoContainer {
		position: fixed;
		top: calc(45% - 188px);
		left: calc(22% - 117px);
	}
	.leftSpacer {
		width: 56%;
		margin-left: auto;
		position: relative;
		.mainBlock {
			height: calc(100vh - 52px);
			position: relative;
			margin: 0 5rem;
			text-align: right;
			> div {
				position: absolute;
				top: 25%;
			}
		}
		p {
			font-size: 1.25em;
			margin-top: 1rem;
		}
		strong {
			text-decoration: underline;
		}
	}

	@media (max-width: 1025px) {
		.logoContainer {
			position: relative;
			top: 0;
			left: 0;
			text-align: center;
		}
		.leftSpacer {
			width: 100%;
			.mainBlock {
				height: auto;
				padding: 2rem 0;
				> div {
					top: 0rem;
					position: relative;
					text-align: center;
				}
			}
		}
	}
</style>