Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15 website moet functioneel zijn #71

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9feff8e
JK - Fixed jQuery error
Jesse-Kramer May 29, 2024
a51803b
JK - Added SVG to Themes
Jesse-Kramer May 29, 2024
9b58df7
JW - Subtle article hover animation
Jason2426 May 29, 2024
bf61515
Merge branch '15-website-moet-functioneel-zijn' of https://github.com…
Jason2426 May 29, 2024
ee53c0b
JK - Part 1 of fix share/likes
Jesse-Kramer May 29, 2024
1b99046
CW italic text colour changes
christoph3r3w May 29, 2024
c169329
CW code consistency changes
christoph3r3w May 29, 2024
a13a884
CW timing functions adjustments
christoph3r3w May 29, 2024
04061e3
CW fixed quote position issue
christoph3r3w May 29, 2024
dfc91d1
CW carousel post
christoph3r3w May 29, 2024
cd55915
Revert "CW italic text colour changes"
christoph3r3w May 29, 2024
dd71914
CW italic text colour changes
christoph3r3w May 29, 2024
b600c28
CW fixed footer for new layout style
christoph3r3w May 29, 2024
ac88350
CW fixed detail-page image issues
christoph3r3w May 29, 2024
3571ba7
CW header fixes again
christoph3r3w May 29, 2024
4bdbffe
Merge branch 'main' into 15-website-moet-functioneel-zijn
christoph3r3w May 29, 2024
edcf080
JW - small mobile menu fix
Jason2426 May 30, 2024
4376156
CW carousel height fix
christoph3r3w May 30, 2024
21a3015
Merge branch '15-website-moet-functioneel-zijn' of https://github.com…
Jason2426 May 30, 2024
a06e092
CW2 carousel height fixes
christoph3r3w May 30, 2024
ed4e5d4
Merge branch '15-website-moet-functioneel-zijn' of https://github.com…
Jason2426 May 30, 2024
d3cbd1e
JW - margin change in carousel li
Jason2426 May 30, 2024
01a7fa4
CW carousel margin change
christoph3r3w May 31, 2024
9d9c878
Merge branch '15-website-moet-functioneel-zijn' of https://github.com…
christoph3r3w May 31, 2024
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
33 changes: 26 additions & 7 deletions public/styles/detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ main:has(.elementor-widget-container) {
}
}

b:has(footer){
grid-column: 1/-1;
}



/* -intro text- */
Expand Down Expand Up @@ -353,17 +357,18 @@ select{
figure img{
width: 100% !important;
height: auto;

}

.wp-block-image{
width: 100% !important;
margin-block: 5% ;
margin-block: 10% ;

transition: 1s forwards ;
animation: appear-subtopic 1s forwards ease-out ;
animation-timeline: view();
animation-range:entry 1rem ;
/* animation-range:exit ; */
animation-range-start:entry ;
animation-range-end:contain ;
opacity: 0;
z-index: 0 ;
max-height: 40%;
Expand Down Expand Up @@ -413,7 +418,7 @@ select{
content: close-quote;
position: absolute;
top: 34%;
left: 95%;
left: 99%;
/* outline: solid rgb(0, 145, 255); */
}

Expand All @@ -431,11 +436,11 @@ select{

em{
font-style: italic;
color: #373636;
color: #373434;
}

:nth-last-child(1) em:nth-last-of-type(1) {
color: rgb(107, 107, 18);
color: rgb(114, 114, 23);

}
}
Expand Down Expand Up @@ -789,5 +794,19 @@ footer{
fill: var(--text-dm-color);
}


#main-article em{

color: #625b5b;
color: var(--bg-color);
mix-blend-mode:difference;
filter:hue-rotate(10deg)saturate(70%);

/* :nth-last-child(1) em:nth-last-of-type(1) {
color: rgb(114, 114, 23);
mix-blend-mode:difference;
filter: none !important;

} */

}
}
13 changes: 11 additions & 2 deletions public/styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ header nav{
width: min(220px,100%);
}

.mobile-logo,.desktop-logo{

width: min(220px,100%);
}

.desktop-menu a svg {
width:fit-content ;
}
Expand Down Expand Up @@ -335,6 +340,10 @@ header nav{
}
}

.mobile-menu {
border-bottom: solid 1px white;
}

#mobile-menu-window .menu-exit svg path {
stroke: var(--text-dm-color);
}
Expand All @@ -347,9 +356,9 @@ header nav{
fill: var(--text-dm-color);
}


/* .desktop-menu a svg {
fill: white;
fill: #fff;
} */

:is(.desktop-logo,.mobile-logo,.desktop-pages) svg {
Expand Down
38 changes: 30 additions & 8 deletions public/styles/home-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,23 @@ main{
background-size: cover;
}

article.highlighted-post .post-image:hover, section.carousel li:hover{
transform: translateY(-2.8px);
transition: transform 70ms ease-out;
}

article.highlighted-post .overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 125px;
height: 145px;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

article.highlighted-post .post-title,
article.highlighted-post .post-meta {
font-family: sans-serif;
width: 90%;
position: absolute;
bottom: 15px;
Expand All @@ -186,6 +192,7 @@ main{
z-index: 1;
}


/* First Highlighted Post */
article.highlighted-post:first-of-type {
grid-column: 1 / 3;
Expand All @@ -196,33 +203,41 @@ main{
}

article.highlighted-post:first-of-type .post-title {
font-size: 1em;
bottom: 40px;
-webkit-line-clamp: 2;
font-family: sans-serif;
font-size: 1.25em;
left: 20px;
bottom: 50px;
-webkit-line-clamp: 3;
}

article.highlighted-post:first-of-type .post-meta {
bottom: 10px;
left: 20px;
bottom: 20px;
display: flex;
justify-content: space-between;
color: #B1B1B1;
font-size: 12px;
font-size: 1em;
background-color: unset;
height: unset;
}

/* Carousel Section */
section.carousel ul {
position: relative;
display: flex;
overflow: auto;
scroll-snap-type: x mandatory;
gap: 2em;
/* outline: solid blue; */
/* height: 34dvh; */
}

section.carousel li {
position: relative;
margin-block: 2em;
text-align: center;
width: 70vw;
width: 70dvw;
/* height: 27dvh; */
flex: 70vw 0 0;
scroll-snap-align: center;
}
Expand All @@ -235,7 +250,14 @@ main{
}

section.carousel .post-title {
margin: 0 0 1.5rem;
margin: 0 0 1rem;
height: 7dvh;
height: 100%;
}

section.carousel .post-meta {
position: relative;

}

/* Scrollbar Support */
Expand Down
15 changes: 14 additions & 1 deletion views/partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,20 @@
</svg>
<span>Nieuwsbrief</span>
</div>
<div class="theme">
<div class="theme">
<svg width="30" height="30" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
<g id="Layer_2" data-name="Layer 2">
<g id="Icons">
<g>
<rect width="30" height="30" fill="none"/>
<g>
<path d="M14,24A10,10,0,0,0,24,34V14A10,10,0,0,0,14,24Z"/>
<path d="M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2ZM6,24A18.1,18.1,0,0,1,24,6v8a10,10,0,0,1,0,20v8A18.1,18.1,0,0,1,6,24Z"/>
</g>
</g>
</g>
</g>
</svg>
<span>
<details class="dropdown" hidden>
<summary class="dropbtn">
Expand Down
2 changes: 1 addition & 1 deletion views/partials/like.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form method="post" action="/post/<%= post.id %>/likes">
<form method="post" action="/detail/<%= post.id %>/likes">

<input type="hidden" name="like" value="like">

Expand Down
2 changes: 1 addition & 1 deletion views/partials/share.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form method="post" action="/post/<%= post.id %>/share">
<form method="post" action="/detail/<%= post.id %>/share">

<input type="hidden" name="share" value="shares">

Expand Down