-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (154 loc) · 8.47 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
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
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<title>gists-readme | Yizack</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="robots" content="index,follow"/>
<meta name="keywords" content="github, gists, profile, readme, card, generate, api, yizack"/>
<meta name="description" content="Display a card with your Gists on your GitHub README.md"/>
<meta property="og:url" content="https://gists-readme.yizack.com"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="Yizack/gists-readme"/>
<meta property="og:site_name" content="Yizack/gists-readme"/>
<meta property="og:description" content="Display a card with your Gists on your GitHub README.md"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Yizack/gists-readme"/>
<meta name="twitter:description" content="Display a card with your Gists on your GitHub README.md"/>
<meta name="twitter:site" content="@YizackR"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
<style>
body {
background-color: #0d1117;
}
a {
color: #58a6ff!important;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.btn-primary {
background-color: #238636;
border-color: #238636;
}
.btn-primary:hover {
background-color: #2ea043;
border-color: #2ea043;
}
.text-secondary {
color: #8b949e;
}
.bg-dark {
background-color: #161b22;
}
.border, .border-bottom {
border-color: #30363d!important;
}
.form-control {
color: #fff!important;
background-color: #010409;
}
.form-control:focus {
background-color: #0d1117;
border-color: #58a6ff!important;
}
.text-white {
color: #c9d1d9!important;
}
.nav-pills .nav-link.active {
background-color: #161b22;
border-color: #010409;
}
</style>
</head>
<body>
<div class="container m-auto">
<div class="d-flex align-items-center justify-content-center vh-100">
<div class="text-white col-lg-8 border rounded">
<div class="border-bottom">
<div class="px-4 py-3 border-bottom">
<h5 class="m-0"><i class="bi bi-window text-secondary"></i> <a href="https://github.com/Yizack" target="_blank">Yizack</a>/<a href="https://github.com/Yizack/gists-readme" target="_blank">gists-readme</a></h5>
</div>
<div class="px-4 pt-4">
<h5 class="m-0">Display your Gists on your GitHub README.md</h5>
</div>
<ul class="p-4 nav nav-pills" id="pills-tab" role="tablist">
<li class="nav-item me-2">
<button class="nav-link active rounded-pill border text-white" id="pills-card-tab" data-bs-toggle="pill" data-bs-target="#pills-card" type="button" role="tab" aria-controls="pills-card" aria-selected="true">Gists List Card</button>
</li>
<li class="nav-item">
<button class="nav-link rounded-pill border text-white" id="pills-pin-tab" data-bs-toggle="pill" data-bs-target="#pills-pin" type="button" role="tab" aria-controls="pills-pin" aria-selected="false">Gist Pin</button>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-card" role="tabpanel" aria-labelledby="pills-card-tab" tabindex="0">
<form class="px-4 pb-4" action="api">
<div class="mb-3">
<label for="username" class="mb-2 ms-1"><i class="bi bi-github"></i> GitHub Username <span class="text-danger">*</span></label>
<input type="text" class="form-control rounded-pill border" id="username" placeholder="Enter your GitHub username" name="user" required>
</div>
<div class="row">
<div class="col-xl-6">
<div class="mb-3">
<label for="title" class="mb-2 ms-1">Card Title <span class="text-secondary"><small>(optional)</small></span></label>
<input type="text" class="form-control rounded-pill border" id="title" placeholder="My Gists" name="title">
</div>
</div>
<div class="col-xl-6">
<div class="mb-4">
<label for="gists" class="mb-2 ms-1">Number of Gists to display <span class="text-secondary"><small>(max: 30, optional)</small></span></label>
<input type="number" class="form-control rounded-pill border" id="number" placeholder="30" name="n" min="0" max="30">
</div>
</div>
</div>
<div class="form-check mb-3">
<label class="form-check-label mb-2 ms-1">
<input class="form-check-input" type="checkbox" value="dark" id="theme" name="theme">Dark Theme <span class="text-secondary"><small>(optional)</small></span>
</label>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary rounded-pill"><strong>Generate Card</strong></button>
</div>
</form>
</div>
<div class="tab-pane fade" id="pills-pin" role="tabpanel" aria-labelledby="pills-pin-tab" tabindex="0">
<form class="px-4 pb-4" action="api/pin">
<div class="mb-3 d-none">
<label for="username" class="mb-2 ms-1"><i class="bi bi-github"></i> GitHub Username <span class="text-danger">*</span></label>
<input type="text" class="form-control rounded-pill border" id="username" placeholder="Enter your GitHub username" name="user">
</div>
<div class="mb-3">
<label for="id" class="mb-2 ms-1">Gist ID <span class="text-danger">*</span></label>
<input type="text" class="form-control rounded-pill border" id="id" placeholder="Enter your Gist ID" name="id" required>
</div>
<div class="form-check mb-3">
<label class="form-check-label mt-2 ms-1">
<input class="form-check-input" type="checkbox" value="true" id="owner" name="owner" checked>Show Owner <span class="text-secondary"><small>(optional)</small></span>
</label>
</div>
<div class="form-check mb-3">
<label class="form-check-label mb-2 ms-1">
<input class="form-check-input" type="checkbox" value="dark" id="theme" name="theme">Dark Theme <span class="text-secondary"><small>(optional)</small></span>
</label>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary rounded-pill"><strong>Generate Card</strong></button>
</div>
</form>
</div>
</div>
</div>
<div class="px-4 py-3">
<p class="m-0"><small><i class="bi bi-github"></i> <a href="https://github.com/Yizack/gists-readme" class="me-3">Repository</a> <a href="/docs/">Docs</a></small></p>
<p class="m-0"><small>Inspired by <i class="bi bi-github"></i> <a href="https://github.com/anuraghazra/github-readme-stats" target="blank">anuraghazra/github-readme-stats</a>.</small></p>
<p class="m-0"><small>Made by <a href="https://github.com/Yizack" target="blank">Yizack Rangel</a>.</small></p>
</div>
</div>
</div>
</div>
</body>
</html>