Skip to content

Commit

Permalink
Merge pull request #684 from SrijaVuppala295/logo
Browse files Browse the repository at this point in the history
Added a New Interactive Logo in Header with Enhanced Styling
  • Loading branch information
YadavAkhileshh authored Nov 7, 2024
2 parents 93d702f + 61d50fd commit 1dcf00c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
Binary file added assets/images/alien.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 30 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,25 +322,36 @@
text-align: center;
}

/* Medium screens (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
#gameCanvas {
height: 450px;
/* 4:3 aspect ratio */
width: 600px;
/* 4:3 aspect ratio */
}
}

/* Small screens (up to 480px) */
@media (max-width: 480px) {
#gameCanvas {
height: 240px;
/* 4:3 aspect ratio */
width: 320px;
/* 4:3 aspect ratio */
}
}
/* Medium screens (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
#gameCanvas {
height: 450px; /* 4:3 aspect ratio */
width: 600px; /* 4:3 aspect ratio */
}
}
/* Small screens (up to 480px) */
@media (max-width: 480px) {
#gameCanvas {
height: 240px; /* 4:3 aspect ratio */
width: 320px; /* 4:3 aspect ratio */
}
}
.logoImage {
height: 80px; /* Adjust to fit the header */
width: auto;
margin-right: 15px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.logoImage:hover {
transform: scale(1.15);
box-shadow: 0 0 15px rgba(0, 0, 255, 0.7); /* More prominent blue glow */
filter: brightness(1.2);
background-color: rgba(0, 0, 255, 0.1); /* Subtle blue background */
border-radius: 5px; /* Rounded edges for a smoother look */
}
</style>
<div id="popup-nl" class="popup-nl">
<div class="popup-content-nl">
Expand Down Expand Up @@ -562,6 +573,7 @@ <h2 class="primary-btn" id="logoutButton" style="display: none;">


<div id="gameControls" class="header">
<img src="./assets/images/alien.png" alt="Game Logo" class="logoImage">
<div class="controlGroup">
<label for="levelSelect" id="difficulty">Select Difficulty:</label>
<select id="levelSelect">
Expand Down

0 comments on commit 1dcf00c

Please sign in to comment.