-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmore-info.html
More file actions
104 lines (92 loc) · 4.89 KB
/
more-info.html
File metadata and controls
104 lines (92 loc) · 4.89 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
<!DOCTYPE html>
<html lang="en" id="root" color-scheme="light">
<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">
<link rel="shortcut icon" href="./images/icon.png" type="image/x-icon">
<title id="page-title">Superhero Hunter</title>
<!-- Google fonts -->
<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=Kanit:ital,wght@0,200;0,300;0,600;0,900;1,100;1,200;1,300;1,800&display=swap"
rel="stylesheet">
<!-- fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="./css/styles.css">
<link rel="stylesheet" href="./css/more-info.css">
</head>
<body>
<!-- Navbar -->
<nav class="flex-row navbar">
<!-- Site Icon and Name -->
<div class="flex-row navbar-brand">
<img class="logo" src="./images/mask.gif" alt="">
<a href="./index.html">
<span>Superhero Hunter</span>
</a>
</div>
<!-- Theme Button and Favourites Button -->
<div class="flex-row favAndTheme-btn">
<button id="theme-btn" class="btn"><i class="fa-solid fa-moon"></i></button>
<a class="flex-row link-to-different-page" href="./favorites.html">
<button class="btn fav-btn"> <i class="fa-solid fa-heart fav-icon"></i> Favourites</button>
</a>
<a class="flex-row link-to-different-page" href="./index.html">
<button class="btn fav-btn"> <i class="fa-solid fa-house"></i> Home</button>
</a>
</div>
</nav>
<!-- Info Container -->
<div class="flex-row info">
<section class="flex-col" id="info-container">
<!-- Sturcture of the data that is added to favourites using DOM manipulation -->
<!-- <div class="flex-row hero-name">${heroInfo.name}</div>
<div class="flex-row hero-img-and-more-info">
<img id="portraitImage" class="hero-img" src="${heroInfo.portraitImage}" alt="">
<img style="display:none;" id="landscapeImage" src="${heroInfo.landscapeImage}" alt="">
<div class="flex-col more-info">
<div class="flex-row id">
<b>ID:</b><span>${heroInfo.id}</span>
</div>
<div class="flex-row comics">
<b>Comics:</b><span>${heroInfo.comics}</span>
</div>
<div class="flex-row series">
<b>Series:</b><span>${heroInfo.series}</span>
</div>
<div class="flex-row stories">
<b>Stories:</b><span>${heroInfo.stories}</span>
</div>
</div>
</div>
<div class="flex-col hero-discription">
<b>Discription:</b>
<p>${heroInfo.description != "" ? heroInfo.description : "No Description Available"}</p>
</div>
<div style="display:none;">
<span>${heroInfo.name}</span>
<span>${heroInfo.portraitImage}</span>
<span>${heroInfo.landscapeImage}</span>
<span>${heroInfo.id}</span>
<span>${heroInfo.comics}</span>
<span>${heroInfo.series}</span>
<span>${heroInfo.stories}</span>
<span>${heroInfo.squareImage}</span>
<span>${heroInfo.description}</span>
</div>
<button class="btn add-to-fav-btn">${favouritesCharacterIDs.has(`${heroInfo.id}`) ? "<i class=\"fa-solid fa-heart-circle-minus\"></i> Remove from Favourites" :"<i class=\"fa-solid fa-heart fav-icon\"></i> Add to Favourites</button>"} -->
</section>
</div>
<!-- Toasts for notifying user that character is added or removed from favourites -->
<span data-visiblity="hide" class="fav-toast">Added to Favourites</span>
<span data-visiblity="hide" class="remove-toast">Removed from Favourites</span>
<!-- Background Image -->
<img class="bg-img" src="./images/background-light-img.png" alt="">
<!-- External Script file -->
<script defer src="./js/more-info.js"></script>
</body>
</html>