forked from indransyah/hacktoberfest-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·118 lines (109 loc) · 5.89 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
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hacktoberfest Finder</title>
<link rel="stylesheet" href="/build/app.css" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="description" content="Hacktoberfest Finder helps you find issues which you could help fix." />
<meta name="keywords" content="Hacktoberfest, Programming, GitHub, DigitalOcean, DEV" />
<meta name="author" content="Duncan McClean and Contributors" />
<meta property="og:title" content="Hacktoberfest 2019 Finder" />
<meta property="og:description" content="Hacktoberfest Finder helps you find issues which you could help fix." />
<meta property="og:image" content="https://hacktoberfest-finder.netlify.com/assets/images/issuefinder.png" />
<meta property="og:url" content="https://hacktoberfest-finder.netlify.com/" />
<meta name="twitter:title" content="Hacktoberfest Finder">
<meta name="twitter:image" content="https://hacktoberfest-finder.netlify.com/assets/images/issuefinder.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicons/favicon-16x16.png" />
<link rel="manifest" href="/assets/images/favicons/site.webmanifest" />
<link rel="mask-icon" href="/assets/images/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#6b3d53" />
<meta name="theme-color" content="#582d41" />
</head>
<body class="bg-secondary font-space">
<div id="app">
<header class="container mx-auto my-6 flex flex-row flex-wrap justify-between">
<div class="flex flex-row flex-wrap items-center">
<img class="mx-auto" src="/assets/images/header.svg" alt="Hacktoberfest 2019" width="400px">
<h1 class="text-5xl font-bold text-primary uppercase mx-auto my-4 md:my-0 text-center">
Issue Finder
</h1>
</div>
<div class="w-full md:w-auto flex flex-row flex-wrap items-center justify-around mx-auto my-4">
<div class="flex flex-column items-center filter relative">
<button class="text-primary text-lg font-semibold uppercase relative focus:outline-none" @click="toggleFilter">
Filter by language
</button>
<div v-if="isFilterToggled" class="filter-values flex flex-col bg-primary absolute top-2r right-0 mt-2 w-48 shadow-xl rounded-lg overflow-hidden border-2 border-primary border-solid">
<button
v-for="language in languages"
class="font-thin text-secondary text-1xl p-2 language bg-primary hover:bg-secondary hover:text-white"
:text="language"
@click="chooseLanguage(language)"
>
{{ language }}
</button>
</div>
</div>
<button class="text-primary text-lg font-semibold uppercase mx-2" @click="toggleNoReplyFilter()">
Filter by no reply
</button>
</div>
</header>
<main class="container mx-auto my-12">
<div id="results" class="grid">
<a
v-for="result in results"
class="bg-white hover:bg-grey-lighter rounded-lg p-2 text-black flex flex-col justify-center items-center overflow-auto shadow-lg"
target="_blank"
:href="result.html_url"
:title="result.title"
>
<div class="flex flex-wrap flex-row w-full">
<span v-for="label in result.labels" class="rounded-sm px-2 py-1 m-1 shadow-md" :style="{backgroundColor: '#' + label.color}">{{ label.name }}</span>
</div>
<h2 class="text-center text-xl mb-4">{{ result.title }}</h2>
<h3 class="text-center text-blue mb-4 break-words">{{ result.user.login }}/{{ result.repoTitle }}</h3>
<span>Comments: {{ result.comments }}</span>
<span>Last updated: {{ result.formattedDate }}</span>
</a>
</div>
<div v-if="showViewMore" class="flex flex-row items-center justify-center mt-6">
<button
class="font-thin text-primary border-2 border-primary text-3xl bg-secondary hover:bg-primary hover:text-secondary py-2 px-4 rounded"
:disabled="isFetching"
@click="loadIssues"
>
{{ isFetching ? 'Loading...' : 'Load More' }}
</button>
</div>
</main>
</div>
<footer class="bg-primary w-full mt-8">
<div class="container mx-auto flex flex-row items-center justify-between p-8">
<div class="flex flex-row items-center justify-center">
<p class="text-amber">Unofficial site by <a class="text-secondary" href="http://duncan.mcclean.co.uk">Duncan McClean</a> and <a class="text-secondary" href="https://github.com/damcclean/hacktoberfest-finder/blob/master/CONTRIBUTORS.md">contributors</a>. Contribute on <a class="text-secondary" href="https://github.com/damcclean/hacktoberfest-finder" target="_blank">GitHub!</a></p>
</div>
<div class="flex flex-row items-center justify-center">
<a class="mx-2 w-6 h-6" href="https://www.digitalocean.com">
<img class="w-6 h-6" src="/assets/images/digital-ocean.png">
</a>
<a class="mx-2 w-6 h-6" href="https://dev.to">
<img class="w-6 h-6" src="/assets/images/dev.svg">
</a>
</div>
</div>
</footer>
<script src="/build/app.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js').then(function() {
console.log('Service Worker is now registered');
});
}
</script>
</body>
</html>