-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (103 loc) · 5.74 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 lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pathfinding Visualizer</title>
<link rel="icon shortcut" type="image/png" href="./public/path.png" />
<link rel="stylesheet" href="./styles/main.css" type="text/css" />
<link rel="stylesheet"
href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" />
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
</head>
<body>
<header class="center">
<h1 class="page-title">Pathfinding Visualizer</h1>
<div class="header-right-side align-center">
<div id="walkthrough-tutorial">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M19.3636 5.44995H4.63636C3.72818 5.44995 3 6.17813 3 7.08631V16.9045C3 17.8045 3.72818 18.5409 4.63636 18.5409H8.72727H10.5H12.5H15.2727H19.3636C20.2636 18.5409 20.9918 17.8045 20.9918 16.9045L21 7.08631C21 6.17813 20.2636 5.44995 19.3636 5.44995ZM15.2727 11.9954L9.54545 15.2681V8.72268L15.2727 11.9954Z"
stroke="#fff" stroke-width="1.25" stroke-linejoin="round" />
</svg>
</div>
<a id="source-link" href="https://github.com/VinayakBagaria/Pathfinding-Visualizer" target="_blank">
<img src="./public/github-icon.png" alt="GitHub" />
</a>
</div>
<div class="dropdown center" id="algorithms">
<div class="dropdown-controls">Select Algorithm</div>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17 9.5L12 14.5L7 9.5" stroke="#2C3556" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
<ul class="dropdown-menu">
<li class="dropdown-item" id="dfs-algorithm">DFS</li>
<li class="dropdown-item" id="bfs-algorithm">BFS</li>
</ul>
</div>
<div class="dropdown center" id="speed">
<div class="dropdown-controls">Speed</div>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17 9.5L12 14.5L7 9.5" stroke="#2C3556" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
<ul class="dropdown-menu">
<li class="dropdown-item" id="fast-speed">Fast</li>
<li class="dropdown-item" id="average-speed">Average</li>
<li class="dropdown-item" id="slow-speed">Slow</li>
</ul>
</div>
</header>
<div class="action-buttons center">
<button class="outlined center" id="play-pause" disabled data-playstate="pause">Pause</button>
<button class="outlined center" id="visualize" disabled>Visualize!</button>
<button class="ghost center" id="clear-board">Clear Board</button>
<button class="ghost center" id="clear-walls">Clear Walls</button>
<button class="ghost center" id="clear-path">Clear Path</button>
</div>
<div class="table-container center">
<table id="board"></table>
</div>
<div class="full-fixed center" id="modal-overlay">
<div class="modal-container">
<div id="modal-close">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 18L18 6M6 6L18 18" stroke="#4C5578" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
<div class="modal-icon center">
<svg width="57" height="56" viewBox="0 0 57 56" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="4.5" y="4" width="48" height="48" rx="24" fill="#FFE7E8" />
<path
d="M29.5833 32.3333H28.5V28H27.4167M28.5 23.6667H28.5108M38.25 28C38.25 33.3848 33.8848 37.75 28.5 37.75C23.1152 37.75 18.75 33.3848 18.75 28C18.75 22.6152 23.1152 18.25 28.5 18.25C33.8848 18.25 38.25 22.6152 38.25 28Z"
stroke="#FA5762" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" />
<rect x="4.5" y="4" width="48" height="48" rx="24" stroke="#FFF4F5" stroke-width="8" />
</svg>
</div>
<p class="center" id="modal-title"></p>
<p class="center" id="modal-description"></p>
</div>
</div>
<div class="full-fixed" id="walkthrough-overlay">
<div id="walkthrough-container" data-direction="ltr">
<div id="walkthrough-arrow"></div>
<div id="walkthrough-image"></div>
<div id="walkthrough-stepper">1 of 5</div>
<h5 id="walkthrough-title">Overview of algos</h5>
<div id="walkthrough-separator"></div>
<p id="walkthrough-description">You can check daily insights from here.</p>
<div class="align-center">
<button class="outlined center smaller dark" id="walkthrough-next">Next</button>
<button class="ghost center smaller dark" id="walkthrough-skip">Skip</button>
</div>
</div>
</div>
<script src="./build/index.js"></script>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
</body>
</html>