Skip to content

Commit

Permalink
change the font family (roboto) apply on overallwebsite
Browse files Browse the repository at this point in the history
  • Loading branch information
devki412 committed Oct 28, 2024
1 parent 6464be9 commit 7c39998
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Alien.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
--border-dark: #2d2d3a;

/* Common Variables */
--game-font: 'Press Start 2P', system-ui, -apple-system, sans-serif;
--game-font: 'Roboto', sans-serif; /* Updated to 'Roboto' */
--transition-speed: 0.3s;
}

/* Base Styles */
body {
margin: 0;
padding: 0;
font-family: var(--game-font);
font-family: var(--game-font); /* This line uses the updated font */
min-height: 100vh;
transition: background-color var(--transition-speed), color var(--transition-speed);
}
Expand All @@ -45,10 +45,12 @@ body.dark-theme {
linear-gradient(to bottom, #0a0b1a 0%, #1a1b3a 100%);
}

/* Other styles remain unchanged */


/* Game Container */
#gameContainer {
position: relative;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Akhilesh Yadav">
<link rel="icon" href="favicon.png" type="image/x-icon">
<title>Alien Invasion Defense</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<link rel="stylesheet" href="Alien.css">
<audio id="backgroundMusic" src="background-music.wav" loop></audio>
<audio id="hitSound" src="hit-sound.wav"></audio>
Expand Down

0 comments on commit 7c39998

Please sign in to comment.