Skip to content

Commit

Permalink
✨ Made small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed Nov 21, 2024
1 parent e1e50eb commit 9134fc6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 218 deletions.
216 changes: 2 additions & 214 deletions css/gamedesign.css
Original file line number Diff line number Diff line change
@@ -1,221 +1,9 @@
/* SCROLLBAR */
::-webkit-scrollbar {
width: 0;
}

/* THEME */
[data-theme="light"] {
--color-bg-section: #ffffff;
--color-text: #000000;
--color-bg-interest: #ededed;
}

[data-theme="dark"] {
--color-bg-section: #1d1d1d;
--color-text: #f1f1f1;
--color-bg-interest: #2f2f2f;
}

/* GENERAL */
* {
font-family: "Open Sans", sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-variation-settings: "wdth" 100;
transition: ease-in-out 0.25s;
}

html {
background-color: white;
padding: 0;
margin: 0;
}

body {
display: flex;
justify-content: center;
padding: 0;
margin: 0;
width: 100vw;
min-height: 100vh;
overflow-x: hidden;
background-color: #2b3f6d;
background-image: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);
}

main {
padding: 25px;
}

button {
background-color: transparent;
border: none;
cursor: pointer;
padding: 25px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
right: 0;
}

h1,
h2,
h3,
h4 {
color: var(--color-text);
margin: 0;
padding: 0;
}

h1 {
font-size: 2rem;
font-weight: 700;
}

h2 {
font-size: 1rem;
font-weight: 700;
margin-bottom: 15px;
}

h3 {
font-size: 1rem;
font-weight: 400;
color: gray;
}

a, h4 {
font-size: 1rem;
font-weight: 400;
text-decoration: none;
color: var(--color-text);
}

section {
position: relative;
background-color: var(--color-bg-section);
border-radius: 5px;
padding: 25px;
margin-top: 25px;
margin-bottom: 25px;
max-width: 700px;
}

section:first-of-type {
margin-top: 0;
}

section:last-of-type {
margin-bottom: 0;
}

/* Section 1 */

section:nth-of-type(1)>img {
border-radius: 50%;
width: 150px;
height: 150px;
}

section:nth-of-type(1)>a {
display: flex;
align-items: center;
margin-top: 15px;
}

section:nth-of-type(1)>a>img {
margin-right: 10px;
width: 20px;
height: 20px;
}

/* Section 2 */

section:nth-of-type(2) {
display: flex;
flex-direction: column;
}

section:nth-of-type(2)>a::before {
content: url("../assets/icons/link.svg");
margin-right: 10px;
vertical-align: middle;
width: 20px;
height: 20px;
}

section:nth-of-type(2)>a, section:nth-of-type(3)>a {
text-decoration: underline transparent solid 1px;
}

section:nth-of-type(2)>a:hover, section:nth-of-type(3)>a:hover {
text-decoration: underline gray solid 1px;
}

/* Section 3 */

section:nth-of-type(3) {
display: flex;
flex-direction: column;
}

section:nth-of-type(3) a {
margin-bottom: 5px;
}

section:nth-of-type(3) img {
section:nth-of-type(3)>a::before {
content: url("../assets/icons/link.svg");
margin-right: 10px;
vertical-align: middle;
width: 20px;
height: 20px;
}

/* Section 4 */

section:nth-of-type(4) a {
padding: 4px 8px;
background-color: var(--color-bg-interest);
border-radius: 5px;
margin-bottom: 5px;
margin-right: 5px;
cursor: default;
}

section:nth-of-type(4)>div {
display: flex;
flex-wrap: wrap;
}

/* ANIMATIONS */
section {
animation: fadeIn 0.5s forwards;
opacity: 0;
}

section:nth-of-type(1) {
animation-delay: 0.1s;
}

section:nth-of-type(2) {
animation-delay: 0.2s;
}

section:nth-of-type(3) {
animation-delay: 0.3s;
}

section:nth-of-type(4) {
animation-delay: 0.4s;
}

@keyframes fadeIn {
from {
opacity: 0;
}

to {
opacity: 1;
}
}
6 changes: 6 additions & 0 deletions css/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ main {
padding: 25px;
}

@media (min-width: 600px) {
main {
min-width: 500px;
}
}

button {
background-color: transparent;
border: none;
Expand Down
10 changes: 6 additions & 4 deletions gamedesign.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<!-- CSS -->
<link rel="stylesheet" href="css/stylesheet.css">
<link rel="stylesheet" href="css/gamedesign.css">
<!-- JS -->
<script src="js/dynamicTitle.js" defer></script>
<script src="js/darkMode.js" defer></script>
Expand All @@ -34,15 +35,16 @@ <h4>Développeur, Photographe et Musicien</h4>
</section>
<section>
<h2>Game Design Documents</h2>
<a href="gamedesign/documents/BOT A.N.I.C - GDD.pdf" target="_blank">BOT A.N.I.C</a>
<a href="gamedesign/documents/Le LAB - GDD.pdf" target="_blank">Le LAB</a>
<a href="gamedesign/documents/RiceBattle - GDD.pdf" target="_blank">RiceBattle</a>
<a href="gamedesign/documents/A Little Adventure - GDD.pdf" target="_blank">A Little Adventure</a>
<a href="gamedesign/documents/BOT A.N.I.C - GDD.pdf" target="_blank">BOT A.N.I.C</a>
<!-- <a href="gamedesign/documents/A Little Adventure - GDD.pdf" target="_blank">A Little Adventure</a> -->
</section>
<section>
<h2>Prototypes de jeux</h2>
<a href="gamedesign/prototypes/ALittleAdventure_Platformer_WindowsDevBuild.zip" target="_blank">A Little Adventure - Platformer</a>
<a href="gamedesign/prototypes/RiceBattle_WindowsDevBuild.zip" target="_blank">RiceBattle</a>
<a href="gamedesign/prototypes/A Little Adventure - Installer.exe" target="_blank">A Little Adventure - Platformer</a>
<a href="gamedesign/prototypes/RiceBattle - WindowsDevBuild.zip" target="_blank">RiceBattle</a>
<a href="gamedesign/prototypes/LeLab - WindowsDevBuild.zip.zip" target="_blank">Le LAB</a>
</section>
</main>
</body>
Expand Down

0 comments on commit 9134fc6

Please sign in to comment.