diff --git a/.stylelintrc.json b/.stylelintrc.json index 5439887..7b0a72e 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -5,6 +5,7 @@ ], "rules": { "selector-max-id": 1, - "scss/at-import-no-partial-leading-underscore": null + "scss/at-import-no-partial-leading-underscore": null, + "selector-class-pattern": null } } diff --git a/dist/styles.css b/dist/styles.css index ca08144..d045ad3 100644 --- a/dist/styles.css +++ b/dist/styles.css @@ -1 +1 @@ -*{margin:0;padding:0}*,*::before,*::after{box-sizing:inherit}html{box-sizing:border-box}body{color:var(--color-text-on-primary-extra-dark);font-size:var(--font-size);font-family:var(--font-family-sans);background-color:var(--color-primary-extra-dark)}a{color:var(--color-link-on-primary-extra-dark)}a:hover{text-decoration:none}section:not(:last-of-type){border-bottom:3px solid #fff}:root{--color-primary-extra-dark: #131a40;--color-primary-dark: #273273;--color-primary: #4e64a6;--color-primary-light: #829fd9;--color-primary-extra-light: #99b7f9;--color-text-on-primary-extra-dark: #fff;--color-text-on-primary-dark: #fff;--color-text-on-primary: #fff;--color-text-on-primary-light: #2b2b2b;--color-text-on-primary-extra-light: #2b2b2b;--color-link-on-primary-extra-dark: var(--color-primary-extra-light)}:root{--font-family-sans: 'Oxygen', sans-serif;--font-family-mono: 'Oxygen mono', monospace;--font-size: 1.3rem}.intro{padding:4rem 3rem 10rem}.intro p{font-size:1rem;line-height:1.5}.intro p:not(:last-of-type){margin-bottom:1rem}.intro__header{margin:3rem 0;font-weight:normal;font-size:4rem}.intro__greeting{font-family:var(--font-family-mono)}.intro__greeting span{display:block;color:var(--color-primary-extra-light);font-size:4rem;font-family:var(--font-family-sans)}.contact{display:flex;flex-direction:column;align-items:center;row-gap:1rem;padding:3rem 1rem;color:var(--color-text-on-primary-extra-light);background-color:var(--color-primary-extra-light)}.contact__link{padding:0.6rem;color:var(--color-text-on-primary-extra-dark);font-family:var(--font-family-mono);text-decoration:none;background-color:var(--color-primary-extra-dark);border-radius:5px}.contact__link:hover{background-color:var(--color-primary-dark)} +*{margin:0;padding:0}*,*::before,*::after{box-sizing:inherit}html{box-sizing:border-box}body{color:var(--color-text-on-primary-extra-dark);font-size:var(--font-size);font-family:var(--font-family-sans);background-color:var(--color-primary-extra-dark)}a{color:var(--color-link-on-primary-extra-dark)}a:hover{text-decoration:none}section:not(:last-of-type){border-bottom:3px solid #fff}:root{--color-white: #fff;--color-black: #2b2b2b;--color-primary-extra-dark: #131a40;--color-primary-dark: #273273;--color-primary: #4e64a6;--color-primary-light: #829fd9;--color-primary-extra-light: #99b7f9;--color-text-on-primary-extra-dark: var(--color-white);--color-text-on-primary-dark: var(--color-white);--color-text-on-primary: var(--color-white);--color-text-on-primary-light: var(--color-black);--color-text-on-primary-extra-light: var(--color-black);--color-link-on-primary-extra-dark: var(--color-primary-extra-light)}:root{--font-family-sans: 'Oxygen', sans-serif;--font-family-mono: 'Oxygen mono', monospace;--font-size: 1.3rem}.intro{padding:5rem 3rem 10rem}.intro p{font-size:1rem;line-height:1.5}.intro p:not(:last-of-type){margin-bottom:1rem}.intro__header{margin:3rem 0;font-weight:normal;font-size:4rem}.intro__greeting{font-family:var(--font-family-mono)}.intro__greeting span{display:block;color:var(--color-primary-extra-light);font-size:4rem;font-family:var(--font-family-sans)}.contact{display:flex;flex-direction:column;align-items:center;row-gap:1rem;padding:3rem 1rem;color:var(--color-text-on-primary-extra-light);background-color:var(--color-primary-extra-light)}.contact__link{padding:0.6rem;color:var(--color-text-on-primary-extra-dark);font-family:var(--font-family-mono);text-decoration:none;background-color:var(--color-primary-extra-dark);border-radius:5px}.contact__link:hover{background-color:var(--color-primary-dark)}.nav{position:sticky;top:0;padding:1.5rem;font-family:var(--font-family-mono);background-color:var(--color-primary-extra-dark)}.nav__list{display:flex;align-items:center;-moz-column-gap:1.5rem;column-gap:1.5rem;list-style:none}.nav__link{color:var(--color-text-on-primary-extra-dark);font-size:1rem;text-decoration:none}.nav__link:hover{color:var(--color-primary-extra-light)}.nav__item--square{display:grid;min-width:2rem;height:2rem;padding:0 0.5rem;text-align:center;background-color:var(--color-white);border-radius:5px;place-content:center}.nav__item--square:hover{background-color:var(--color-primary-extra-light)}.nav__item--square .nav__link{color:var(--color-text-on-primary-extra-light)}.nav__item--square img{display:block;height:1.3rem}.nav__item:first-of-type{margin-right:auto;font-family:var(--font-family-sans)}.nav__item:first-of-type .nav__link{font-size:1.5rem} diff --git a/index.html b/index.html index 53f4e36..3f8e12d 100644 --- a/index.html +++ b/index.html @@ -13,13 +13,40 @@ />
-Hi, my name is Gustavo Oliveira.
@@ -37,7 +64,7 @@
Have any questions or interesting projects I could contribute to?
diff --git a/styles/_colors.scss b/styles/_colors.scss index fb60e00..ffea44c 100644 --- a/styles/_colors.scss +++ b/styles/_colors.scss @@ -1,13 +1,15 @@ :root { + --color-white: #fff; + --color-black: #2b2b2b; --color-primary-extra-dark: #131a40; --color-primary-dark: #273273; --color-primary: #4e64a6; --color-primary-light: #829fd9; --color-primary-extra-light: #99b7f9; - --color-text-on-primary-extra-dark: #fff; - --color-text-on-primary-dark: #fff; - --color-text-on-primary: #fff; - --color-text-on-primary-light: #2b2b2b; - --color-text-on-primary-extra-light: #2b2b2b; + --color-text-on-primary-extra-dark: var(--color-white); + --color-text-on-primary-dark: var(--color-white); + --color-text-on-primary: var(--color-white); + --color-text-on-primary-light: var(--color-black); + --color-text-on-primary-extra-light: var(--color-black); --color-link-on-primary-extra-dark: var(--color-primary-extra-light); } diff --git a/styles/_intro.scss b/styles/_intro.scss index 41fe0b2..14f98e8 100644 --- a/styles/_intro.scss +++ b/styles/_intro.scss @@ -1,5 +1,5 @@ .intro { - padding: 4rem 3rem 10rem; + padding: 5rem 3rem 10rem; p { font-size: 1rem; diff --git a/styles/_navigation.scss b/styles/_navigation.scss new file mode 100644 index 0000000..72b8416 --- /dev/null +++ b/styles/_navigation.scss @@ -0,0 +1,59 @@ +.nav { + position: sticky; + top: 0; + padding: 1.5rem; + font-family: var(--font-family-mono); + background-color: var(--color-primary-extra-dark); + + &__list { + display: flex; + align-items: center; + column-gap: 1.5rem; + list-style: none; + } + + &__link { + color: var(--color-text-on-primary-extra-dark); + font-size: 1rem; + text-decoration: none; + + &:hover { + color: var(--color-primary-extra-light); + } + } + + &__item { + &--square { + display: grid; + min-width: 2rem; + height: 2rem; + padding: 0 0.5rem; + text-align: center; + background-color: var(--color-white); + border-radius: 5px; + place-content: center; + + &:hover { + background-color: var(--color-primary-extra-light); + } + + .nav__link { + color: var(--color-text-on-primary-extra-light); + } + + img { + display: block; + height: 1.3rem; + } + } + + &:first-of-type { + margin-right: auto; + font-family: var(--font-family-sans); + + .nav__link { + font-size: 1.5rem; + } + } + } +} diff --git a/styles/main.scss b/styles/main.scss index 7c4b329..8fb04fb 100644 --- a/styles/main.scss +++ b/styles/main.scss @@ -3,3 +3,4 @@ @import 'typography'; @import 'intro'; @import 'contact'; +@import 'navigation'; diff --git a/svg/github.svg b/svg/github.svg new file mode 100644 index 0000000..55c88f8 --- /dev/null +++ b/svg/github.svg @@ -0,0 +1,6 @@ +