This repository has been archived by the owner on Jul 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (108 loc) · 5.16 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>SDG</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="css.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,600&subset=latin-ext" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
<script defer src="https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/vue-router/dist/vue-router.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/v-chartist/dist/vue-chartist.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/chartist-plugin-pointlabels/dist/chartist-plugin-pointlabels.min.js"></script>
<script defer src="https://unpkg.com/vue-i18n/dist/vue-i18n.js"></script>
<script defer src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.1/tinycolor.js"></script>
<script defer src="translations.js"></script>
<script defer src="colors.js"></script>
<script defer src="lang-switcher.js"></script>
<script defer src="vue-chartist.js"></script>
<script defer src="page-home.js"></script>
<script defer src="page-about.js"></script>
<script defer src="main-footer.js"></script>
<script defer src="tipofday.js"></script>
<script defer src="app.js"></script>
</head>
<body>
<div id="app" :style="style">
<header>
<h1 class="screen-reader-text">{{ $t('app_title') }}</h1>
<a href="https://un.org.pl/" :title="$t('main_footer.sdg')"><img id="logo" :src="logo_src" height="40px" :alt="$t('app_title')" /></a>
<lang-switcher></lang-switcher>
</header>
<router-view :tip="tip" v-on:next-tip="nextTip"></router-view>
<main-footer :tip="tip"></main-footer>
</div>
<template id="lang-link">
<a href="#" @click="setLocale(locale)" :title="$t('lang_switcher.change_language_to') + locale.toUpperCase()">{{ locale }}</a>
</template>
<template id="lang-switcher">
<aside id="change-language">
<h2 class="screen-reader-text">{{ $t('lang_switcher.change_language') }}</h2>
<ul>
<li v-for="locale in Object.keys(messages)">
<lang-link v-bind:locale="messages[locale]"></lang-link>
</li>
</ul>
</aside>
</template>
<template id="vue-chartist">
<div id="chart-outer">
<div class="v-chartist-container"></div>
</div>
</template>
<template id="page-home">
<main id="main-tip">
<div id="search-bar">
<form method="get" action="https://www.google.com/search">
<input type="text" name="q" value="" placeholder="Google" class="input-style" />
</form>
</div>
<div id="title-holder">
<img id="goal" :src="icon_src" :alt="localized_goal_num" />
<h2>{{ $t('goals.goal') }} #{{ tip.goal_id }}: {{ $t('goals.' + tip.goal_id) }}</h1>
</div>
<div id="tip">
<p>{{ localized_text_content }}</p>
<ul>
<li>{{ $t('chart.poland') }}</li>
<li>{{ $t('chart.eu') }}</li>
</ul>
</div>
<a tabindex="0" id="next-tip-button" class="input-style" @keyup.enter.space="$emit('next-tip')" @click.prevent="$emit('next-tip')" :title="$t('main.randomize_next')">{{ $t('main.randomize_next') }}</a>
<vue-chartist :data="data" :options="options" type="Line"></vue-chartist>
</main>
</template>
<template id="page-about">
<div id="about">
<router-link to="/">{{ $t('back') }}</router-link>
<p>{{ $t('about') }}</p>
<ul>
<li>Krzysztof Antoniak</li>
<li>Łukasz Kędziorski</li>
<li>Marta Mazurkiewicz</li>
</ul>
<img src="img/hackathon_logo.png" :alt="$t('hackathon_logo')"/>
</div>
</template>
<template id="main-footer">
<footer>
<ul>
<li id="sharing">
<a href="#" id="chrome-extension" :title="$t('main_footer.chrome_extension')">{{ $t('main_footer.chrome_extension') }}</a>
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=kodujsdg.stat.gov.pl" id="facebook-share" :title="$t('main_footer.facebook_share')">{{ $t('main_footer.facebook_share') }}</a>
<a target="_blank" :href="twitter_url" id="twitter-share" :title="$t('main_footer.twitter_share')">{{ $t('main_footer.twitter_share') }}</a>
</li>
<li><a href="https://stat.gov.pl/">{{ $t('main_footer.stat_poland') }}</a></li>
<li><a href="https://www.un.org/sustainabledevelopment/sustainable-development-goals/">{{ $t('main_footer.sdg') }}</a></li>
<li><a href="https://kampania17celow.pl/">{{ $t('main_footer.campaign_goals') }}</a></li>
<li><router-link to="/about">{{ $t('main_footer.about') }}</router-link></li>
</ul>
</footer>
</template>
</body>
</html>