Skip to content
Snippets Groups Projects
Commit 70da4c87 authored by Xingan Zhao's avatar Xingan Zhao
Browse files

fix:footer fade animation

parent b98f318e
No related branches found
No related tags found
No related merge requests found
Pipeline #460248 passed
...@@ -15,35 +15,36 @@ export function Footer() { ...@@ -15,35 +15,36 @@ export function Footer() {
<div className="bg-rice_yellow"><WaveAnimation /></div> <div className="bg-rice_yellow"><WaveAnimation /></div>
{/* The following MUST be on every page: license information and link to the repository on gitlab.igem.org */} {/* The following MUST be on every page: license information and link to the repository on gitlab.igem.org */}
<div className="row bg-wine-red footer-container"> <div className="bg-wine-red footer-container">
<div className="col-7">
{/* <div className="col-1"></div> */} {/* <div className="col-1"></div> */}
{/* <div className="col-5"> */} {/* <div className="col-5"> */}
<div className="slideshow-container mb-5"> <div className="slideshow-container mb-5">
<div className="slide fade1 "> <div className="slide-small fade1 ">
<img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/gdmu2.webp" alt="Image 1" /> <img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/gdmu2.webp" alt="Image 1" />
</div> </div>
<div className="slide fade2"> <div className="slide-small fade2">
<img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/smu.webp" alt="Image 2" /> <img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/smu.webp" alt="Image 2" />
</div> </div>
<div className="slide fade3"> <div className="slide-big fade3">
<img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp" alt="Image 3" /> <img className="fade-img" src="https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp" alt="Image 3" />
</div> </div>
</div> </div>
{/* <img {/* <img
src="https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp" src="https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp"
alt="Yanyin tech" alt="Yanyin tech"
className="responsive-img" className="responsive-img"
/> */} /> */}
</div>
</div> </div>
<div className="row bg-wine-red footer-container"> <div className="row bg-wine-red footer-container">
<div> <div>
<p className="mb-0"> <p className="mb-0">
<small className="footer-container small-font"> <small className="footer-container-text small-font">
© 2024 - Content on this site is licensed under a &nbsp; {" "} © 2024 - Content on this site is licensed under a &nbsp;{" "}
<a <a
className="subfoot small-font" className="subfoot small-font"
href="https://creativecommons.org/licenses/by/4.0/" href="https://creativecommons.org/licenses/by/4.0/"
...@@ -55,7 +56,7 @@ export function Footer() { ...@@ -55,7 +56,7 @@ export function Footer() {
</small> </small>
</p> </p>
<p> <p>
<small className="footer-container small-font"> <small className="footer-container-text small-font">
The repository used to create this website is available at &nbsp;{" "} The repository used to create this website is available at &nbsp;{" "}
<a href={`https://gitlab.igem.org/${teamYear}/${teamSlug}`} className="small-font"> <a href={`https://gitlab.igem.org/${teamYear}/${teamSlug}`} className="small-font">
gitlab.igem.org/{teamYear}/{teamSlug} gitlab.igem.org/{teamYear}/{teamSlug}
......
...@@ -574,17 +574,29 @@ footer a:hover { ...@@ -574,17 +574,29 @@ footer a:hover {
.slideshow-container { .slideshow-container {
position: relative; position: relative;
max-width: 100%; max-width: 100%;
width: 400px;
height: 200px; height: 200px;
overflow: hidden; /* overflow: hidden; */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}
.slide-small {
position: absolute;
/* width: 100%; */
/* height: 100%; */
left: 25%;
opacity: 0;
transition: opacity 1s ease-in-out;
justify-content: center; /* Center horizontally */ justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */ align-items: center; /* Center vertically */
} }
.slide { .slide-big {
position: absolute; position: absolute;
/* width: 100%; */ /* width: 100%; */
/* height: 100%; */ /* height: 100%; */
left: 40%; left: 5%;
opacity: 0; opacity: 0;
transition: opacity 1s ease-in-out; transition: opacity 1s ease-in-out;
justify-content: center; /* Center horizontally */ justify-content: center; /* Center horizontally */
...@@ -595,6 +607,7 @@ footer a:hover { ...@@ -595,6 +607,7 @@ footer a:hover {
/* width: auto; */ /* width: auto; */
height: 200px; height: 200px;
object-fit: cover; object-fit: cover;
z-index: 2 !important;
} }
.fade1 { .fade1 {
...@@ -832,6 +845,13 @@ span.formula_line::-webkit-scrollbar-track { ...@@ -832,6 +845,13 @@ span.formula_line::-webkit-scrollbar-track {
} }
.footer-container { .footer-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.footer-container-text {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment