Skip to content

Commit

Permalink
Merge pull request #487 from SrijaVuppala295/about
Browse files Browse the repository at this point in the history
Enhanced  About Us Page for Alien Invasion Defense Game
  • Loading branch information
YadavAkhileshh authored Oct 22, 2024
2 parents 12fa8f4 + dcf0113 commit b0b7c02
Show file tree
Hide file tree
Showing 9 changed files with 298 additions and 7 deletions.
83 changes: 83 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background-color: #0d1b2a; /* Dark space-like background */
font-family: 'Arial', sans-serif;
color: #fff;
background-image: url('./assets/images/pngtree-game-space-blue-planet-picture-image_2444872.jpg'); /* Background image */
background-repeat: no-repeat;
background-attachment: fixed; /* Fixed background */
background-size: cover; /* Covers entire viewport */
height: 100vh;
overflow-x: hidden;
}

header {
padding: 20px 0;
background-color: rgba(13, 27, 42, 0.8); /* Semi-transparent background */
}

.main-heading {
font-size: 3em;
color: #00ff80; /* Neon green */
text-align: center;
margin-bottom: 20px;
}

.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding-top: 20px;
text-align: center;
}

h2 {
color: #00ff80; /* Neon green */
font-size: 2.2em;
margin-bottom: 20px;
}

p {
font-size: 1.2em;
margin-bottom: 30px;
}

.highlight {
color: #ffdd00; /* Neon yellow for highlights */
}

ul {
list-style: none;
margin-bottom: 40px;
padding-left: 0;
}

ul li {
font-size: 1.1em;
margin-bottom: 15px;
color: #d0d7de;
}

ul li::before {
content: '⭐ '; /* Adding star icon before each list item */
color: #ffdd00;
}

/* Section styling */
section {
margin-bottom: 50px;
padding: 20px;
background-color: rgba(13, 27, 42, 0.8); /* Semi-transparent background */
border-radius: 10px;
}

/* Hover effect for highlights */
.highlight:hover {
color: #ff8800; /* Orange hover effect */
transition: color 0.3s ease;
}
131 changes: 131 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us | Alien Invasion Defense</title>

<link rel="stylesheet" href="about.css">
</head>

<body>
<!-- Main Heading: About Us -->
<header>
<h1 class="main-heading">🚀 Alien Invasion Defense 🛸</h1>
</header>

<div class="container">
<!-- Introduction Section -->
<section class="intro">
<h2>Welcome to <span class="highlight">Alien Invasion Defense</span> 👾</h2>
<p>
<span class="highlight">Alien Invasion Defense</span> is an exciting space-shooter game that challenges you to defend your base from waves of alien invaders. With sleek graphics, easy controls, and thrilling gameplay, you’ll be immersed in an intergalactic battle for survival. Are you ready to become the ultimate space defender?
</p>
</section>

<!-- Features Section -->
<section class="features">
<h2>🌟 Features</h2>
<ul>
<li><strong>Exciting Alien Invasion Gameplay:</strong> Fight off waves of alien ships that threaten your base.</li>
<li>🎮 <strong>Easy Controls & Interface:</strong> Simple controls make gameplay intuitive and accessible for all players.</li>
<li>💥 <strong>Three Lives:</strong> Protect your base with only 3 chances before the game ends.</li>
<li>🚀 <strong>Smooth Shooting:</strong> Responsive shooting mechanics to destroy incoming alien invaders.</li>
<li>🖥️ <strong>Modern Graphics:</strong> A visually pleasing, clean interface that complements the game’s exciting pace.</li>
<li>🔄 <strong>Quick Restart:</strong> Restart the game instantly with one click.</li>
<li>🏆 <strong>Leaderboard (Optional):</strong> Track your highest scores and challenge your friends to beat them.</li>
</ul>
</section>

<!-- Gameplay Section -->
<section class="gameplay">
<h2>🎮 How to Play</h2>
<ul>
<li><strong>Start the Game:</strong> Click the "Start" button to begin your defense mission.</li>
<li><strong>Move and Shoot:</strong> Use the <span class="highlight">Arrow Keys</span> or on-screen controls to move your spaceship and shoot alien ships.</li>
<li><strong>Lives:</strong> You have 3 lives. You lose a life if an alien reaches your base or if your spaceship is hit.</li>
<li><strong>Game Over:</strong> The game ends when you lose all 3 lives. Click "Restart" to try again!</li>
<li><strong>Progress:</strong> Destroy all alien ships in each wave to advance to the next level and increase your score.</li>
</ul>
</section>

<!-- Game Rules Section -->
<section class="game-rules">
<h2>📜 Game Rules</h2>
<ul>
<li><strong>Survive as Long as Possible:</strong> Protect your base by shooting alien ships and avoiding their attacks.</li>
<li><strong>Three Lives Only:</strong> If you lose all your lives (by aliens reaching your base or hitting your ship), the game ends.</li>
<li><strong>Restart Anytime:</strong> Use the "Restart" button to start over and try to achieve a higher score.</li>
<li><strong>Earn Points:</strong> Destroy alien ships to accumulate points and aim for the highest score possible.</li>
</ul>
</section>

<!-- Tech Stack Section -->
<section class="tech-stack">
<h2>Tech Stack ⚙️</h2>
<p>Alien Invasion Defense is powered by modern web technologies to ensure a smooth and engaging experience for players. Here’s the tech stack behind the game:</p>
<ul>
<li><strong>HTML5</strong> - Structure and game layout.</li>
<li><strong>CSS3</strong> - For styling and responsive design.</li>
<li><strong>JavaScript</strong> - For dynamic game logic and interactivity.</li>
<li><strong>Canvas API</strong> - For rendering smooth game animations.</li>
</ul>
</section>

<!-- Contributors Section -->
<section class="contributors">
<h2>❤️ Our Valuable Contributors</h2>
<div class="contributors-content" align="center">
<a href="https://github.com/YadavAkhileshh/Alien-Invasion-Defense/graphs/contributors">
<img src="https://contrib.rocks/image?repo=YadavAkhileshh/Alien-Invasion-Defense" alt="Contributors">
</a>
<p>We are grateful to everyone who contributed to this project!</p>
</div>
</section>



<!-- Support Section -->
<section class="support">
<h2> 🤝 Support the Project</h2>
<p>If you find this project helpful, please consider giving it a star on GitHub! Your support helps us grow and improve the game.</p>

<hr>
<ul>
<!-- Stargazers Section -->
<section class="stargazers">
<h2>⭐️ Stargazers</h2>
<div align="center">
<a href="https://github.com/YadavAkhileshh/Alien-Invasion-Defense/stargazers">
<img src="https://reporoster.com/stars/YadavAkhileshh/Alien-Invasion-Defense" alt="Stargazers Repo Roster">
</a>
<p>Thank you to all the amazing people who have starred our project!</p>
</div>
<hr>

<h2>🍴 Forkers</h2>
<div align="center">
<a href="https://github.com/YadavAkhileshh/Alien-Invasion-Defense/network/members">
<img src="https://reporoster.com/forks/YadavAkhileshh/Alien-Invasion-Defense" alt="Forkers Repo Roster">
</a>
<p>Special thanks to everyone who has forked this repository!</p>
</div>
</section>
</ul>
</section>

<!-- Call to Action -->
<section class="call-to-action">
<p align="center">Keep learning 📚, exploring 🌍, and contributing 🤝 to make a difference in the world!</p>
<p align="center">Made with ❤️ for all space defenders!</p>
<div align="center">
<a href="#top">
<img src="https://img.shields.io/badge/Back%20to%20Top-000000?style=for-the-badge&logo=github&logoColor=white" alt="Back to Top">
</a>
</div>
</section>
</div>
</body>

</html>
Binary file added assets/images/pic1.jpg
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 assets/images/pic2.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback</title>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="stylesheet" href="styles.css"> <!-- Link to your CSS file -->
<style>

Expand Down
44 changes: 43 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
<audio id="healthBoostSound" src="health-boost-sound.m4a"></audio>
<audio id="speedBoostSound" src="speed-boost.m4a"></audio>
<audio id="shieldSound" src="shield.m4a"></audio>
<style>/* About Us Button Styles */
.about-us-button {
background-color: #4CAF50; /* Green background */
color: white; /* White text */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
padding: 10px 20px; /* Padding for a better look */
text-align: center; /* Center the text */
text-decoration: none; /* Remove underline */
display: inline-block; /* Make it inline-block */
font-size: 16px; /* Font size */
transition: background-color 0.3s, transform 0.2s; /* Smooth transition for background and scale */
cursor: pointer; /* Pointer cursor on hover */
}

.about-us-button:hover {
background-color: #45a049; /* Darker green on hover */
transform: scale(1.05); /* Slightly increase size on hover */
}

.about-us-button:focus {
outline: none; /* Remove default outline on focus */
box-shadow: 0 0 5px #4CAF50; /* Add a glow effect on focus */
}
</style>
</head>
<body>
<!-- <div id="liveLife">LIVE LIFE: <span id="lives">3</span></div> -->
Expand Down Expand Up @@ -67,6 +92,17 @@
<span id="displayName" class="playerName"></span>
</div>

<!-- <div class="controlGroup">
<button id="startButton"><i class="fas fa-play"></i> Start Game</button>
<button id="pauseButton" style="display: none;"><i class="fas fa-pause"></i> Game Paused</button>
<button id="restartButton" style="display: none;"><i class="fas fa-redo"></i> Play Again</button>
<div id="faqbtn">
<a href="FAQs.html">
<button class="faq-btn">FAQs</button>
</a>
</div>
</div> -->

<div class="controlGroup">
<button id="startButton"><i class="fas fa-play"></i> Start Game</button>
<button id="pauseButton" style="display: none;"><i class="fas fa-pause"></i> Game Paused</button>
Expand All @@ -76,7 +112,9 @@
<button class="faq-btn">FAQs</button>
</a>
</div>

</div>


<!-- <div id="liveScore">LIVE SCORE: <span id="score">0</span></div> -->

Expand Down Expand Up @@ -389,6 +427,10 @@ <h1></h1>

<button class="feedback-button" onclick="window.location.href='feedback.html'">Feedback</button>

main
<div id="aboutUsBtn">
<a href="about.html">
<button class="about-us-btn">About Us</button>
</a>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions signup/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signup Form</title>
<link rel="stylesheet" href="./signup.css">
<link rel="icon" href="/favicon.png" type="image/png">

</head>
<body>
<div class="signup-form-container">
Expand Down
44 changes: 38 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,46 @@
@font-face {
/* @font-face {
font-family: "Rio";
src: url(Rio.ttf);
}
} */

/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@701&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.press-start-2p-regular {
font-family: "Press Start 2P", system-ui;
font-weight: 400;
font-style: normal;
} */

/*
// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 400 to 900 */
/*
.orbitron-<alien> {
font-family: "Orbitron", sans-serif;
font-optical-sizing: auto;
font: weight 50px;;
font-style: normal;
} */

/*
/* Use a unique and descriptive class name */

@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');


.audiowide-regular {
font-family: "Audiowide", sans-serif;
font-weight: 400;
font-style: normal;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family:"Rio", Georgia, 'Times New Roman', Times, serif;
font-family:"Audiowide","Press Start 2P","Orbitron","Rio", Georgia, 'Times New Roman', Times, serif;
}

body {
Expand Down Expand Up @@ -186,7 +219,7 @@ h1 {
align-items: center;
height: 100vh;
text-align: center;
FeedbackPage

}
#nextLevelMessage {
display: none;
Expand Down Expand Up @@ -227,5 +260,4 @@ FeedbackPage
.feedback-button:hover {
background-color: #e67e22; /* Darker shade on hover */
}
main
main

0 comments on commit b0b7c02

Please sign in to comment.