From 1fc8ec36791b78cf71f4dceaf6d8ed3ab899bd65 Mon Sep 17 00:00:00 2001 From: Julia Vitoria Da Luz Date: Fri, 2 Aug 2024 10:05:34 -0300 Subject: [PATCH] Criando index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Criando index e pastas do css., organizando o css em uma estrutura de diretórios lógicos. --- css/base/reset.css | 48 +++++++++++++++++++ css/base/typography.css | 1 + css/base/variables.css | 14 ++++++ css/main.css | 9 ++++ css/pages/index.css | 101 ++++++++++++++++++++++++++++++++++++++++ index.html | 21 +++++++++ 6 files changed, 194 insertions(+) create mode 100644 css/base/reset.css create mode 100644 css/base/typography.css create mode 100644 css/base/variables.css create mode 100644 css/main.css create mode 100644 css/pages/index.css create mode 100644 index.html diff --git a/css/base/reset.css b/css/base/reset.css new file mode 100644 index 0000000..af94440 --- /dev/null +++ b/css/base/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} \ No newline at end of file diff --git a/css/base/typography.css b/css/base/typography.css new file mode 100644 index 0000000..862b424 --- /dev/null +++ b/css/base/typography.css @@ -0,0 +1 @@ +@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap'); \ No newline at end of file diff --git a/css/base/variables.css b/css/base/variables.css new file mode 100644 index 0000000..ef53fa0 --- /dev/null +++ b/css/base/variables.css @@ -0,0 +1,14 @@ +:root { + /*Fonts*/ + --tamanhoGrande: 1.25rem; + --tamanhoMedio: 1.000rem; + --tamanhoPequeno: 0.812rem; + + /*Colors*/ + --green: #0c4b3b; + --cyan: #117785; + --darkBlue: #072e81; + --white: #fefefe; + --lightBlack: #373737; + --gray: #c9c9c9; +} diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..39402f4 --- /dev/null +++ b/css/main.css @@ -0,0 +1,9 @@ +/* Base styles */ +@import url('./base/reset.css'); +@import url('./base/variables.css'); +@import url('./base/typography.css'); + +/* Layout styles */ + +/* Pages styles */ +@import url('./pages/index.css'); \ No newline at end of file diff --git a/css/pages/index.css b/css/pages/index.css new file mode 100644 index 0000000..e36f880 --- /dev/null +++ b/css/pages/index.css @@ -0,0 +1,101 @@ +.index_body { + animation: gradient 10s ease infinite; + background: linear-gradient(135deg, var(--green), var(--cyan), var(--darkBlue)) no-repeat; + background-size: 300% 300%; + height: 100vh; + font-family: 'Montserrat', sans-serif; + display: flex; + flex-direction: column; + text-align: center; + justify-content: center; + align-items: center; + gap: 2rem; + margin: 0 1rem; +} + +.text_reveal h1 { + animation: fade 1ms 1s forwards; + color: var(--white); + font-size: 2rem; + font-weight: 600; + opacity: 0; +} + +.text_reveal p { + animation: fade 1ms 1s forwards; + color: var(--white); + font-size: 1.5rem; + font-weight: 500; + opacity: 0; +} + +.button { + animation: animationButton 2s .5s ease-in-out forwards; + color: var(--lightBlack); + text-decoration: none; + font-size: 1rem; + background-color: var(--gray); + padding: 1rem 1rem; + border-radius: 15px; + opacity: 0; +} + +.text_reveal { + overflow: hidden; + position: relative; + + &::after { + animation: text_reveal 2s cubic-bezier(0.85, 0, 0.15, 1) forwards; + background-color: var(--gray); + bottom: 0; + content: ''; + display: block; + left: 0; + position: absolute; + right: 0; + top: 0; + } +} + +@keyframes animationButton { + to { + opacity: 1; + } +} + +@keyframes text_reveal { + from { + transform: translateX(-101%); + } + + to { + transform: translateX(101%); + } +} + +@keyframes fade { + to { + opacity: 1; + } +} + +@keyframes gradient { + 0% { + background-position: 0 50%; + } + + 50% { + background-position: 100% 50%; + } + + 100% { + background-position: 0 50%; + } + +} + +@media screen and (max-width: 481px) { + .text_reveal h1 { + font-size: 4; + } +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..948813c --- /dev/null +++ b/index.html @@ -0,0 +1,21 @@ + + + + + + + + Início + + + + +
+

Bem-vindo!

+
+
+

Este é o meu site para o Agrinho 2024.

+
+ Clique aqui, e confita tudo! + + \ No newline at end of file