-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (66 loc) · 2.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Generate short poems on any topic using AI."
/>
<title>Poem Generator</title>
<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=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Jost:ital,wght@0,100..900;1,100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet"
/>
<link href="css/styles.css" rel="stylesheet" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.6.8/axios.min.js"
integrity="sha512-PJa3oQSLWRB7wHZ7GQ/g+qyv6r4mbuhmiDb8BjSFZ8NZ2a42oTtAq5n0ucWAwcQDlikAtkub+tPVCw4np27WCg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://unpkg.com/typewriter-effect@latest/dist/core.js"></script>
</head>
<body>
<div class="container">
<header>
<h1>
<span class="top-line">AI Poem</span>
<span class="bottom-line">Generator</span>
</h1>
</header>
<main>
<div class="bg-box"></div>
<form id="prompt-form">
<div class="form-group">
<input
type="text"
class="user-input"
id="user-input"
placeholder="Enter topic here"
autocomplete="off"
autofocus
required
/><button type="submit" class="submit-button"><p>Submit</p></button>
</div>
</form>
<div class="generating-message hidden blinking"></div>
<div class="welcome-message">Enter a topic to generate a poem...</div>
<section class="poem hidden" id="poem"></section>
</main>
<footer>
<p>
Open source
<a href="https://github.com/ellie-holt/poem-generator" target="_blank"
>code</a
>
by
<a href="https://github.com/ellie-holt" target="_blank">Ellie Holt</a>
</p>
</footer>
<script src="js/index.js"></script>
</div>
</body>
</html>