generated from tripleten-com/se_project_spots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (143 loc) · 5.07 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!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="" />
<meta name="author" content="Julian McNeill" />
<meta
name="keywords"
content="HTML, CSS, Responsive, Grid, Bessie Coleman, image sharing"
/>
<link rel="stylesheet" href="pages/index.css" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<title>Spots</title>
</head>
<body>
<div class="page">
<header class="header">
<img src="images/logo.svg" alt="The Spots logo" class="header__logo" />
</header>
<main class="content">
<section class="profile page__section">
<img
src="images/avatar.jpg"
alt="A picture of Bessie Coleman"
class="profile__avatar"
/>
<div class="profile__column">
<h1 class="profile__name">Bessie Coleman</h1>
<p class="profile__description">Civil Aviator</p>
<button type="button" class="profile__edit-btn">
Edit Profile
</button>
</div>
<button type="button" class="profile__add-btn">New Post</button>
</section>
<section class="cards page__section">
<ul class="cards__list">
<template id="card-template">
<li class="card">
<img src="" alt="" class="card__image" />
<button type="button" class="card__delete-btn"></button>
<div class="card__content">
<h2 class="card__title"></h2>
<button type="button" class="card__like-btn"></button>
</div>
</li>
</template>
</ul>
</section>
</main>
<footer class="footer">
<p class="footer__copyright">2024 © Spots</p>
</footer>
<div id="edit-modal" class="modal">
<div class="modal__container">
<h2 class="modal__title">Edit profile</h2>
<button type="button" class="modal__close-btn"></button>
<form name="edit-profile" class="modal__form" novalidate>
<label for="profile-name-input" class="modal__label">
Name
<input
id="profile-name-input"
type="text"
class="modal__input"
placeholder="Type your name"
required
minlength="2"
maxlength="40"
/>
<span id="profile-name-input-error" class="modal__error"></span>
</label>
<label for="profile-description-input" class="modal__label">
Description
<input
id="profile-description-input"
type="text"
class="modal__input"
placeholder="Describe yourself"
required
minlength="2"
maxlength="200"
/>
<span id="profile-description-input-error" class="modal__error"></span>
</label>
<button type="submit" class="modal__submit-btn">Save</button>
</form>
</div>
</div>
<div id="new-post-modal" class="modal">
<div class="modal__container">
<h2 class="modal__title">New post</h2>
<button type="button" class="modal__close-btn"></button>
<form name="new-post" class="modal__form" novalidate>
<label for="new-image-input" class="modal__label">
Image link
<input
id="new-image-input"
type="url"
class="modal__input"
placeholder="Paste a link to the picture"
required
/>
<span id="new-image-input-error" class="modal__error"></span>
</label>
<label for="post-caption-input" class="modal__label">
Caption
<input
id="post-caption-input"
type="text"
class="modal__input"
placeholder="Type your caption"
required
minlength="2"
maxlength="30"
/>
<span id="post-caption-input-error" class="modal__error"></span>
</label>
<button type="submit" class="modal__submit-btn">Save</button>
</form>
</div>
</div>
<div id="preview-modal" class="modal">
<div class="modal__container modal__container_type_preview">
<button
type="button"
class="modal__close-btn modal__close-btn_type_preview"
></button>
<figure class="modal__figure">
<img
src=""
alt=""
class="modal__image"
/>
<figcaption class="modal__caption"></figcaption>
</figure>
</div>
</div>
</div>
<script src="./scripts/index.js" defer></script>
<script src="./scripts/validation.js" defer></script>
</body>
</html>