- - Hello, I'm [My Name] -
-- Code Wizard. - Terminal Fanatic. - Amateur Artist._ -
-diff --git a/css/about.css b/css/about.css index 7f10bde..a4c819d 100644 --- a/css/about.css +++ b/css/about.css @@ -1,198 +1,123 @@ -html, body { - margin: 0; - padding: 0; - scroll-behavior: smooth; - height: 100%; - font-family: sans-serif; - background: #232323; - color: #fff; -} - -main { - scroll-snap-type: y mandatory; - overflow-y: scroll; - height: 100vh; -} - -.section { - scroll-snap-align: start; - height: 90vh; - flex-direction: column; - justify-content: center; - align-items: center; +* { + all: unset; box-sizing: border-box; - margin: 0; +} + +head, script { + display: none; +} + +html, body { + height: 100%; + font-family: "IosevkaTermSlab Nerd Font Mono", monospace; + background: #202020; + color: #e0e0e0; +} + +.sections { + height: 100vh; + overflow-y: auto; + scroll-snap-type: y mandatory; +} + +/* Each section is exactly 90vh tall. */ +/* The missing 10vh comes from the next section's title-footer. */ +.section { + height: 90vh; + scroll-snap-align: start; + display: flex; + flex-direction: column; + /* This belongs to THIS section, but visually appears at the bottom of + the previous section's viewport. */ + /* The rest of the section: 80vh main content */ } .section .title-footer { - position: sticky; - top: 0; height: 10vh; - width: 100%; - margin: 0; - z-index: 2; - text-align: left; - font-size: 2rem; - text-shadow: 0 0 5px #000; - transition: top 0.3s ease; - background-color: white; - color: purple; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + text-decoration: none; + cursor: pointer; } -.section::before { - content: ""; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-size: cover; - background-position: center; - filter: blur(5px); - opacity: 0.2; - z-index: 0; +.section .title-footer h2 { + font-size: 1.2rem; + color: #bdbdbd; +} +.section .title-footer:hover h2 { + color: #6fa8a8; } .section .content { - position: relative; - z-index: 1; - text-align: center; - max-width: 800px; - margin: 0 2rem; -} - -h2 { - font-size: 2rem; - margin-bottom: 1rem; -} - -ul { - list-style: none; - padding: 0; -} -ul li { - margin: 0.5rem 0; -} - -footer { - margin-top: auto; - padding: 1rem; - font-size: 0.875rem; - text-align: center; - opacity: 0.5; + height: 80vh; + flex-shrink: 0; + padding: 3rem; + display: flex; + flex-direction: column; + justify-content: center; +} +.section .content h1 { + font-size: 3rem; + margin-bottom: 0.5rem; + color: #e0e0e0; +} +.section .content p { + color: #bdbdbd; + line-height: 1.5; } +/* background colors */ .section1 { - padding: 1rem; -} -.section1::before { - background-image: url("https://static.vecteezy.com/system/resources/thumbnails/013/384/142/small_2x/fabric-texture-abstract-pattern-black-and-white-textiles-backgrounds-photo.jpg"); -} -.section1 .content { - text-align: left; - max-width: 1024px; - margin: 4rem auto auto; -} -.section1 .content .portrait { - text-align: right; - margin-top: 0; -} -.section1 .content .portrait img { - width: 350px; - height: 350px; - object-fit: cover; - border-radius: 50%; - box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); -} -.section1 .content h1 { - font-size: 4rem; - margin: -6rem 0 1rem; - color: #5488bf; - text-shadow: 0 0 9px #373737; -} -.section1 .content h1 .myname { - font-style: normal; - color: #fff; -} -.section1 .content .tagline { - font-size: 1.7rem; - text-align: left; -} -.section1 .content .tagline .tagline-item { - display: inline; - margin-right: 0.7ch; -} -.section1 .content .tagline .tagline-item .cursor { - display: inline-block; - animation: blink 1s steps(2, start) infinite; - margin-left: 0.2ch; -} -@media (max-width: 600px) { - .section1 .content { - margin: 0; - } - .section1 .content .portrait { - text-align: center; - margin: 0; - } - .section1 .content .portrait img { - width: 200px; - height: 200px; - } - .section1 .content h1 { - text-align: left; - margin: 0 0 1ch 1.5rem; - font-size: 2.7rem; - } - .section1 .content .tagline { - display: block; - margin-left: 1.5rem; - } - .section1 .content .tagline .tagline-item { - display: block; - margin-bottom: 0.3rem; - } - .section1 .content .tagline .tagline-item:last-child { - margin-bottom: 0; - } - .section1 .content .tagline .tagline-item:last-child .cursor { - margin-left: 0.4ch; - } + background: #202020; } -@keyframes blink { - 0%, 100% { - color: rgba(255, 255, 255, 0); - } - 50% { - color: #fff; - } -} .section2 { - background-color: orange; + background: #1b1b1b; } -.section2::before { - background-image: url("https://wallpapers.com/images/hd/integral-project-management-cover-erpo8ef1af3wuquu.jpg"); -} - -.lastsection { - height: 100vh; +.section2 .title-footer { + background: #1b1b1b; } .section3 { - background-color: red; + background: #242424; } -.section3::before { - background-image: url("https://visme.co/blog/wp-content/uploads/2017/07/50-Beautiful-and-Minimalist-Presentation-Backgrounds-013.jpg"); +.section3 .title-footer { + background: #242424; } .section4 { - background-color: green; + background: #171717; } -.section4::before { - background-image: url("https://www.elegantthemes.com/blog/wp-content/uploads/2013/09/bg-1-full.jpg"); +.section4 .title-footer { + background: #171717; } .section5 { - background-color: blue; + background: #101010; } -.section5::before { - background-image: url("https://wallpapers.com/images/hd/professional-zoom-background-3h69jq8rrky7f3tj.jpg"); +.section5 .title-footer { + background: #101010; +} + +/* section5 special footer */ +.section5 footer { + height: 10vh; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + background: rgba(255, 255, 255, 0.05); + color: #bdbdbd; +} + +/* responsive */ +@media (max-width: 768px) { + .section .content { + padding: 1.5rem; + } + .section .content h1 { + font-size: 2rem; + } + .title-footer h2 { + font-size: 1rem; + } } diff --git a/html/about.html b/html/about.html index cea0865..93a0bc4 100644 --- a/html/about.html +++ b/html/about.html @@ -1,72 +1,65 @@ - +
- - -
- - Code Wizard. - Terminal Fanatic. - Amateur Artist._ -
-A short, informal overview about who you are and what you enjoy doing.
-This is section 1
+A few interesting things I've made or contributed to.
-Section 2 content
+Email: you@example.com
Mastodon / GitHub / etc.