-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (106 loc) · 3.49 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
<!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" />
<meta
name="description"
content="Challenge de Eureka Lab | HTML, Sass, Javascript | Agostina Arevalo Jaube"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="shortcut icon"
href="./assets/ironman-icon.png"
type="image/x-icon"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700&family=Roboto:wght@400;600;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./public/styles/css/styles.css" />
<title>Marvel | Eureka Labs Challenge</title>
</head>
<body>
<header>
<section class="header-container">
<a href="index.html"
><img class="logo" src="assets/marvel-logo.png" alt="Marvel Logo"
/></a>
<h1 class="title">SUPER<span class="title-heroes">HEROES</span></h1>
<nav class="navbar">
<a class="nav-link" id="favorites-page">Favorites</a>
<hr class="line" />
<a class="nav-link" href="index.html">Home</a>
</nav>
</section>
</header>
<main class="main-container">
<section class="hero-background" id="hero">
<div class="hero-container">
<h2 class="text">
explore, search and build your favorite
<span class="super">superhero</span> list
</h2>
<div class="search-container">
<input
class="search-input"
type="text"
id="search-input"
placeholder="Search superhero"
/>
<button class="regular-button search-button" id="search-button">
Search
</button>
</div>
</div>
</section>
<div class="hidden" id="loader">
<div class="spinner" id="spinner"></div>
</div>
<!-- ? ALL SUPERHEROES SECTION -->
<section class="superheroes-section" id="all-superheroes-section">
<div>
<h2 class="title-section">
SUPER<span class="title-heroes">HEROES</span>
</h2>
<hr class="tittle-underline" />
</div>
<div class="all-superheroes" id="all-superheroes-container"></div>
<div class="pagination-container" id="pagination-container"></div>
</section>
<div class="all-superheroes" id="search-container"></div>
<!-- ? FAVORITES SECTION -->
<section class="superheroes-section hidden" id="favorites-section">
<div>
<h2 class="title-section">
MY <span class="title-heroes">FAVORITES</span>
</h2>
<hr class="tittle-underline" />
</div>
<section class="all-superheroes" id="favorites-container"></section>
</section>
<!-- ? CHARACTER SECTION -->
<section
class="character-container hidden"
id="character-section"
></section>
<div class="hidden" id="error-container"></div>
</main>
<script src="src/index.js" type="module"></script>
<script type="module">
import { displayMaximizedCharacter } from './src/navigation/displayMaximizedCharacter.js';
import { displayFavorites } from './src/navigation/displayFavorites.js';
window.displayMaximizedCharacter = displayMaximizedCharacter;
window.displayFavorites = displayFavorites;
</script>
<script src="src/actions/addToFav.js"></script>
<script src="src/actions/removeFromFav.js"></script>
</body>
</html>