-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (70 loc) · 3.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RepoSF Visualizer</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="logo.jpg">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">RepoSF Visualizer</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#repoForm">Visualize</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-5">
<div class="jumbotron text-center">
<h1 class="display-4">Welcome to RepoSF Visualizer</h1>
<p class="lead">Easily visualize your repo's stars and forks. Enter the repository details below to get started.</p>
</div>
<div class="row justify-content-center">
<div class="col-md-6">
<form id="repoForm">
<div class="mb-3">
<label for="username" class="form-label">GitHub Username</label>
<input type="text" class="form-control" id="username" required>
</div>
<div class="mb-3">
<label for="repository" class="form-label">Repository Name</label>
<input type="text" class="form-control" id="repository" required>
</div>
<div class="mb-3">
<label for="theme" class="form-label">Select Theme</label>
<select class="form-control" id="theme">
<option value="default">Default</option>
<option value="dark">Dark</option>
<option value="light">Light</option>
<option value="colorful">Colorful</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Visualize Forks & Stars</button>
</form>
</div>
</div>
<div class="mt-5">
<canvas id="forksStarsChart"></canvas>
<div class="text-center mt-3">
<button id="downloadButton" class="btn btn-success">Download Chart</button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="main.js"></script>
</body>
</html>