Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3504ad3
added html structure
Interna1ta Aug 9, 2021
b8a1419
modal done
ParisArcos Aug 9, 2021
4ce7867
css changes
ParisArcos Aug 10, 2021
35753e6
added cursor
Interna1ta Aug 10, 2021
9bbea20
Fetch data
ParisArcos Aug 10, 2021
16b9fd7
post main
Interna1ta Aug 10, 2021
5550337
fetch local data
ParisArcos Aug 10, 2021
1450be2
tinder cards
Interna1ta Aug 10, 2021
f74dcc6
getPostData(id)
ParisArcos Aug 10, 2021
7f8d5f4
added dynamic main post
Interna1ta Aug 10, 2021
6ca2994
fix add main post to DOM
Interna1ta Aug 10, 2021
5d317bb
Merge branch 'pere' into paris
ParisArcos Aug 10, 2021
8d1ab57
merge and solved conflicts
Interna1ta Aug 11, 2021
9fbc849
solved duplicated tinder posts
Interna1ta Aug 11, 2021
1c38511
modal fucked
ParisArcos Aug 11, 2021
677b346
added inline posts list section
Interna1ta Aug 11, 2021
fc19f7f
fixed modal bug
Interna1ta Aug 11, 2021
27fccc7
added post templates
Interna1ta Aug 11, 2021
1b2d001
modal template (bug)
ParisArcos Aug 11, 2021
994c167
main container
Interna1ta Aug 11, 2021
95993d2
solved merge problems
Interna1ta Aug 11, 2021
c417c69
template modal fixed
ParisArcos Aug 11, 2021
50284f4
fix modal post
Interna1ta Aug 11, 2021
2f8be98
modal styles
Interna1ta Aug 11, 2021
d973f55
Merge branch 'dev' into paris
ParisArcos Aug 11, 2021
2007f05
index problems fixed
ParisArcos Aug 11, 2021
285358c
general style improvements
Interna1ta Aug 11, 2021
8783963
responsive css
Interna1ta Aug 11, 2021
cebbab9
post modal styles
Interna1ta Aug 12, 2021
0e62105
Rename with BEM methodology
Interna1ta Aug 12, 2021
cecd200
added dark mode
Interna1ta Aug 12, 2021
ac98d1e
fix post main height
Interna1ta Aug 12, 2021
8496079
deleteComment() added
ParisArcos Aug 12, 2021
8015ddb
solved merge conflict
Interna1ta Aug 12, 2021
9ddecea
fix close modal
Interna1ta Aug 12, 2021
a958b80
main section article bug fixed
ParisArcos Aug 12, 2021
c37c6db
fix duplicate article
Interna1ta Aug 12, 2021
5ba9812
modal comments styles
Interna1ta Aug 12, 2021
c725e79
deleteComments() fixed, editComments() added, recountComments() added
ParisArcos Aug 12, 2021
cefa871
delete spaces
Interna1ta Aug 12, 2021
79c050b
added dot comma
Interna1ta Aug 12, 2021
b3de555
final touch
Interna1ta Aug 12, 2021
fa17833
better code in tinder JS
Interna1ta Aug 12, 2021
6fbb10d
userIcon() added
ParisArcos Aug 12, 2021
8e4e919
userIcon() added
ParisArcos Aug 12, 2021
cb82ccb
fix swipe with modal bug
Interna1ta Aug 12, 2021
38c9898
user.addres.city added to modal
ParisArcos Aug 12, 2021
e3b7fbd
changed emoji order
Interna1ta Aug 12, 2021
f4a0556
Merge branch 'paris' of https://github.com/Interna1ta/blog-with-api i…
Interna1ta Aug 12, 2021
abfdbcf
js separated by functionalities
ParisArcos Aug 12, 2021
123acbd
fix dark mode bug
Interna1ta Aug 13, 2021
7f18f5b
merge branches
Interna1ta Aug 13, 2021
56bb6ed
import/export modules added
ParisArcos Aug 13, 2021
602d2b6
Merge branch 'paris' of https://github.com/Interna1ta/blog-with-api i…
Interna1ta Aug 13, 2021
cf3a86a
deleted moving class in tinder js
Interna1ta Aug 13, 2021
1e9de60
deleted spaces in js files
Interna1ta Aug 13, 2021
4db94c9
fix tinder swipe
Interna1ta Aug 13, 2021
d14e9a9
clean common css code
Interna1ta Aug 13, 2021
b1296ac
fix html background color
Interna1ta Aug 13, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
68 changes: 68 additions & 0 deletions assets/css/BASE/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* BASE - RESET
*/

*,
*::before,
*::after {
padding: 0;
margin: 0;
border: 0;
}

* {
box-sizing: border-box;
/* Make sure all elements are above the background */
z-index: 1;
position: relative;
}

/* default */

html {
font-size: 62.5%;
scroll-behavior: smooth;
color: var(--foreground);
transition: color var(--transition);
background-color: #ffffff;
background-blend-mode: multiply;
}

html::before {
content: "";
position: fixed;
height: 100%;
width: 100%;
background: var(--white);
transform: translateX(-100%);
transition: transform var(--transition);
z-index: 0;
}

body {
font-family: 'Roboto Mono', monospace !important;
box-sizing: border-box;
mix-blend-mode: difference;
}

ul {
list-style: none;
padding-left: 0;
}

/* button{
cursor: none !important;
} */

code{
display: block;
padding-bottom: 0.6rem;
}

/* headings */

h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 1rem;
letter-spacing: normal;
}
56 changes: 56 additions & 0 deletions assets/css/LAYOUT/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* LAYOUT - COMMON
*/

.main {
background-color: #ffffff;
margin: 0 auto;
max-width: 992px;
padding: 2rem 0;
}

.section {
margin: 2rem;
background: #F8F9FA;
}

.header {
z-index: 2;
padding: 2rem 4rem;
}

.footer{
padding: 2rem 2rem 0;
}

.full-page{
height: calc(100vh - 4rem);
max-height: calc(100vh - 4rem);
}

.outside {
width: 100%;
padding-top: 133.33%; /* 4:3 Aspect Ratio (divide 4 by 3 = 1.3333) */
position: relative; /* If you want text inside of it */
}

/* If you want text inside of the container */
.inside {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}

.bg-black {
background-color: #121212;
}

.bi {
font-size: 3rem;
}

.big {
font-size: 6rem;
}
28 changes: 28 additions & 0 deletions assets/css/MODULE/blockquote.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* MODULE - BLOCKQUOTE
*/

.blockquote {
margin-left: 1.5rem;
}

.blockquote__body{
font-size: 1.2rem;
}

.blockquote__header{
color: var(--darkGrey);
}

.blockquote__name{
font-weight: 600;
margin-bottom: 0.5rem;
}

.blockquote__dot{
margin: 0 0.5rem;
}

.blockquote__company-name{
font-weight: 300;
}
37 changes: 37 additions & 0 deletions assets/css/MODULE/comments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* MODULE - COMMENTS
*/

.comments{
padding: 3rem 0 6rem;
}

.comments__total{
border-top: 1px solid var(--grey);
border-bottom: 1px solid var(--grey);
padding: 2rem 0;
margin-bottom: 1rem;
}

.comments__item {
padding-top: 2rem;
}

.comments__buttons{
margin-left: 1rem;
}

.comments__buttons button{
background-color: transparent;
}

.comments__buttons button i {
color: var(--darkGrey);
height: 20px;
width: 20px;
font-size: 1.8rem;
}

.comments__buttons button:hover i {
color: var(--black);
}
16 changes: 16 additions & 0 deletions assets/css/MODULE/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* MODULE - HEADER
*/

.header{
z-index: 2;
padding: 2rem 4rem;
mix-blend-mode: difference;
color: #ffffff;
max-width: 992px;
}

.header__title{
font-size: 2.4rem;
margin-bottom: 0;
}
20 changes: 20 additions & 0 deletions assets/css/MODULE/modal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* MODULE - MODAL
*/

.modal-header {
border-bottom: 0;
}

.modal-header .btn-close {
transform: scale(1.5);
z-index: 1100;
}

@media (min-width: 576px) {
.modal-dialog {
width: calc(100% - 3rem);
max-width: 992px;
margin: 1.75rem auto;
}
}
41 changes: 41 additions & 0 deletions assets/css/MODULE/post-block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* MODULE - POST BLOCK
*/

.posts-block{
padding: 4rem;
}

.post-block{
margin-bottom: 3.5rem;
}

.post-block__content{
background-image: url(/assets/images/svg/anim-false.svg);
background-repeat: repeat-x;
background-size: auto 0.3rem;
background-position-y: bottom;
padding-bottom: 0.8rem;
}

.post-block__name {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}

.post-block__title{
cursor: pointer;
font-weight: 600;
font-size: 2.2rem;
margin-bottom: 1rem;
}

@media only screen and (max-width: 575px) {
.posts-block{
padding: 3rem 2rem;
margin-bottom: 3rem;
}
.post-block__title{
font-size: 2rem;
}
}
112 changes: 112 additions & 0 deletions assets/css/MODULE/post-card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/**
* MODULE - POST CARD
*/

.posts {
margin-left: -0.75rem;
margin-right: -0.75rem;
background-color: #ffffff;
}

.posts__swipe-label{
text-align: center;
width: 100%;
}

.post-card-cont {
height: 100%;
width: 100%;
}
.post-card:nth-child(1),
.post-card:nth-child(2),
.post-card:nth-child(3) {
padding-bottom: 0.75rem;
}
.post-card:nth-child(4),
.post-card:nth-child(5),
.post-card:nth-child(6) {
padding-top: 0.75rem;
}
.post-card.reset {
transition: transform 0.3s;
transform: translateX(0) !important;
}
.post-card.inactive {
transition: transform 0.3s;
}
.post-card.to-left {
transform: translateX(-30rem) rotate(-30deg) !important;
}
.post-card.to-right {
transform: translate(30rem) rotate(30deg) !important;
}
.post-card.below {
z-index: 1;
}
.post-card__top {
height: 100%;
padding: 2rem;
}
.post-card__name {
line-height: 1.25;
text-align: center;
font-size: 2rem;
font-weight: 600;
color: #fff;
padding: 1rem;
margin: 0;
}
.post-card__author {
color: #fff;
text-align: center;
font-size: 1.4rem;
padding: 1rem;
margin: 0;
}
.post-card__content {
cursor: pointer;
}

@media only screen and (max-width: 767px) {
.posts{
padding: 4rem 1rem;
background-color: transparent;
}
.post-card-cont {
position: relative;
width: 24rem;
min-width: 24rem;
height: 32rem;
min-height: 32rem;
margin: 0 auto;
}
.post-card {
z-index: 2;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform-origin: 50% 100%;
padding: 0;
}
.post-card:nth-child(n) {
padding: 0;
}
.post-card__drag {
position: block;
z-index: 5;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
cursor: grab;
}
}

@media only screen and (max-width: 575px) {
.posts__swipe-label{
display: none;
}
}
Loading