Skip to content

Commit

Permalink
updated projects CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Aug 13, 2023
1 parent 77161f7 commit cf88f88
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 13 deletions.
48 changes: 40 additions & 8 deletions static/css/projects.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,66 @@
.projects {
width: 90vw;
min-height: 92vh;
margin: auto;
padding-top: 4vh;
}

.project {
height: 25vh;
width: 90%;
background-color: var(--background2);
border-radius: 10px;
color: var(--text);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 1%;
padding-bottom: 2px;
text-decoration: none;
margin-bottom: 10px;
}

.imgtitle {
width: 95%;
width: 100%;
height: 60%;
position: relative;
}

.imgtitle img {
.backgroundcontainer {
overflow: hidden;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
object-fit: cover;
border-radius: 10px;
}

.background {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
filter: blur(5px);
/*damn apple*/
-webkit-filter: blur(5px);
}

.foregroundcontainer {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
object-fit: contain;
}

.foreground {
max-width: 95%;
max-height: 95%;
object-fit: contain;
}

.overlay {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -72,7 +103,7 @@
gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
justify-items: center;
align-items: center;
align-items: stretch;
}

.project {
Expand All @@ -98,6 +129,7 @@
}

.project {
height: 80vh;
width: 90vw;
flex-shrink: 0;
scroll-snap-align: start;
Expand Down
Binary file modified static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions templates/aboutme.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{% if homepage %}
<div class="aboutmecontainer">
{% endif %}
<div class="aboutme{{'full' if not homepage}}">
<div class="aboutmelogocontainer">
<img src="../static/img/logo.png" alt="logo" class="aboutmelogo">
Expand Down Expand Up @@ -33,5 +31,5 @@ <h1 class="aboutmename">Hi, I'm Joel</h1>
</g>
</svg>
</div>
</div>
{% endif %}
{% endif %}
</div>
7 changes: 6 additions & 1 deletion templates/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
{% for project in projects %}
<a href="/projects/{{project.id}}" class="project">
<div class="imgtitle">
<img src="{{ project.image }}" alt="{{ project.title }}">
<div class="backgroundcontainer">
<img class="background" src="{{ project.image }}" alt="{{ project.title }}">
</div>
<div class="foregroundcontainer">
<img class="foreground" src="{{ project.image }}" alt="{{ project.title }}">
</div>
<div class="overlay">
<h1>{{ project.title }}</h1>
</div>
Expand Down

0 comments on commit cf88f88

Please sign in to comment.