-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Update]: Add new Ongoing projects and update the UI of Ongoing Proje…
…cts page (#143) * add new research paper in publications * add new ongoing projects and update UI for the same page (#6) * update css to handle mobile view
- Loading branch information
1 parent
2d360e8
commit f3d3c88
Showing
4 changed files
with
173 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 94 additions & 24 deletions
118
components/Projects/OngoingProjects/OngoingProjects.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,120 @@ | ||
@import '../../variables'; | ||
|
||
.ongoingProj { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
padding: 20px; | ||
width: 100%; | ||
min-height: 70vh; | ||
// margin: 0 auto; | ||
margin-bottom: 3em; | ||
|
||
|
||
.ongoingProjImg { | ||
background-position: center center; | ||
margin-bottom: 10px; | ||
margin-top: 10px; | ||
background-repeat: no-repeat; | ||
background-size: 25vw; | ||
height: 75vh; | ||
@media (max-width: 650px) { | ||
height: 40vh; | ||
} | ||
@media (max-width: 450px) { | ||
height: 30vh; | ||
} | ||
|
||
@media (max-width: 900px) { | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.ongoingProjCont { | ||
width: 70%; | ||
margin: auto; | ||
border-bottom: 2px solid $light; | ||
width: 50%; | ||
margin-right: 20px; | ||
padding-bottom: 1em; | ||
|
||
|
||
.ongoingProjContName { | ||
font-size: 3rem; | ||
text-align: center; | ||
padding: 0em; | ||
font-size: 2.5rem; | ||
text-align: left; | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
.ongoingProjContSub { | ||
padding: 0.1em; | ||
line-height: 160%; | ||
margin: 1em 0; | ||
text-align: center; | ||
text-align: left; | ||
} | ||
|
||
.ongoingProjContLinks { | ||
text-align: center; | ||
text-align: left; | ||
margin-top: 1em; | ||
|
||
a { | ||
font-size: 1.5rem; | ||
transition: color 0.2s; | ||
|
||
&:hover { | ||
color: $dark; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.ongoingProjImg { | ||
width: 45%; | ||
height: 400px; | ||
|
||
@media (max-width: 900px) { | ||
width: 100%; | ||
height: 300px; | ||
} | ||
|
||
@media (max-width: 650px) { | ||
height: 250px; | ||
} | ||
|
||
@media (max-width: 450px) { | ||
height: 200px; | ||
} | ||
} | ||
|
||
.ongoingProjModel { | ||
width: 45%; | ||
height: auto; | ||
|
||
iframe { | ||
width: 100%; | ||
height: auto; | ||
aspect-ratio: 16 / 9; | ||
} | ||
|
||
@media (max-width: 900px) { | ||
width: 100%; | ||
margin-top: 20px; | ||
} | ||
|
||
@media (max-width: 450px) { | ||
iframe { | ||
height: 250px; | ||
} | ||
} | ||
} | ||
} | ||
.projectSelector { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 30px; | ||
justify-content: space-around; | ||
margin-bottom: 20px; | ||
margin-top: 20px; | ||
padding: 10px; | ||
} | ||
|
||
.projectName { | ||
padding: 10px 20px; | ||
cursor: pointer; | ||
background-color: $black; | ||
border: 2px solid transparent; | ||
transition: background-color 0.3s, border-color 0.3s; | ||
font-size: 1.5rem; | ||
justify-content: space-around; | ||
|
||
|
||
&:hover { | ||
background-color: $light; | ||
} | ||
} | ||
|
||
.active { | ||
border-color: $dark; | ||
background-color: $dark; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.