-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (67 loc) · 3.26 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
<!DOCTYPE html>
<html lang="en">
<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">
<script src="https://cdn.tailwindcss.com"></script>
<title>Joke API Task</title>
<script src="src/script.js"></script>
</head>
<body class="bg-gray-950">
<nav class="bg-gradient-to-r from-cyan-950 to-teal-800 shadow-lg">
<div class="mx-auto px-4">
<div class="flex justify-between">
<div class="flex space-x-7">
<a href="#" class="flex items-center py-4 px-2">
<img src="https://i.imgur.com/aXPB4dc.png" class="h-8 w-8 mr-2">
<span class="font-semibold text-gray-100 text-lg">Joke Generator</span>
</a>
</div>
<div class="flex items-center space-x-1">
<a href="" class="py-4 px-2 text-gray-100 font-semibold hover:text-cyan-300 transition duration-300">
Home
</a>
<a href="" class="py-4 px-2 text-gray-100 font-semibold hover:text-cyan-300 transition duration-300">
About
</a>
<a href="" class="py-4 px-2 text-gray-100 font-semibold hover:text-cyan-300 transition duration-300">
Contact
</a>
</div>
</div>
</div>
</nav>
<div class="container w-3/4 min-h-[300px] mx-auto mt-[10vh] text-gray-100 rounded-lg h-[60vh] px-4 py-4 items-center">
<div id="setup" class="mt-[10vh] mx-auto text-center text-4xl">---</div>
<div id="punchline" class="mx-auto text-center text-4xl">---</div>
<div class="mx-auto mt-[10vh] flex w-3/4 text-lg pt-7">
<div class="flex items-center mx-auto w-[50%]"><button onclick="getJoke()" class="border-4 mx-auto border-teal-800 w-32 h-16 rounded-2xl hover:bg-gray-900 transition duration-300 mr-2">
New Joke
</button></div>
<div class="flex items-center mx-auto w-[50%]"><a href="https://youtu.be/dQw4w9WgXcQ" target="_blank">
<button class="border-4 mx-auto border-teal-800 w-32 h-16 rounded-2xl hover:bg-gray-900 transition duration-300">
Bonus Joke
</button></a></div>
</div>
</div>
</body>
<footer class="bg-white rounded-lg shadow mt-[12vh] m-4">
<div class="w-full mx-auto max-w-screen-xl p-4 md:flex md:items-center md:justify-between">
<span class="text-sm text-gray-600 sm:text-center">
©2023 No copyright. By <a href="https://github.com/SpryzenAd/joke-api-task.git" class="hover:underline">SpryzenAd</a>.
</span>
<div class="flex flex-wrap items-center mt-3 text-sm font-medium text-gray-600 sm:mt-0">
<a href="#" class="mr-4 hover:underline md:mr-6 ">
About
</a>
<a href="https://github.com/15Dkatz/official_joke_api" class="mr-4 hover:underline md:mr-6">
API by 15Dkatz
</a>
<a href="" class="hover:underline">
Made with Tailwind CSS
</a>
</div>
</div>
</footer>
</html>