Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved how-to-play page #578

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 119 additions & 2 deletions pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Tiny5&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../styles/mainstyle.css">

<!-- Logo of the game -->
<link rel="shortcut icon" href="../assets/favicon.ico" type="image/x-icon" />
Expand Down Expand Up @@ -494,7 +495,7 @@

</script>

<nav class="navbar">
<!-- <nav class="navbar">
<div class="logo">
<a href="../index.html">Dots & Boxes βš„</a>
</div>
Expand All @@ -505,7 +506,123 @@
<li><a href="../pages/contributors.html">Contributors</a></li>
<li><a href="../pages/game.html">Let's Go</a></li>
</ul>
</nav>
</nav> -->


<nav class="navbarr" style="color: white;">
<div class="logo">
<a href="../index.html">Dots & Boxes βš„</a>
</div>

<ul class="nav-links" id="nav-links-toggled">
<li><a href="../index.html">Home</a></li>
<li><a href="../pages/about.html">About Us</a></li>
<li><a href="../pages/FAQs.html">FAQs</a></li>
<li><a href="../pages/contributors.html">Contributors</a></li>
<button class="start"><a href="../pages/game.html">Let's Go</a></button>
</ul>
<button class="navbar-toggler" id="navbar-toggler" type="button" onclick="toggleNavBar()">
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
</button>
</nav>
</div>

<style>



body > .about-header {
width: 100%;
position: relative;
top: 100px;
}

body > .about-header > h1 {
font-size: 5rem;
}

body > p{
position: relative;
top: 100px;
}

body > main {
position: relative;
top: 100px;
padding-bottom: 100px;
}


.author {
position: fixed;
bottom: 0;
}

.navbarr {
width: 100vw;
}

.navbar-toggler {
background-color: transparent;
border: none;
}

.navbar-toggler .toggler-icon {
width: 30px;
height: 2px;
background-color: #fff;
display: block;
margin: 5px 0;
position: relative;
-webkit-transition: all 0.3s ease-out 0s;
-moz-transition: all 0.3s ease-out 0s;
-ms-transition: all 0.3s ease-out 0s;
-o-transition: all 0.3s ease-out 0s;
transition: all 0.3s ease-out 0s;
}


.nav-links {
letter-spacing: 4px;
display: flex;
justify-content: space-between;
align-items: center;
list-style: none;
width: 50%;
padding: 0;
color: white;
font-family: inherit;
}

.nav-links li a,
.logo a {
color: white;
}

button a {
background-color: transparent;
}

.start {
padding: 10px 5px;
border-radius: 5px;
}
</style>


<script>
function toggleNavBar()
{
var nav_bar = document.getElementById("nav-links-toggled");
if (nav_bar.style.display === "flex") {
nav_bar.style.display = "none";
} else {
nav_bar.style.display = "flex";
}
}
</script>

<header class="about-header">
<h1>πŸ•ΉοΈ About Us πŸ•ΉοΈ </h1>
Expand Down
45 changes: 38 additions & 7 deletions pages/howtoplay.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,30 @@
display: none;
}
}

.navbar-toggler {
background-color: transparent;
border: none;
}

.navbar-toggler .toggler-icon {
width: 30px;
height: 2px;
background-color: #fff;
display: block;
margin: 5px 0;
position: relative;
-webkit-transition: all 0.3s ease-out 0s;
-moz-transition: all 0.3s ease-out 0s;
-ms-transition: all 0.3s ease-out 0s;
-o-transition: all 0.3s ease-out 0s;
transition: all 0.3s ease-out 0s;
}
</style>

<body>
<div class="center">
<a href="../index.html">
<img src="../assets/images/Home.jpeg" style="position: absolute; top: 55px; left: 5px; height: 100px; width: 100px; margin: 0;">
</a>

<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
Expand Down Expand Up @@ -123,18 +140,32 @@
<div class="logo">
<a href="../index.html">Dots & Boxes βš„</a>
</div>
<ul class="nav-links">

<ul class="nav-links" id="nav-links-toggled">
<li><a href="../index.html">Home</a></li>
<li><a href="../pages/about.html">About Us</a></li>
<li><a href="../pages/FAQs.html">FAQs</a></li>
<li><a href="../pages/contributors.html">Contributors</a></li>
<button class="start"><a href="../pages/game.html">Let's Go</a></button>
</ul>
<div class="hamburger">
<i class="fas fa-bars"></i>
</div>
<button class="navbar-toggler" id="navbar-toggler" type="button" onclick="toggleNavBar()">
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
</button>
</nav>
</div>
<script>
function toggleNavBar()
{
var nav_bar = document.getElementById("nav-links-toggled");
if (nav_bar.style.display === "flex") {
nav_bar.style.display = "none";
} else {
nav_bar.style.display = "flex";
}
}
</script>
<div class="instructions-container">
<h1 class="heading">β–‚ β–„ β–… β–† β–‡ β–ˆ MAXIMISE BOXES!! β–ˆ β–‡ β–† β–… β–„ β–‚</h1>
<h1 style="font-size: 39px;">How to Play ?</h1>
Expand Down
19 changes: 19 additions & 0 deletions styles/mainstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,12 @@ button a {
margin-right: 10px;
}

@media screen and (min-width: 905px) {
.navbarr .nav-links {
display: flex !important;
}
}

@media screen and (max-width: 905px) {
.hamburger {
display: inline;
Expand All @@ -943,6 +949,19 @@ button a {
align-items: center;
}

.navbarr .nav-links {
display: none;
}

.navbar-toggler {
display: inline !important;
}

}


.navbar-toggler {
display: none;
}


Expand Down