Projects list page with project card

This commit is contained in:
Hazem Krimi
2023-11-09 20:55:17 +01:00
parent e81eba1637
commit 319ebbeb31
17 changed files with 168 additions and 9 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ body {
#links .github,
#links .cv-paper-flip,
#links .mail,
#nav-toggler svg path {
#nav-toggler svg path,
.arrow,
.eye {
stroke: var(--text);
}
+14
View File
@@ -0,0 +1,14 @@
main section {
margin-top: 2rem;
}
main h2 {
font-size: 3rem;
margin-bottom: 1rem;
}
@media only screen and (max-width: 1024px) {
main h2 {
font-size: 1.75rem;
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
:root {
--footer-light-background: #ececec;
--footer-light-background: #ECECEC;
--footer-dark-background: #131212;
}
+2 -2
View File
@@ -1,7 +1,7 @@
:root {
--header-light-background: var(--white);
--header-light-background: #ECECEC;
--header-dark-background: #676666;
--nav-light-background: var(--white);
--nav-light-background: #ECECEC;
--nav-dark-background: #121212;
}
+60
View File
@@ -0,0 +1,60 @@
:root {
--project-card-light-background: #f2f2f2;
--project-card-dark-background: #131212;
}
article {
background-color: var(--project-card-background);
color: var(--text);
border-radius: 1.875rem;
padding: 3.5rem 2.5rem;
}
article h3 {
font-size: 2rem;
margin-bottom: 1.75rem;
text-transform: capitalize;
}
article p {
margin-bottom: 4rem;
}
article #links {
display: flex;
align-items: center;
justify-content: space-between;
}
article .read-more,
article .demo {
display: inline-flex;
align-items: center;
}
article .read-more svg,
article .demo svg {
margin-left: 0.5rem;
}
article .demo {
background-color: #353535;
color: var(--white);
border-radius: 0.4375rem;
text-decoration: none;
padding: 0.5rem 1rem;
}
article .demo .eye {
stroke: var(--white);
}
@media only screen and (max-width: 1024px) {
article h3 {
font-size: 1.5rem;
}
article p {
margin-bottom: 1.75rem;
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5 12H19" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 5L19 12L12 19" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="arrow" d="M5 12H19" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="arrow" d="M12 5L19 12L12 19" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 340 B

+2 -2
View File
@@ -1,4 +1,4 @@
<svg width="21" height="22" viewBox="0 0 21 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.875 11C0.875 11 4.375 4 10.5 4C16.625 4 20.125 11 20.125 11C20.125 11 16.625 18 10.5 18C4.375 18 0.875 11 0.875 11Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10.5 13.625C11.9497 13.625 13.125 12.4497 13.125 11C13.125 9.55025 11.9497 8.375 10.5 8.375C9.05025 8.375 7.875 9.55025 7.875 11C7.875 12.4497 9.05025 13.625 10.5 13.625Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path class="eye" d="M0.875 11C0.875 11 4.375 4 10.5 4C16.625 4 20.125 11 20.125 11C20.125 11 16.625 18 10.5 18C4.375 18 0.875 11 0.875 11Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path class="eye" d="M10.5 13.625C11.9497 13.625 13.125 12.4497 13.125 11C13.125 9.55025 11.9497 8.375 10.5 8.375C9.05025 8.375 7.875 9.55025 7.875 11C7.875 12.4497 9.05025 13.625 10.5 13.625Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 604 B

+6
View File
@@ -49,6 +49,12 @@ function loadTheme() {
? 'var(--button-light-background)'
: 'var(--button-dark-background)'
);
root.style.setProperty(
'--project-card-background',
theme === 'light'
? 'var(--project-card-light-background)'
: 'var(--project-card-dark-background)'
);
root.style.setProperty(
'--footer-background',
theme === 'light'