Skip to content

Commit

Permalink
modified index.html & style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
j0ell1 committed Oct 14, 2024
1 parent 6b65b07 commit 6d3ef5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
<p id="activity">thinking...</p>
</div>

<div class="icon" id="infoIcon">
<span class="material-symbols-outlined">lightbulb</span>
</div>
<div class="icon" id="infoIcon">
<span class="material-symbols-outlined">lightbulb</span>
</div>

<div class="popup" id="popupInfo">
<h2>Information</h2>
<p>This is the content of the popup.</p>
</div>
<div class="popup" id="popupInfo">
<h2>Information</h2>
<p>This is the content of the popup.</p>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/color-thief/2.3.0/color-thief.umd.js"></script>
<script src="lanyard.js"></script>
Expand Down
29 changes: 8 additions & 21 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,22 @@ body {
}

.material-symbols-outlined {
font-size: 50px; /* Adjust size as needed */
color: #999999; /* Adjust color as needed */
font-size: 50px;
color: #999999;
}

/* Popup container */
.popup {
display: none;
position: fixed;
bottom: 100px;
bottom: 80px;
right: 20px;
width: 300px;
background-color: rgba(0, 0, 0, 0.8);
color: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transform: scale(0);
transform-origin: bottom right;
opacity: 0;
background-color: #fff;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
animation: fadeIn 0.3s ease-in-out;
display: none;
}

@keyframes fadeIn {
Expand All @@ -84,14 +81,4 @@ body {
opacity: 1;
transform: scale(1);
}
}

.popup.active {
display: block;
transform: scale(1);
opacity: 1;
}

.popup .close-btn {
display: none;
}

0 comments on commit 6d3ef5c

Please sign in to comment.