Skip to content

Commit

Permalink
added infinity image
Browse files Browse the repository at this point in the history
  • Loading branch information
multiverseweb committed Nov 26, 2024
1 parent 8aefffd commit a2450f7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
3 changes: 2 additions & 1 deletion website/pages/support.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
<main>
<div class="category" id="infinity">
<p class="heading">Need Help?</p>
Try asking Infinity
<p id="infinityText">Try asking Infinity</p>
<img src="../web_images/Infinity-2.png" alt="" class="infinityImage">
</div>
<div class="category" id="faq">
<p class="heading">Frequently Asked Questions</p>
Expand Down
47 changes: 44 additions & 3 deletions website/styles/support.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,47 @@ details[open] {
max-height: 500px; /* Expands to show content */
padding-bottom: 10px; /* Adds padding to make expanded state look better */
}
#infinity {
position: relative;
overflow: hidden;
background-color: var(--background-color); /* Fallback */
color: white; /* Adjust text color if needed */
z-index: 0; /* Set lower z-index for the container itself */
}

#infinity::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, var(--background-color), var(--background-color), cyan);
transition: opacity 0.3s ease-in-out;
z-index: -1; /* Place the gradient behind the content */
}

#infinity:hover::before {
opacity: 0; /* Fade out the gradient smoothly */
}

#infinity .content {
position: relative; /* Make sure content is above the gradient */
z-index: 1; /* Ensure it appears above the ::before pseudo-element */
}


.infinityImage {
position: absolute; /* Position the image relative to the parent (#infinity) */
bottom: -50px;
right: 10px;
width: 40%;
opacity: 0;
transition-duration: 0.6s;
}
#infinity:hover .infinityImage{
opacity: 1;
}
summary {
cursor: pointer;
font-weight: bold;
Expand Down Expand Up @@ -93,9 +134,6 @@ ul{
background-color: var(--background-color);
box-shadow: var(--boxShadow);
}
#infinity{
background-image: linear-gradient(to right, var(--background-color), var(--background-color),cyan);
}
.design_btn {
padding: 10px 20px 10px 20px;
border: 1px solid var(--border-color);
Expand Down Expand Up @@ -319,4 +357,7 @@ body.popup-active {
.fund_links div{
padding: 0;
}
.infinityImage{
bottom: 0px;
}
}
Binary file added website/web_images/Infinity-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/web_images/Infinity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2450f7

Please sign in to comment.