-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (123 loc) · 6.7 KB
/
Copy pathindex.html
File metadata and controls
133 lines (123 loc) · 6.7 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
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
<!DOCTYPE html>
<html lang="en"
class="h-full bg-slate-300 dark:bg-gray-900 bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern.svg')] dark:bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern-dark.svg')] bg-repeat">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- External Resources -->
<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=Fira+Sans+Condensed:wght@400;600;700&family=Fira+Sans:ital,wght@0,600;0,700;1,400&family=Sedgwick+Ave+Display&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<link href="https://cdn.jsdelivr.net/npm/daisyui@2.51.5/dist/full.css" rel="stylesheet" type="text/css">
<!--Tailwind CSS-->
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://kit.fontawesome.com/5f4c03ee38.js" crossorigin="anonymous"></script>
<title>lyksong: Search For Songs By Lyrics.</title>
<link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico">
</head>
<body>
<!--Main heading-->
<header>
<div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16 z-10 relative">
<h1
class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
lyksong</h1>
<p class="mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 lg:px-48 dark:text-gray-200">Can't remember
what that song is called? Find it with <span id="title">lyksong</span>.<br>Enter an artist and
some lyrics to
get
started.</p>
<!--Search Form-->
<form id="search-form" class="flex flex-col lg:flex-row justify-around items-center">
<!-- Search boxes -->
<div class="flex flex-col md:flex-row justify-around items-center w-full">
<div class="flex items-center md:w-1/2 w-full lg:w-2/5">
<i class="fa-solid fa-user fa-2xl mx-1 mr-2"></i>
<input type="search" id="search-artist"
class="m-1 md:w-full w-full p-4 pl-8 input input-bordered glass dark:text-white placeholder-gray-500 placeholder-opacity-50 dark:placeholder-gray-200 dark:placeholder-opacity-50"
placeholder="Enter artist name..." />
</div>
<div class="flex items-center w-full">
<i class="fa-solid fa-comment-dots fa-2xl mx-1"></i>
<input type="search" id="search-lyrics"
class="m-1 w-full p-4 pl-8 input input-bordered glass dark:text-white placeholder-gray-500 placeholder-opacity-50 dark:placeholder-gray-200 dark:placeholder-opacity-50"
placeholder="Enter lyrics..." />
</div>
</div>
<!-- Buttons -->
<div class="flex justify-around w-1/4 mt-5 lg:my-0">
<button id="search-button" type="submit"
class="btn glass m-1 lg:ml-2 lg:w-1/2 w-full p-4 text-gray-500 dark:text-gray-200 hover:bg-sky-200 dark:hover:bg-inherit">
Search
</button>
<!--Button for history-->
<div class="dropdown dropdown-end dropdown-hover w-1/2">
<button tabindex="0" type="button"
class="btn glass m-1 p-4 text-gray-500 dark:text-gray-200 hover:bg-sky-200 dark:hover:bg-inherit">History</button>
<ul id="search-history-list" class="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-72 sm:w-96"
tabindex="0">
<span id="no-history">No search history.</span>
<li id="0" class="hidden"></li>
<li id="1" class="hidden"></li>
<li id="2" class="hidden"></li>
<li id="3" class="hidden"></li>
<li id="4" class="hidden"></li>
<li id="5" class="hidden"></li>
<li id="6" class="hidden"></li>
<li id="7" class="hidden"></li>
<li id="8" class="hidden"></li>
<li id="9" class="hidden"></li>
</ul>
</div>
</div>
</form>
</div>
<div class="bg-gradient-to-b from-blue-50 to-transparent dark:from-blue-900 w-full h-2/5 absolute top-0 left-0 z-0">
</div>
</header>
<div class="relative z-20" aria-labelledby="modal-title" role="dialog" aria-modal="true" id="modal" hidden>
<!-- Gradient bg. -->
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div>
<div class="fixed inset-0 z-20 overflow-y-auto">
<div class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0">
<div
class="relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg">
<div class="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div
class="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
<svg class="h-6 w-6 text-red-600" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" />
</svg>
</div>
<div class="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
<h3 class="text-base font-semibold leading-6 text-gray-900" id="modal-title">Oops...</h3>
<div class="mt-2">
<p class="text-sm text-gray-500">We couldn't find what you're looking for!<br>Give me the name of an artist and some lyrics and try again.</p>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6">
<button type="button" id="continueButton"
class="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 sm:ml-3 sm:w-auto">Continue</button>
</div>
</div>
</div>
</div>
</div>
<!-- Search results -->
<section id="search-results" class="grid xl:grid-cols-2"></section>
</main>
<!--External resources-->
<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
<script src="./assets/js/searchSongs.js"></script>
<script src="./assets/js/script.js"></script>
</body>
</html>