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
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
+
<link rel="icon" href="/data/favicon.ico" type="image/vnd.microsoft.icon">
|
7 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
+
<title>Sentiment Analyzer</title>
|
9 |
+
<style>
|
10 |
+
@font-face {
|
11 |
+
font-family: 'HPSimplified';
|
12 |
+
src: url('/data/HPSimplified.ttf') format('truetype');
|
13 |
+
font-weight: normal;
|
14 |
+
font-style: normal;
|
15 |
+
}
|
16 |
+
body {
|
17 |
+
background-size: cover;
|
18 |
+
background-attachment: fixed;
|
19 |
+
background-color: #000;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
overflow: hidden;
|
23 |
+
font-family: 'HPSimplified';
|
24 |
+
color: white;
|
25 |
+
}
|
26 |
+
.bg {
|
27 |
+
position: fixed;
|
28 |
+
bottom: 0;
|
29 |
+
left: 50%;
|
30 |
+
transform: translate(-50%);
|
31 |
+
height: 100vh;
|
32 |
+
width: 100vw;
|
33 |
+
z-index: -1;
|
34 |
+
opacity: 0.2;
|
35 |
+
object-fit: cover;
|
36 |
+
}
|
37 |
+
a {
|
38 |
+
text-decoration: none;
|
39 |
+
color: white;
|
40 |
+
}
|
41 |
+
.header {
|
42 |
+
background-color: #111b;
|
43 |
+
border-bottom: white solid 0.4vh;
|
44 |
+
height: 10vh;
|
45 |
+
padding: 2vh;
|
46 |
+
text-align: left;
|
47 |
+
display: flex;
|
48 |
+
font-size: 6vh;
|
49 |
+
font-weight: bold;
|
50 |
+
}
|
51 |
+
.header > span {
|
52 |
+
margin: auto 0;
|
53 |
+
}
|
54 |
+
.header > span:hover {
|
55 |
+
text-decoration: underline;
|
56 |
+
}
|
57 |
+
.search-form {
|
58 |
+
display: block;
|
59 |
+
right: 0;
|
60 |
+
position: absolute;
|
61 |
+
margin: auto 1vw;
|
62 |
+
}
|
63 |
+
.search-form > input {
|
64 |
+
width: 30vw;
|
65 |
+
border: initial;
|
66 |
+
background-color: #000;
|
67 |
+
color:white;
|
68 |
+
height: 6vh;
|
69 |
+
font-size: 2vh;
|
70 |
+
border-radius: 0.5vw;
|
71 |
+
margin-right: 1vh;
|
72 |
+
padding-left: 2vh;
|
73 |
+
}
|
74 |
+
.search-form > button {
|
75 |
+
height: 6vh;
|
76 |
+
font-size: 2vh;
|
77 |
+
width: 11vh;
|
78 |
+
border: initial;
|
79 |
+
border-radius: 0.5vw;
|
80 |
+
background-color: #000;
|
81 |
+
color: white;
|
82 |
+
}
|
83 |
+
|
84 |
+
.search-form > input:hover {
|
85 |
+
background-color: #111;
|
86 |
+
}
|
87 |
+
|
88 |
+
.search-form > button:hover {
|
89 |
+
background-color: #111;
|
90 |
+
cursor: pointer;
|
91 |
+
}
|
92 |
+
input, button {
|
93 |
+
font-family: 'HPSimplified';
|
94 |
+
}
|
95 |
+
main {
|
96 |
+
display: flex;
|
97 |
+
align-items: center;
|
98 |
+
justify-content: center;
|
99 |
+
font-size: 4.53vh;
|
100 |
+
}
|
101 |
+
.main {
|
102 |
+
position: absolute;
|
103 |
+
top: 50%;
|
104 |
+
left: 50%;
|
105 |
+
right: initial;
|
106 |
+
transform: translate(-50%, -50%);
|
107 |
+
text-align: center;
|
108 |
+
width: 100vw;
|
109 |
+
height: 20%;
|
110 |
+
}
|
111 |
+
.big {
|
112 |
+
display: flex;
|
113 |
+
left: 50%;
|
114 |
+
right: initial;
|
115 |
+
transform: translate(-50%, 0);
|
116 |
+
position: inherit;
|
117 |
+
margin: initial;
|
118 |
+
}
|
119 |
+
.big > input {
|
120 |
+
width: 70vw;
|
121 |
+
border: initial;
|
122 |
+
background-color: #222e;
|
123 |
+
color:white;
|
124 |
+
height: 15vh;
|
125 |
+
border-radius: 0.5vw;
|
126 |
+
margin: 3vh;
|
127 |
+
padding-left: 5.5vh;
|
128 |
+
font-size: 7vh;
|
129 |
+
}
|
130 |
+
.big > button {
|
131 |
+
height: 15vh;
|
132 |
+
width: 15vh;
|
133 |
+
border: initial;
|
134 |
+
padding: auto;
|
135 |
+
text-align: center;
|
136 |
+
border-radius: 50%;
|
137 |
+
background-color: #222;
|
138 |
+
color: white;
|
139 |
+
margin: 3vh;
|
140 |
+
}
|
141 |
+
.big > button img {
|
142 |
+
margin-top: 0.565vh;
|
143 |
+
height: 6vh;
|
144 |
+
width: 6vh;
|
145 |
+
}
|
146 |
+
.logo{
|
147 |
+
position: fixed;
|
148 |
+
bottom: 0;
|
149 |
+
right: 0;
|
150 |
+
width: -moz-fit-content;
|
151 |
+
width: fit-content;
|
152 |
+
margin: 1vw;
|
153 |
+
font-size: 0.5em
|
154 |
+
}
|
155 |
+
.logo > img {
|
156 |
+
height: 4.53vh;
|
157 |
+
}
|
158 |
+
@media screen and (orientation: portrait) {
|
159 |
+
.header {
|
160 |
+
font-size: 10vw;
|
161 |
+
text-align: center;
|
162 |
+
display: block;
|
163 |
+
height: 25vw;
|
164 |
+
}
|
165 |
+
.search-form {
|
166 |
+
position: relative;
|
167 |
+
margin: auto;
|
168 |
+
}
|
169 |
+
.search-form > input {
|
170 |
+
width: 40vw;
|
171 |
+
height: 8vw;
|
172 |
+
font-size: 2.67vw;
|
173 |
+
}
|
174 |
+
.search-form > button {
|
175 |
+
height: 8vw;
|
176 |
+
width: 16vw;
|
177 |
+
font-size: 2.67vw;
|
178 |
+
}
|
179 |
+
main {
|
180 |
+
font-size: 6vw;
|
181 |
+
}
|
182 |
+
.big {
|
183 |
+
display: block;
|
184 |
+
}
|
185 |
+
.big > input {
|
186 |
+
height: 20vw;
|
187 |
+
border-radius: 1.5vw;
|
188 |
+
font-size: 7vw;
|
189 |
+
margin: 5vw;
|
190 |
+
padding-left: 5.5vw;
|
191 |
+
width: 85vw;
|
192 |
+
}
|
193 |
+
.big > button {
|
194 |
+
height: 20vw;
|
195 |
+
width: 20vw;
|
196 |
+
}
|
197 |
+
.big > button img {
|
198 |
+
height: 7vw;
|
199 |
+
width: 7vw
|
200 |
+
}
|
201 |
+
.logo > img {
|
202 |
+
height: 7vw;
|
203 |
+
}
|
204 |
+
}
|
205 |
+
</style>
|
206 |
+
</head>
|
207 |
+
<body>
|
208 |
+
<img src="../data/bg.png" class="bg">
|
209 |
+
<div class="header">
|
210 |
+
<span><a href="/">Sentiment Analyzer</a></span>
|
211 |
+
<form class="search-form">
|
212 |
+
<input type="text" class="search-input" name="search-input" required placeholder="Search for a Movie/Show">
|
213 |
+
<button type="submit">Search</button>
|
214 |
+
</form>
|
215 |
+
</div>
|
216 |
+
<main>
|
217 |
+
<div class="main">
|
218 |
+
Get what people and critics think about a show...
|
219 |
+
<form class="search-form big">
|
220 |
+
<input type="text" class="search-input" name="search-input" required placeholder="Search for a Movie/Show">
|
221 |
+
<!-- Corrected rule -->
|
222 |
+
<button type="submit"><img src="../data/search-icon.svg"></button>
|
223 |
+
</form>
|
224 |
+
</div>
|
225 |
+
<a href="https://www.rottentomatoes.com">
|
226 |
+
<div class="logo">
|
227 |
+
<span>Powered by: </span> <img src="https://images.fandango.com/cms/assets/2d5a3340-be84-11ed-9d20-83ee649e98bd--rt25-logo-mainnav-161x50.svg" alt="Rotten tomatoes logo">
|
228 |
+
</div>
|
229 |
+
</a>
|
230 |
+
</main>
|
231 |
+
|
232 |
+
<script>
|
233 |
+
document.querySelectorAll('.search-form').forEach((element) => {
|
234 |
+
element.addEventListener('submit', function (event) {
|
235 |
+
event.preventDefault();
|
236 |
+
let inputValue = event.target.querySelector('.search-input').value;
|
237 |
+
let redirectURL = '/search?query=' + encodeURIComponent(inputValue);
|
238 |
+
window.location.href = redirectURL;
|
239 |
+
});
|
240 |
+
});
|
241 |
+
</script>
|
242 |
+
</body>
|
243 |
+
</html>
|