Skip to content

Commit

Permalink
index, footer, go up
Browse files Browse the repository at this point in the history
  • Loading branch information
KimTeddy committed Jan 1, 2025
1 parent e1e6132 commit cb2b2cc
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 18 deletions.
49 changes: 39 additions & 10 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,48 @@ section h2 {
}
}

/* Back-to-top button styles */
#back-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 50px;
height: 50px;
background-color: #1e88e5;
color: white;
border: none;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
font-size: 1.5rem;
cursor: pointer;
z-index: 1000;
display: none; /* Initially hidden */
justify-content: center;
align-items: center;
animation: bounce 1.5s infinite;
transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Footer styles */
footer {
background: #333;
color: #fff;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
/* Hover effect */
#back-to-top:hover {
transform: scale(1.1);
background-color: #1565c0;
}

footer p {
margin: 0;
font-size: 0.9rem;
/* Bounce animation */
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}

/* Show the button when visible */
#back-to-top.visible {
display: flex;
opacity: 1;
}

/*header*/
Expand Down
1 change: 1 addition & 0 deletions assets/images/logos/RATS-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/logos/RATS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cb2b2cc

Please sign in to comment.