Skip to content

Commit

Permalink
Created Seperate CSS Files
Browse files Browse the repository at this point in the history
  • Loading branch information
IamChristianS committed Aug 24, 2023
1 parent 18fd150 commit 5356dd9
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 0 deletions.
117 changes: 117 additions & 0 deletions page_styles/contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* 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%;
}
}
44 changes: 44 additions & 0 deletions page_styles/games.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* 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;
}
}
169 changes: 169 additions & 0 deletions page_styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
/* First Time Alert */
.alert {
border: 1px solid transparent;
border-radius: 10px;
background-color: snow;
}
.alert h1, p {
text-align: center;
}
.alert-tos {
font-size: 12px;
}
.alert button {
text-align: center;
padding: 5px 100px;
border: 1px solid transparent;
border-radius: 25px;
background-color: #64829e;
color: #ffffff;
}

/* Copied Button */
.copy-button {
position: relative;
display: inline-block;
}
.copy-button .copy-prompt {
position: absolute;
top: calc(-100% - 10px);
left: 50%;
transform: translateX(-50%);
padding: 6px;
background-color: rgba(0, 0, 0, 0.8);
color: #ffffff;
border-radius: 5px;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s, top 0.5s;
font-size: 16px;
font-family: 'Montserrat', Courier, monospace;
letter-spacing: -.5px;
}
.copy-button .copy-prompt::before {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 3px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
.copy-button.clicked .copy-prompt {
opacity: 1;
pointer-events: auto;
}

/* Popular Game Showcase */
.popular-games-title {
font-size: xx-large;
font-weight: bold;
color: #ffffff;
margin-top: 30px;
margin-bottom: -5px;
background-color: #708CA8;
width: 20vw;
border-radius: 1000px;
font-family: 'Montserrat', Courier, monospace;
}
@media screen and (max-width: 1500px) {
.popular-games-title {
width: 25vw;
}
}
@media screen and (max-width: 1200px) {
.popular-games-title {
width: 35vw;
}
}
@media screen and (max-width: 768px) {
.popular-games-title {
width: 75%;
}
}
.popular-games {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px 20vw;
}
.popular-games div {
flex: 1;
margin: 5px;
padding: 10px;
background-color: #708CA8;
border-radius: 1vw;
transition: background-color 0.3s ease;
cursor: pointer;
text-align: center;
}
.popular-games div p {
color: #ffffff;
font-weight: bold;
font-family: 'Montserrat', Courier, monospace;
margin: 10px 0 0;
font-size: x-large;
}
.popular-games div img {
width: 100%;
max-height: 100%;
display: block;
}
.popular-games div:hover {
background-color: #5d7994;
}
@media screen and (max-width: 1000px) {
.popular-games {
margin: 20px 8vw;
}
.popular-games div {
border-radius: 2vw;
}
}
@media screen and (max-width: 768px) {
.popular-games div p {
font-size: large;
}
.popular-games {
margin: 20px 2vw;
}
}

/* Frequently Asked Questions */
.faq-box {
background: linear-gradient(to bottom, #7b99b6, #6785a1);
color: #ffffff;
max-width: 40vw;
border-radius: 1vw;
padding: 1px 0;
margin: 1vh 0;
}
.faq-title {
text-align: left;
padding: 0 2vw;
font-weight: bold;
font-size: x-large;
}
.faq-qna {
text-align: left;
padding: 0 5vw;
font-size: large;
margin-top: -1vw;
}
@media screen and (max-width: 1200px) {
.faq-box {
max-width: 60vw;
border-radius: 2vw;
}
}
@media screen and (max-width: 1000px) {
.faq-box {
max-width: 75vw;
}
}
@media screen and (max-width: 768px) {
.faq-box {
max-width: 90vw;
}
}
Loading

0 comments on commit 5356dd9

Please sign in to comment.