Repository navigation
Expand file tree
/
Copy pathsearch.html
More file actions
66 lines (61 loc) · 3.05 KB
/
Copy pathsearch.html
File metadata and controls
66 lines (61 loc) · 3.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Search public GitHub repositories, filter by language, and sort by name or stars.">
<title>Search | GitHub Repository Explorer</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<script src="js/script.js" defer></script>
</head>
<body>
<header id="home" class="site-header">
<nav class="container navigation" aria-label="Main navigation">
<a class="brand" href="index.html">Repository Explorer</a>
<div class="nav-links">
<a href="index.html">Home</a>
<a href="search.html" aria-current="page">Search</a>
</div>
</nav>
</header>
<main class="container">
<section id="search" class="search-section" aria-labelledby="page-title">
<h1 id="page-title">Search repositories</h1>
<p class="text-secondary">Find repositories by username, then narrow down your search.</p>
<form id="search-form" class="search-form" novalidate>
<label for="username" class="form-label">GitHub username</label>
<div class="search-row">
<input id="username" class="form-control" name="username" placeholder="e.g. octocat" required maxlength="39" pattern="[A-Za-z0-9]+(-[A-Za-z0-9]+)*" autocomplete="off" autocapitalize="none" spellcheck="false" aria-describedby="username-error">
<button id="search-button" class="btn btn-primary" type="submit">Search</button>
</div>
<p id="username-error" class="validation-message" role="alert"></p>
</form>
</section>
<section class="results-section" aria-labelledby="results-title">
<div class="results-heading">
<h2 id="results-title">Repositories</h2>
<p id="result-count" class="text-secondary" aria-live="polite"></p>
</div>
<div id="filters" class="filter-row" hidden>
<div>
<label for="language" class="form-label">Language</label>
<select id="language" class="form-select"><option value="">All languages</option></select>
</div>
<div>
<label for="sort" class="form-label">Sort by</label>
<select id="sort" class="form-select">
<option value="name-asc">Name: A–Z</option>
<option value="name-desc">Name: Z–A</option>
<option value="stars-desc">Stars: high to low</option>
<option value="stars-asc">Stars: low to high</option>
</select>
</div>
</div>
<p id="status" class="status-message" role="status" aria-live="polite">Enter a GitHub username to see their public repositories.</p>
<div id="repositories" class="repository-grid"></div>
</section>
</main>
<!-- <footer class="container site-footer">GitHub Repository Explorer · Practical Task 1</footer> -->
</body>
</html>