-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path+page.svelte
147 lines (129 loc) · 3.83 KB
/
+page.svelte
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<script>
import { base } from '$app/paths';
// Functionality for language selection
import { t } from '$lib/translations';
import Alternations from '$lib/Alternations.svelte';
import Donate from '$lib/Donate.svelte';
import Carousel from '$lib/Carousel.svelte';
// Main function items
const aboutItems = [
{ heading: $t('all.about1'), description: $t('all.about1Text'), image: '/lom01a.jpg' },
{ heading: $t('all.about2'), description: $t('all.about2Text'), image: '/KFR01_mac.jpg' },
{ heading: $t('all.about3'), description: $t('all.about3Text'), image: '/KFR01_ntb.jpg' },
{ heading: $t('all.about4'), description: $t('all.about4Text'), image: '/KFR02_tab.jpg' },
];
// Carounsel functionality
const carouselItems = [
{ description: $t('all.fCarousel1'), image: '/KFR01_mac.jpg' },
{ description: $t('all.fCarousel2'), image: '/KFR01_ntb.jpg' },
{ description: $t('all.fCarousel3'), image: '/KFR01_tab.jpg' },
{ description: $t('all.fCarousel4'), image: '/KFR02_mac.jpg' },
{ description: $t('all.fCarousel5'), image: '/KFR02_tab.jpg' },
{ description: $t('all.fCarousel6'), image: '/KFR02_ntb.jpg' },
{ description: $t('all.fCarousel7'), image: '/lom01a.jpg' },
{ description: $t('all.fCarousel8'), image: '/lom02a.jpg' },
];
</script>
<svelte:head>
<title>Home</title>
<meta name="description" content="Kefer Astrology presentation" />
</svelte:head>
<!-- Masthead : Uvodni banner -->
<header id="start" class="masthead">
<h1>{$t('all.welcome')}</h1>
<p>{$t('all.description')}</p>
<a href="{base}/#about"><button class="btn">{$t('all.about')}</button></a>
</header>
<!-- About Section : O Aplikaci -->
<section id="about" class="bg-primary">
<Alternations {aboutItems} />
</section>
<!-- Functions Section: Funkce Kefer -->
<section id="function">
<h2>{$t('all.functions')}</h2>
<div class="divider"></div>
<Carousel {carouselItems} />
</section>
<!-- Extra Section: Astrolab -->
<section id="astrolab">
<h2>{$t('all.astrolab')}</h2>
<div class="divider"></div>
<p>{$t('all.astrolabText')}</p>
</section>
<!-- Extra Section: Jan Kefer -->
<section id="kefer">
<h2>{$t('all.kefer')}</h2>
<div class="divider"></div>
<p>{$t('all.keferText')}</p>
</section>
<!-- OSS Section: Open Source -->
<section id="oss">
<h2>{$t('all.openSource')}</h2>
<div class="divider"></div>
<p>{$t('all.openSourceText')}</p>
</section>
<!-- Donation Section : Podporte -->
<section id="donation">
<h2>{$t('all.donate')}</h2>
<p>{$t('all.donateText')}</p>
<Donate /> <!-- the actual embedded page TO-DO select provider -->
</section>
<!-- Download Section : Stazeni -->
<section id="download" class="bg-primary">
<h2>{$t('all.download')}</h2>
<p>{$t('all.downloadText')}</p>
<a class="btn" href="https://github.com/kubow/AstroSmrkRust/releases">IMAGE_PLACEHOLDER</a>
</section>
<!-- About Section : O Nas -->
<section id="contact">
<h2>{$t('all.contact')}</h2>
<p>{$t('all.contactText')}</p>
</section>
<!-- Contact Section : Form -->
<section id="form">
<h2>{$t('all.contactUs')}</h2>
<p>{$t('all.contactDescription')}</p>
</section>
<style>
.masthead {
height: 100vh;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)),
url('$lib/images/lom01a.jpg') center/cover no-repeat;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.masthead h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.masthead .btn {
padding: 1rem 2rem;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
text-transform: uppercase;
cursor: pointer;
}
.masthead .btn:hover {
background: #0056b3;
}
section {
padding: 4rem 2rem;
}
section.bg-primary {
background: #007bff;
color: white;
}
.divider {
width: 100px;
height: 3px;
margin: 1.5rem auto;
background: white;
}
</style>