Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sujanthapa01 committed Feb 4, 2024
1 parent 4d688f2 commit ba38fff
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function updateUsersList(users) {
// Add a specific class for styling a special user
if (user.isSpecial) {
userNameDiv.classList.add('special-user-style');
}else if(user.developer){
userNameDiv.classList.add('deverloper');
}

nameBackground.appendChild(userNameDiv);
Expand Down Expand Up @@ -151,7 +153,8 @@ async function submit() {
Name: user.value,
Instagram: insta.value,
liked: true,
isSpecial: false
isSpecial: false,
developer : false
})
.then(() => {
console.log("User data updated successfully");
Expand Down
24 changes: 23 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -618,4 +618,26 @@ button:hover .filled {
box-shadow: #f02eaa66 0px 0px 8px 4px;
}
}



.deverloper{
/* Add specific styles for special users */
color: rgb(0, 0, 0);
border: #ffc0c0 dashed 2px;
box-shadow: #f02e2e66 0px 0px 8px 4px;
font-family: 'Libre Baskerville', serif;

animation: flicker1 15s infinite;
}

@keyframes flicker1 {
0%, 25% {
box-shadow: #f02e2e66 0px 0px 8px 4px;
}
25%, 75% {
box-shadow: #f02e2e66 0px 0px 8px 0px ;
}
50% {
box-shadow: #f02e2e66 0px 0px 8px 4px;
}
}

0 comments on commit ba38fff

Please sign in to comment.