Skip to content

Commit

Permalink
Removed In-Page Styling + Standardized Comments
Browse files Browse the repository at this point in the history
The past 2 commits (inc. this) is really just for my own sanity. It also cleans up some unused code, and better labels certain items.
  • Loading branch information
IamChristianS committed Aug 24, 2023
1 parent 5356dd9 commit 056d58c
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 487 deletions.
156 changes: 14 additions & 142 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<link rel="icon" href="favicon.svg">
<!--Stylesheets-->
<link rel="stylesheet" href="stylesheet.css">
<link rel="stylesheet" href="page_styles/contact.css"> <!--Page-Specific-->
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat&display=swap">
<link rel="stylesheet" href="hover.css"> <!--Hover.CSS Library-->
Expand All @@ -40,129 +41,11 @@

gtag('config', 'G-M9KJ1XPKLF');
</script>
<!--Styling-->
<style>
/* Google Form */
.form-container {
margin: 2vw 6vw;
display: flex;
}
.form-box {
background-color: #708CA8;
border-radius: 1vw;
width: 75vw;
margin: 0 1vw;
}
.form-title {
font-family: 'Montserrat', Courier, monospace;
font-size: large;
font-weight: bold;
color: #ffffff;
}
.form {
background-color: white;
max-height: 25vw;
}
@media screen and (max-width: 1200px) {
.form-container {
display: block;
}
.form-box {
width: 100%;
}
.form {
max-height: 45vw;
}
.form-title {
padding-top: 2vw;
}
}
@media screen and (max-width: 768px) {
.form {
max-height: 125vw;
}
}

/* Email Form */
.contact-container * {
box-sizing: border-box;
font-family: 'Montserrat', Courier, monospace;
}
.contact-container {
width: 75%;
margin: 0 1vw;
}
.contact-form label {
display: block;
padding: 12px 0 6px 0;
letter-spacing: -0.2px;
cursor: text;
font-size: 16px;
font-weight: 700;
}
.contact-form input, .contact-form textarea {
font-size: 16px;
display: block;
width: 100%;
padding: 10px;
background-color: #e5e7eb;
border: none;
border: 4px solid #e5e7eb;
outline: none;
border-radius: 8px;
color: #9da3ae;
}
.contact-form input:focus, .contact-form textarea:focus {
background-color: #ffffff;
color: #9da3ae;
}
.contact-form input:focus:required:invalid {
border-color: #708CA8;
background-color: #ffffff;
}
.contact-form button {
display: block;
margin-top: 12px;
width: 100%;
padding: 12px 20px;
border-radius: 8px;
border-color: transparent;
background-color: #708CA8;
color: #ffffff;
font-weight: 700;
font-size: 18px;
transition: 300ms all;
}
.contact-form button:hover {
background-color: #5d7994;
}
.contact-alert {
padding: 12px;
border-radius: 10px;
color: #ffffff;
font-size: 14px;
font-weight: 400;
margin-top: 12px;
display: none;
}
.contact-alert.visible {
display: block;
}
.contact-alert.success {
background: #69cf9d;
}
.contact-alert.error {
background: #de524c;
}
@media screen and (max-width: 1200px) {
.contact-container {
width: 100%;
}
}
</style>
<!--Scripts-->
<script src="startupScript.js"></script>
</head>
<body>
<!--Navbar-->
<!--Navbar Start-->
<div class="nav" style="display: flex;">
<button class="hvr-underline-from-center"
data-aos="fade-down"
Expand Down Expand Up @@ -207,16 +90,19 @@
style="cursor:pointer"><a>GitHub</a></button>
</div>
</div>
<!--Navbar End-->

<!--Header Image-->
<img src="img/header.png" alt="Image couldn't load." class="img-header" style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">

<!--Content-->
<center class="form-container">
<!--Ad Segment-->
<!--Ad Segment Start-->
<script>
var afg={};afg.u=6328;afg.s=5;
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");
</script>
<!--Ad Segment End-->

<div class="form-box">
<p class="form-title">Game Request</p>
Expand All @@ -240,6 +126,7 @@
marginwidth="0">Loading…
</iframe>
</div>
<!--Unused Start-->
<div class="contact-container" id="incomplete">
<form action="form_process.php" method="POST" class="contact-form">
<label for="name">Your Name</label>
Expand All @@ -254,15 +141,17 @@
<button type="submit">Send</button>
</form>
</div>
<!--Unused End-->

<!--Ad Segment-->
<!--Ad Segment Start-->
<script>
var afg={};afg.u=6328;afg.s=5;
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");
</script>
<!--Ad Segment End-->
</center>

<!--Footer--->
<!--Footer Start-->
<footer class="footer">
<div class="footer-about">
<p>Welcome to Project Hub, your ultimate destination for tailored unblocked games! With over 40 games and counting, we are committed to providing you with a personalized gaming experience that suits your preferences and interests. Our site is constantly updated with new additions to ensure a fresh and exciting selection of games. We highly value user feedback and actively incorporate it to enhance your gaming journey. Get ready to embark on a thrilling adventure as you explore the world of Project Hub, where every game is tailored to you. Let the fun begin!</p>
Expand All @@ -274,25 +163,8 @@
<a href="privacy.html">Privacy Notice</a>
</div>
</footer>
<!--Footer End-->

<!--Disable Context-Menu-->
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>
<!--Update Favicon & Title-->
<script>
window.onload = function() {
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = localStorage.getItem("faviconUrl");
document.getElementsByTagName('head')[0].appendChild(link);
var storedTitle = localStorage.getItem("title");
if (storedTitle) {
document.title = storedTitle;
}
}
</script>
<!--AOS Library-->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
Expand Down
69 changes: 17 additions & 52 deletions games.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<link rel="icon" href="favicon.svg">
<!--Stylesheets-->
<link rel="stylesheet" href="stylesheet.css">
<link rel="stylesheet" href="page_styles/games.css"> <!--Page-Specific-->
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat&display=swap">
<link rel="stylesheet" href="hover.css"> <!--Hover.CSS Library-->
Expand All @@ -44,59 +45,14 @@
<script src="startupScript.js"></script>
<!--Styling-->
<style>
/* Game Grid */
.game-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin: 20px;
}
.game-item {
text-align: center;
}
.game-item img {
height: 200px;
width: auto;
}
.game-item a {
display: block;
margin-top: 10px;
color: black;
text-decoration: none;
font-weight: 900;
font-size: 3vh;
}
@media screen and (max-width: 1200px) {
.game-grid {
grid-template-columns: repeat(3, 1fr);
}
.game-item img {
height: 160px;
}
.game-item a {
font-size: 2.5vh;
}
}
@media screen and (max-width: 768px) {
.game-grid {
grid-template-columns: repeat(2, 1fr);
}
.game-item img {
height: 140px;
}
.game-item a {
font-size: 2.2vh;
}
}

/* Ad Segment */
.ad-segment {
margin: 1vw;
}
</style>
</head>
<body>
<!--Navbar-->
<!--Navbar Start-->
<div class="nav" style="display: flex;">
<button class="hvr-underline-from-center"
data-aos="fade-down"
Expand Down Expand Up @@ -141,14 +97,17 @@
style="cursor:pointer"><a>GitHub</a></button>
</div>
</div>
<!--Navbar End-->

<!--Header Image-->
<img src="img/header.png" alt="Image couldn't load." class="img-header" style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); margin-bottom: 1vw;">

<!--Ad Segment-->
<!--Ad Segment Start-->
<br><center><script>
var afg={};afg.u=6328;afg.s=4;
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");
</script></center><br>
<!--Ad Segment End-->

<!--Game Library-->
<div class="game-grid">
Expand Down Expand Up @@ -568,13 +527,15 @@
<a href="games/gamePath/index.html" target="_blank"><strong>gameName</strong></a>
</div>
</div>
<!--Ad Segment-->

<!--Ad Segment Start-->
<br><center><script>
var afg={};afg.u=6328;afg.s=4;
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");
</script></center><br>
<!--Ad Segment End-->

<!--Footer--->
<!--Footer Start-->
<footer class="footer">
<div class="footer-about">
<p>Welcome to Project Hub, your ultimate destination for tailored unblocked games! With over 40 games and counting, we are committed to providing you with a personalized gaming experience that suits your preferences and interests. Our site is constantly updated with new additions to ensure a fresh and exciting selection of games. We highly value user feedback and actively incorporate it to enhance your gaming journey. Get ready to embark on a thrilling adventure as you explore the world of Project Hub, where every game is tailored to you. Let the fun begin!</p>
Expand All @@ -586,11 +547,15 @@
<a href="privacy.html">Privacy Notice</a>
</div>
</footer>
<!--Footer End-->

<!--Anchor Ad-->
<script>var afg={};afg.u=6328;afg.s=31;
<!--Anchor Ad Start-->
<script>
var afg={};afg.u=6328;afg.s=31;
afg.anchor="bottom";
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");</script>
document.write("<sc"+"ript src='//js.adforgames.com/cd.js'></sc"+"ript>");
</script>
<!--Anchor Ad End-->

<!--AOS Library-->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
Expand Down
Loading

0 comments on commit 056d58c

Please sign in to comment.