-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
94 lines (85 loc) · 4.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata -->
<meta charset="UTF-8">
<meta name="description" content="Website poking fun at dull JavaScript library/framework naming conventions.">
<meta name="keywords" content="noun.js, javascript-library, javascript-framework, npm, node.js, vue.js">
<meta name="author" content="Michael Van Leeuwen, Radu Vasilescu">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Icons -->
<link rel="shortcut icon" href="src/assets/favicon.ico" type="image/x-icon">
<link rel="icon" href="src/assets/favicon.ico" type="image/x-icon">
<!-- Stylesheets -->
<link rel="stylesheet" href="src/static/css/styles.css">
<link rel="stylesheet" href="src/static/css/animations.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css">
<link rel="stylesheet" href="src/static/css/hover-min.css">
<!-- Scripts -->
<script src="src/data/constants.js"></script>
<script src="src/static/js/starfield.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="src/components/components.js"></script>
<script type="text/javascript" src="src/static/js/purify.min.js"></script>
<title>Noun.js</title>
</head>
<body scroll="no" class="noselect">
<canvas id="canvas" class="fade-in"></canvas>
<div id="icon-tray" class="fade-in">
<github-button></github-button>
</div>
<div id="main" class="flex-center">
<!-- Randomized Package Display -->
<div id="generated-name" class="fade-in">
<h1 v-on:click="randomWord">{{ package }}</h1>
<p v-if="firstClick">Click the big text to generate the next name!</p>
<p v-else> </p>
</div>
<!-- Results Panel -->
<div id="result-container" class="fade-in">
<!-- '✓' or '✗' -->
<div class="column left">
<div class="center">
<transition name="fade" mode="out-in">
<i v-if="exists" class="fas fa-check hvr-bounce-in" key="1"></i>
<i v-else class="fas fa-times hvr-bounce-in" key="2"></i>
</transition>
</div>
</div>
<!-- Text and Links -->
<div class="column right">
<transition name="fade" mode="out-in">
<div v-if="firstClick" key="1">
<h3 style="margin-top: 15px;">Of course this exists,<br/>you're on it right now!</h3>
<p style="margin-top: -10px;">View the source code <a v-bind:href="link" target="_blank">here</a>!</p>
</div>
<div v-else-if="exists" key="2">
<!-- Package Information -->
<div id="package-card">
<transition name="fade" mode="out-in">
<div id="inner" v-if="cardReady" key="1">
<a class="card-title" v-bind:href="card.link">{{ card.title }}</a>
<p class="card-slug">{{ card.slug }}</p>
<p class="card-details">{{ card.details }}</p>
</div>
<div id="card-load" v-else-if="exists && !firstClick" key="2">
<spinner></spinner>
</div>
</transition>
</div>
</div>
<div v-else key="3">
<h3>This NPM package doesn't exist...</h3>
<p>... YET! How about you <a href="https://github.com/new" target="_blank">fix that</a>?</p>
</div>
</transition>
</div>
</div>
</div>
<script src="src/main.js"></script>
</canvas>
</body>
</html>