generated from tripleten-com/se_project_spots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (161 loc) · 5.63 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
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Eddison Torres" />
<meta name="description" content="photo sharing platform" />
<meta name="keywords" content="CSS, HTML, Photo, Social Media" />
<link rel="stylesheet" href="./pages/index.css" />
<link rel="icon" href="./favicon.ico" />
<title>Spots</title>
</head>
<body>
<div class="page">
<header class="header">
<img src="./images/logo.svg" alt="spot logo" class="header__logo" />
</header>
<main class="content">
<section class="profile page__section">
<img
src="./images/avatar.jpg"
alt="profile avatar"
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-button">
<img
src="./images/pencil.svg"
class="profile__pencil"
alt="pencil icon"
/>Edit Profile
</button>
</div>
<button type="button" class="profile__add-button">
<img
src="./images/plus.svg"
class="profile__plus"
alt="plus icon"
/>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-button"></button>
<div class="card__description">
<h2 class="card__title"></h2>
<button type="button" class="card__like-button"></button>
</div>
</li>
</template>
</ul>
</section>
</main>
<footer class="footer">
<p class="footer__text">2024 © Spots</p>
</footer>
<div class="modal" id="edit-profile-modal">
<div class="modal__container">
<div class="modal__header">
<button type="button" class="modal__close-button"></button>
<h2 class="modal__title">Edit profile</h2>
</div>
<form name="edit-profile" class="modal__form" novalidate>
<label for="profile-name-input" class="modal__label">
Name
<input
id="profile-name-input"
class="modal__input modal__input_type_error"
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"
class="modal__input modal__input_type_error"
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-button modal__submit-button_disabled"
>
Save
</button>
</form>
</div>
</div>
<div class="modal" id="add-card-modal">
<div class="modal__container">
<div class="modal__header">
<h2 class="modal__title">New post</h2>
<button type="button" class="modal__close-button"></button>
</div>
<form name="add-card" class="modal__form" novalidate>
<label for="add-card-link-input" class="modal__label">
Image link
<input
id="add-card-link-input"
class="modal__input modal__input_type_error"
name="link"
placeholder="Paste a link to the picture"
type="url"
required
/>
<span id="add-card-link-input-error" class="modal__error"></span>
</label>
<label for="add-card-name-input" class="modal__label">
Caption
<input
id="add-card-name-input"
class="modal__input modal__input_type_error"
name="name"
placeholder="Type your caption"
type="text"
required
minlength="2"
maxlength="30"
/>
<span id="add-card-name-input-error" class="modal__error"></span>
</label>
<button
type="submit"
class="modal__submit-button modal__submit-button_disabled"
>
Save
</button>
</form>
</div>
</div>
</div>
<div class="modal" id="preview-modal">
<div class="modal__container modal__container-preview">
<button
type="button"
class="modal__close-button modal__close-button_type_preview"
></button>
<img src="#" alt="" class="modal__image" />
<p class="modal__caption"></p>
</div>
</div>
<script defer src="/scripts/validation.js"></script>
<script defer src="/scripts/index.js"></script>
</body>
</html>