diff --git a/src/assets/fonts/OFL.txt b/src/assets/fonts/OFL.txt new file mode 100644 index 0000000..da31af0 --- /dev/null +++ b/src/assets/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/assets/fonts/Poppins-Regular.ttf b/src/assets/fonts/Poppins-Regular.ttf new file mode 100644 index 0000000..9f0c71b Binary files /dev/null and b/src/assets/fonts/Poppins-Regular.ttf differ diff --git a/src/assets/fonts/Poppins-SemiBold.ttf b/src/assets/fonts/Poppins-SemiBold.ttf new file mode 100644 index 0000000..74c726e Binary files /dev/null and b/src/assets/fonts/Poppins-SemiBold.ttf differ diff --git a/src/assets/h.svg b/src/assets/h.svg new file mode 100644 index 0000000..0243d79 --- /dev/null +++ b/src/assets/h.svg @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/assets/index.css b/src/assets/index.css index 369802e..57b87f5 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -1,47 +1,104 @@ +@font-face { + font-family: "Poppins"; + src: url("fonts/Poppins-Regular.ttf") format("truetype"); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: "Poppins"; + src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); + font-weight: 600; + font-style: normal; +} + +/* MUDAR CORES POR AQUI */ +:root { + --background-color: #121316; + --background-color-secondary: #1e1e1e; + --background-color-input: #303236; + --text-color: #f5f5f5; + --button-color: #2589ff; + --button-hover-color: #0056b3; + --border-color: #ccc; +} + *, *::after, *::before { touch-action: none; box-sizing: border-box; - border: 0; - padding: 0; - margin: 0; } body { - background-color: #222; - color: #f5f5f5; - font-family: "Cascadia Code", monospace; + display: flex; + flex-direction: column; + font-family: "Poppins", sans-serif; + font-weight: 400; + color: var(--text-color); + background-color: var(--background-color); + overflow: hidden; + justify-content: center; + width: 100vw; + height: 100vh; } main { - height: 100vh; - width: 80vmin; - margin: auto auto; + display: flex; + flex-direction: row-reverse; + width: 160vmin; + height: 80vh; + margin: auto; overflow: hidden; } -#editor-block { +#editor-block, +#editor { + width: 100%; + height: 100%; +} + +#editorContainer { display: block; - height: 50vh; + width: 50%; + height: 100%; + padding: 20px; + background-color: var(--background-color-secondary); + border-radius: 14px; + margin-right: 5px; } -#gameCanvas { - width: 100% +#gameContainer { + display: flex; + flex-direction: column; + width: 50%; + height: 100%; + margin-left: 5px; } -#game { - height: 50vh; +#gameCanvas { + width: 80%; } -#editor { +#game { + display: flex; + justify-content: center; + align-items: center; width: 100%; height: 100%; + background-color: var(--background-color-secondary); + border-radius: 14px; } #buttons { display: flex; gap: 10px; + padding: 10px; + margin-top: 15px; + justify-content: space-evenly; + background-color: var(--background-color-secondary); + border-radius: 14px; + } form { @@ -53,19 +110,163 @@ input, select { width: 64px; padding: 5px; - border: 1px solid #ccc; + border: 1px solid var(--border-color); border-radius: 4px; + flex-grow: 1; + flex-basis: 0; + min-width: 0; } button { padding: 5px 10px; - background-color: #007bff; + background-color: var(--button-color); color: white; border: none; border-radius: 4px; cursor: pointer; + transition: background-color 0.2s ease; + flex-grow: 1; + flex-basis: 0; + min-width: 0; } button:hover { - background-color: #0056b3; + background-color: var(--button-hover-color); +} + +label { + display: flex; + align-items: center; +} + +label svg { + fill: white; + width: 20px; + height: 20px; +} + +#height, +#width, +input { + flex-grow: 1; + flex-basis: 0; + min-width: 0; + background-color: var(--background-color-input); + color: var(--text-color); + border: none; +} + +select { + background-color: transparent; + color: var(--text-color); + border: none; + flex-grow: 1; + flex-basis: 0; + min-width: 0; +} + +select option { + appearance: none; + cursor: pointer; + color: var(--text-color); + background-color: #2A2A2A; + font-size: 10px; + border: none; +} + +#resolution { + width: 100px; +} + +#header { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-around; + width: 100%; +} + +#header h1 { + font-size: 14px; +} + +#header #logo { + width: 30px; + height: 25px; +} + +/* RESPONSIVE DESIGN */ +@media (max-width: 600px) { + main { + display: flex; + flex-direction: column; + width: 100%; + height: 90vh; + } + + #buttons { + display: flex; + gap: 5px; + padding: 10px; + margin-top: 15px; + justify-content: center; + } + + #editorContainer, + #gameContainer { + height: 40%; + width: 90%; + border-radius: 8px; + padding: 5px; + align-self: center; + } + + #gameContainer { + height: 60%; + margin-left: 0; + padding: 0; + } + + #game { + height: 80%; + border-radius: 8px; + } + + #buttons { + height: 15%; + border-radius: 8px; + margin-top: 10px; + margin-bottom: 10px; + } + + form { + width: 100%; + justify-content: space-between; + gap: 5px; + } + + input, + #format, + #resolution, + #download { + width: 50px; + font-size: 10px; + flex-grow: 1; + flex-basis: 0; + min-width: 0; + } + + input { + width: 30px; + } + + label svg { + width: 12px; + height: 14px; + } + + #gameCanvas { + height: 100%; + width: 100%; + } } diff --git a/src/assets/logo-gly.png b/src/assets/logo-gly.png new file mode 100644 index 0000000..40f44d6 Binary files /dev/null and b/src/assets/logo-gly.png differ diff --git a/src/assets/w.svg b/src/assets/w.svg new file mode 100644 index 0000000..9e7c0d3 --- /dev/null +++ b/src/assets/w.svg @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/index.html b/src/index.html index c9608aa..7968ef1 100644 --- a/src/index.html +++ b/src/index.html @@ -1,22 +1,29 @@ -
- - - - -