Skip to content

Commit

Permalink
Change project layout for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
tin0312 committed Oct 6, 2023
1 parent dc23ccb commit a689a7f
Show file tree
Hide file tree
Showing 13 changed files with 258 additions and 232 deletions.
121 changes: 72 additions & 49 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
}
body {
color: white;
background-color: #151515;
background: linear-gradient(rgba(0,0,0, .1), rgba(0,0,0, .4)),
url('./images/header.jpg');
height: 100vh;
background-size: cover;
background-position: center;
background-attachment: fixed;
font-family: "Syne", sans-serif;
}
.site-wrapper {
Expand Down Expand Up @@ -169,9 +174,6 @@ body {
.about-container {
padding-bottom: 15%;
}
.project-container {
padding-bottom: 20%;
}
.contact-container {
background-color: #151515 !important;
padding-top: 10%;
Expand Down Expand Up @@ -244,75 +246,96 @@ body {
}
/* Project section*/
.project-page {
margin: 5% auto 0;
width: 70%;
margin: 10% auto;
}
.project-header {
width: 80%;
margin: 0 auto;
font-family: "Space Grotesk" sans-serif;
font-size: 40px;
font-weight: 700;
font-size: 3em;
line-height: 88px;
letter-spacing: -2.5px;
position: relative;
}
.project-container {
width: 80%;
margin: 2% auto 0;
.project-header::after{
content: '';
position: absolute;
display: block;
bottom: -3px;
height: 0.07em;
width: 2em;
background: green;
margin: 0.6rem 0;
}
.project-section {
.project-container {
display: flex;
flex-direction: column;
background-color: #000;
height: 50vh;
margin-bottom: 15%;

}
.image-container {
width: 100%;
position: relative;
}
.project-thumb-nail {
width: 100%;
height: 70%;
height: 50vh;
border-radius: 20px;
opacity: 1;
}
/* Make a container in each clickable images */
.middle {
transition: 0.5s ease;
opacity: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
text-align: center;
font-family: "Poppins", sans-serif;
.project-section{
gap: 0.8em;
}
.image-container:hover img {
cursor: pointer;
opacity: 0.4;
.project-title{
font-size: 3rem;
}
.image-container:hover .middle {
cursor: pointer;
opacity: 1;
.project-stacks,
.project-description {
opacity: 0.6;
font-size: 1.2rem;
}
.text {
display: flex;
flex-direction: column;
gap: 2%;
width: 100%;
.project-stacks {
margin-left: 1em;
}
.link-text{
position: relative;
display: inline-block;
padding: .6rem;
color: #f0e9f2 !important;
text-decoration: none !important;
border-bottom: 0.1em solid green;
z-index: 1000;
}
.link-text::after {
content: '';
display: block;
position: absolute;
bottom: 0;
left: 0;
right: 100%;
background: white;
height: 100%;
z-index: -1;
transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}
.text a:hover {
color: #4ee1a0;
.link-text:hover::after{
cursor: pointer;
right: 0;
background-color: green;
color: #f0e9f2;
}
.text a {
text-decoration: none;
color: white;
.link-text span{
padding-left: 0.6em;
}

.project-content {
margin-top: 4%;
.work-links{
display: flex;
align-items: center;
}
.project-stacks {
opacity: 0.6;
.work-code{
height: 2.2em;
padding-left: 2em;
transition: all .3s;
}
.work-code:hover{
transform: scale(1.2);
}
/* Contact section */
.contact-container {
Expand Down
Loading

0 comments on commit a689a7f

Please sign in to comment.