/
index.html
123 lines (101 loc) · 5.47 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
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Supernatural Language Generator</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Bangers|Berkshire+Swash|Orbitron|Special+Elite" rel="stylesheet">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<div class="body-wrapper">
<header id='start'>
<div class="wrapper">
<h1>Supernatural Language Generator</h1>
<div class="start-btn">
<a href="#categories">Start</a>
</div>
</div>
</header>
<main>
<div class="wrapper">
<form action="">
<fieldset class="categories" id="categories">
<h2>Who do you want to speak to?</h2>
<div class="categories-flex">
<div class="category-icon">
<p class="category-intro">I'm a witch.</p>
<label for="wizard" aria-label="wizard/witch">
<input type="radio" name="language-category" id="wizard" value="wizard">
<i class="fas fa-hat-wizard"></i>
</label>
</div>
<div class="category-icon">
<p class="category-intro">I'm a robot.</p>
<label for="alien" aria-label="alien">
<input type="radio" name="language-category" id="alien" value="alien">
<i class="fas fa-robot"></i>
</label>
</div>
<div class="category-icon">
<p class="category-intro">I'm a ghost.</p>
<label for="ghost" aria-label="ghost">
<input type="radio" name="language-category" id="ghost" value="ghost">
<i class="fas fa-ghost"></i>
</label>
</div>
<div class="category-icon">
<p class="category-intro">I'm a magic mirror.</p>
<label for="mirror" aria-label="magic mirror">
<input type="radio" name="language-category" id="mirror" value="mirror">
<i class="fas fa-star-of-david"></i>
</label>
</div>
</div>
</fieldset>
<fieldset class="user-sentence" id="text-input">
<h2>What do you want to say?</h2>
<textarea name="sentence" id="sentence" cols="5" rows="5" required placeholder="No more than 200"></textarea>
<div class="button-container">
<input type="submit" value="Convert!!">
</div>
</fieldset>
</form>
</div>
</main>
<div class="result" id="result">
<div class="wrapper">
<h3 class="result-text-style result-result">Your translation: <span>Check your translation here!</span></h3>
<div class="character-reply">
<h3 class='result-text-style alien-reply'>Hey, I'm not supernatural. You developers are supernatural.</h3>
<h3 class='result-text-style ghost-reply'>Tell me the truth, I'm kind of cute right?</h3>
<h3 class='result-text-style mirror-reply'>You really think you are talking to me? You are talking to yourself.....</h3>
<h3 class='result-text-style wizard-reply'>Are you sure you want to play magic with me?</h3>
<div class="image-wrapper alien">
<img src="assets/robot.jpg" alt="a white robot" class="result-image">
</div>
<div class="image-wrapper mirror">
<img src="assets/mirror.jpg" alt="a girl looking at a mirror" class="result-image">
</div>
<div class="image-wrapper wizard">
<img src="assets/wizard.jpg" alt="a man standing in cliff using a wand" class="result-image">
</div>
<div class="image-wrapper ghost">
<img src="assets/ghost.jpg" alt="a man's shadow in a glass" class="result-image">
</div>
</div>
<div class="restart-btn">
<a href="#start">Restart</a>
</div>
</div>
</div>
</div>
<footer>
<p>©2019 copyright Linghao Lin</p>
</footer>
<script src='https://code.jquery.com/jquery-3.2.1.min.js' integrity='sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=' crossorigin='anonymous'></script>
<script src="script.js"></script>
</body>
</html>