-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
119 lines (112 loc) · 4.63 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Instagram - Home</title>
<link rel="shortcut icon" href="./assets/img/icon-instagram.svg" type="image/x-icon" />
<link rel="stylesheet" href="./assets/styles/style.css" />
<link rel="stylesheet" href="./assets/styles/home.css" />
</head>
<body>
<header class="header">
<div class="header__hero">
<img src="./assets/img/logo.png" alt="Logo de instagram" />
</div>
<div class="header__search">
<input class="form__input" type="text" placeholder="¿Quien deseas buscar?" id="headerSearchInput" >
<ul id="searcherResults" class="header__search--results">
<li>No hay resultados.</li>
</ul>
</div>
<div class="header__access">
<a class="header__access--home" href="./home.html">
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px">
<path
fill="none"
stroke="#000000"
stroke-miterlimit="10"
stroke-width="2"
d="M19,11v9h-5v-6h-4v6H5v-9H3.606L12,3.445L20.394,11H19z"
/>
</svg>
</a>
<div class="header__access__user">
<div>
<div class="header__access__user--image">
<img id="headerUserImage" src="./assets/img/user-account.png" alt="imagen del perfil del usuario" />
</div>
<p id="headerUserFullname"></p>
</div>
<ul>
<li><a href="./profile.html">Perfil</a></li>
<li><a id="changePassword">Cambiar contraseña</a></li>
<li><a id="signOut">Cerrar sesion</a></li>
</ul>
</div>
</div>
</header>
<main class="main">
<section id="homePosts" class="post-list">
</section>
<section id="open-post" class="modal">
<div class="modal-content modal-post">
<figure>
<img id="postImg" src="" alt="Imagen de la publicacion" />
</figure>
<div class="modal-post__details">
<div class="modal-post__details--header">
<div id="postHeader"></div>
<div class="modal-close">
<span id="close-post">×</span>
</div>
</div>
<div class="modal-post__details--description">
<div id="postDescription"></div>
<p><span id="postCommentAmount"></span> Comentarios</p>
</div>
<div id="postCommentList" class="modal-post__details--comments"></div>
<div id="postFooter" class="modal-post__details--footer">
<a id="modalPostLikeIcon">
<img id="modalPostLikeIcon" alt="icono de favorito">
</a>
<p>
<span id="modalPostLikes"></span> Me gusta
</p>
</div>
<div class="modal-post__details--addComent">
<input id="ModalPostinputComment" class="form__input" type="text" placeholder="Agrega un comentario..." />
<a id="sentComment">Publicar</a>
</div>
</div>
</div>
</section>
<section id="open-changePassword" class="modal">
<div class="modal-content">
<span id="close-changePassword" class="modal-close">×</span>
<h3 class="modal-content--title">Cambiar contraseña</h3>
<form id="formChangePassword">
<div class="container__form__input">
<input class="form__input" id="inputLastPassword" placeholder="Contraseña actual" type="password">
<span id="inputLastPasswordError" class="form__error"></span>
</div>
<div class="container__form__input">
<input class="form__input" id="inputNewPassword" placeholder="Nueva contraseña" type="password">
<span id="inputNewPasswordError" class="form__error"></span>
</div>
<div class="container__form__input">
<input class="form__input" id="inputNewPasswordConfirm" placeholder="Confirmar contraseña" type="password">
<span id="inputNewPasswordConfirmError" class="form__error"></span>
</div>
<button id="btnChangePassword" class="form__btn" type="button">Cambiar</button>
</form>
</div>
</section>
</main>
<script src="https://www.gstatic.com/firebasejs/6.2.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.0/firebase-firestore.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script type="module" src="js/home.js"></script>
</body>
</html>