Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f26d058
API server
AdrianSerranoRojas Dec 1, 2021
75f2bf7
index + boostrap
cicu90 Dec 1, 2021
be886b4
creating files
AdrianSerranoRojas Dec 1, 2021
3b05878
add css page + add header
cicu90 Dec 1, 2021
6024405
grid body + css header
cicu90 Dec 1, 2021
92543e0
style to grid
cicu90 Dec 1, 2021
5968141
first fetch
AdrianSerranoRojas Dec 1, 2021
dd5cf05
Merge branch 'main' of https://github.com/AdrianSerranoRojas/blog-wit…
AdrianSerranoRojas Dec 1, 2021
5b4ce2d
sharing content
AdrianSerranoRojas Dec 1, 2021
19dda76
script boostrap
cicu90 Dec 1, 2021
c34b26b
create content posts
AdrianSerranoRojas Dec 1, 2021
8a69ad5
create objet, modal and content
AdrianSerranoRojas Dec 1, 2021
bd22cac
generate content 3 fetch
AdrianSerranoRojas Dec 2, 2021
5941efe
create html section-carusel-card
cicu90 Dec 2, 2021
126b177
html and script pull
cicu90 Dec 2, 2021
ef6fb25
create div of cards in js
cicu90 Dec 2, 2021
2fe5b72
next and prev buttons
AdrianSerranoRojas Dec 2, 2021
9d330a3
Merge branch 'main' of https://github.com/AdrianSerranoRojas/blog-wit…
AdrianSerranoRojas Dec 2, 2021
41bf9ee
css container myblob y navbar
cicu90 Dec 2, 2021
021db43
Merge branch 'main' of https://github.com/AdrianSerranoRojas/blog-wit…
cicu90 Dec 2, 2021
1d4f7ae
css
cicu90 Dec 2, 2021
95b19eb
modal box and comments
AdrianSerranoRojas Dec 3, 2021
34d4642
create comments
AdrianSerranoRojas Dec 3, 2021
1eca903
show comments ok
AdrianSerranoRojas Dec 3, 2021
23d6b03
change colours and cards
AdrianSerranoRojas Dec 3, 2021
d8df1c4
function delete
cicu90 Dec 7, 2021
dd0e907
merge from pull of adrian
cicu90 Dec 7, 2021
9eebeff
many thing - function edit, delete. add only photo to users cards. ad…
cicu90 Dec 8, 2021
8d5f26a
UE changes
AdrianSerranoRojas Dec 9, 2021
cafb5a3
pull de adrian y css
cicu90 Dec 9, 2021
2dcad4b
pull general
cicu90 Dec 9, 2021
0fbc9b5
css pCard
cicu90 Dec 9, 2021
b2eea60
UI changes V2
AdrianSerranoRojas Dec 9, 2021
a3cd6c3
Merge branch 'main' of https://github.com/AdrianSerranoRojas/blog-wit…
AdrianSerranoRojas Dec 9, 2021
3d59c35
db.json add img to post and users
cicu90 Dec 9, 2021
5273169
Random images
AdrianSerranoRojas Dec 9, 2021
312d7b3
css continue
cicu90 Dec 9, 2021
c3e4f9c
merge
cicu90 Dec 9, 2021
4db64a1
tidy
AdrianSerranoRojas Dec 9, 2021
850e70e
last css change
cicu90 Dec 9, 2021
0ddb4b1
finish
cicu90 Dec 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 201 additions & 0 deletions Index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<!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" />
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
defer
></script>
<!--script boostrap-->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<!--link css boostrap-->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="/assets/style.css" />
<link rel="stylesheet" href="assets\modals.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Arimo:ital,wght@1,600&family=Cairo:wght@300;400&family=Kreon:wght@300;700&family=Lato:wght@300&family=Literata:ital@1&display=swap"
rel="stylesheet"
/>
<script src="/assets/script.js" defer></script>
<title>Blog Api</title>
</head>
<body>
<!--HEADER-->
<header class="header">
<div class="menu">
<nav class="navbar navbar-light bg-light">
<div class="container-fluid">
<span class="navbar-text">
<ul>
<li>Home</li>
<li>Contact</li>
<li>FAQ</li>
</ul>
</span>
</div>
</nav>
</div>
</header>
<!--BLOG SECTION-->
<section class="myBlog">
<div class="container">
<div class="banner-Blog">
<div class="banner-text">
<h1 class="textBlog">My Blog</h1>
<h4 class="textBlog-1">Blog with Api</h4>
<h4 class="textBlog-1">By: Carla & Adrian</h4>
</div>
</div>
</div>
</section>
<!--Container Carusel-->
<section class="carusel-a">
<div>
<!--Carusel -->
<div class="carousel-inner-a">
<div class="carousel-item-a">
<!--contenedor de cartas del carrusel-->
<div class="btnPreNext">
<button
class="btn btn-outline-primary"
id="carousel-control-prev-a"
>
Previous
</button>
<button
class="btn btn-outline-primary"
id="carousel-control-next-a"
>
Next
</button>
</div>
<div class="row row-cols-1 row-cols-md-3 g-4" id="container-card-a">
<!--espacio para cartas de function updatePostList JS-->
</div>
</div>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="staticBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="staticBackdropLabel">Description</h4>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div id="modal-content" class="modal-body"></div>
<div class="modal-footer">
<button
type="button"
id="closeCard"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
<button
id="comments-button"
type="button"
class="btn btn-primary-com"
>
Load Comments
</button>
</div>
</div>
</div>
</div>
</section>
<section id="modal-Edit">
<!-- Modal -->
<div
class="modal fade"
id="exampleModalEdit"
tabindex="-1"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exampleModalLabel">Posts Edit</h4>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label"
>Title:</label
>
<input
type="text"
class="form-control"
id="exampleFormControlInput1"
/>
</div>
<div class="mb-3">
<label for="exampleFormControlTextarea1" class="form-label"
>Comment:</label
>
<textarea
class="form-control"
id="exampleFormControlTextarea1"
rows="3"
></textarea>
</div>
</div>
<div class="modal-footer" id="footerCard">
<button
type="button"
id="btnCloseEdit"
class="btn btn-secondary btnCloseEdit"
data-bs-dismiss="modal"
>
Close
</button>
<button
type="button"
id="btnSaveEdit"
value=""
class="btn btn-primary"
>
Save changes
</button>
</div>
</div>
</div>
</div>
</section>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/pen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/pencil-on-a-square-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-10.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-11.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-12.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-5.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-6.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-7.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-8.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/postImg/post-img-9.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/user imgs/user-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/user imgs/user1(1).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/user imgs/user1(2).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/user imgs/user1(3).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions assets/modals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
:root {
--color-ppl: #e4dfda;
--color-secundario: #3c7595;
--color-details: #4595a5;
--color-details2: #f89335;
}
body,
header {
background-color: var(--color-ppl);
font-family: "Literata", serif;
}
.modal-content {
position: relative;
display: flex;
flex-direction: column;
width: 150%;
pointer-events: auto;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0.3rem;
outline: 0;
cursor: pointer;
}
.form-control {
display: block;
width: 95%;
padding: 1rem 1.5rem;
font-size: 1rem;
font-weight: 500;
line-height: 1.5;
color: #212529;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.modal-footer {
display: flex;
}
#text-com {
vertical-align: text-top;
}

/*MODAL EDIT*/
#footerCard {
display: inline-flex;
flex-direction: row;
}
.btn-secondary,
.btnCloseEdit {
margin-top: 3%;
margin-right: 10%;
color: #fff;
background-color: var(--color-details2);
border-color: #6c757d;
}
/*COMMENTS MODAL*/
.modal-header {
display: flex;
flex-direction: column-reverse;
}
/*BTN COMMENTS*/
.btn-primary-com {
margin-top: 3%;
vertical-align: text-bottom;
color: var(--color-ppl);
background-color: var(--color-secundario);
text-align: center;
}
Loading