diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-11 22:29:14 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-11 22:59:19 +0800 |
| commit | fb16a87d85d711a990acf7b522850822c40b8304 (patch) | |
| tree | c7efc64f71e6d301fc025c4bfc968260d4e985aa | |
| parent | b0591210cef3b714508acf8cbcc50a79db1b1a36 (diff) | |
new font, new style and updates
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | pages/info/about.html | 52 | ||||
| -rw-r--r-- | pages/repo/github/repos.html | 2 | ||||
| -rw-r--r-- | src/css/about.css | 52 | ||||
| -rw-r--r-- | src/css/ghrepo.css | 33 | ||||
| -rw-r--r-- | src/css/style.css | 64 | ||||
| -rw-r--r-- | src/js/getrepo.js | 4 | ||||
| -rw-r--r-- | src/js/header.js | 10 | ||||
| -rw-r--r-- | tmp/.htmltest/htmltest.log | 4 |
9 files changed, 156 insertions, 67 deletions
@@ -28,7 +28,7 @@ <section class="indexPage"> <div class="window slowScroll animate zoomIn animate--fast"> - <div class="windowWrap tilt"> + <div class="windowWrap tilt" data-tilt-full-page-listening> <div class="text"> <h2 class="description">Hello , I am</h2> <object class="br"></object> diff --git a/pages/info/about.html b/pages/info/about.html index a8829aed..71c6c3b8 100644 --- a/pages/info/about.html +++ b/pages/info/about.html @@ -1,34 +1,44 @@ <!DOCTYPE html> <html lang="en"> - <head> +<head> <title>About Me</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="/src/css/style.css" rel="stylesheet"> <link href="/src/css/about.css" rel="stylesheet"> - <link rel="icon" href="https://avatars.githubusercontent.com/u/97672521" type="image/png"></link> - </head> - <body class="animate reveal"> + <link rel="icon" href="https://avatars.githubusercontent.com/u/97672521" type="image/png"> +</head> +<body class="animate reveal"> + <div class="background" id="bg"> <!-- headers --> <div header page="About"></div> <!-- main page --> <section class="aboutPage"> - <div class="pp"> - <img src="/images/self.jpg" alt="Me" loading="lazy"> - </div> - <div class="name"> - <strong>littleblack111</strong> - </div> - <div class="intro"> - <strong>Who am I</strong> - <p>I'm a senior programmer</p> - </div> - <div class="info" /> - <ul>What programming language do I do? - <li>Python(3)</li> - </ul> + <div class="container"> + <div class="left"> + <img src="https://avatars.githubusercontent.com/u/97672521" alt="Me" loading="lazy"> + </div> + <div class="right"> + <div class="info"> + <div class="name"> + <strong>littleblack111</strong> + </div> + <div class="intro"> + <strong>Who am I</strong> + <p>I'm a senior programmer</p> + </div> + <div class="info"> + <ul>What programming language do I do? + <li>Python(3)</li> + </ul> + </div> + </div> + </div> + </div> </section> - <script src="/src/js/about.js"></script> - <script src="/src/js/header.js"></script> - </body> + </div> + <script src="/src/js/about.js"></script> + <script src="/src/js/header.js"></script> + <script src="/src/js/rbg.js"></script> +</body> </html> diff --git a/pages/repo/github/repos.html b/pages/repo/github/repos.html index 50d76a91..139a496d 100644 --- a/pages/repo/github/repos.html +++ b/pages/repo/github/repos.html @@ -13,7 +13,7 @@ <script src="/src/js/getrepo.js" defer></script> </head> -<body class="animate reveal"> +<body> <div class="bgWrap"> <!-- headers --> <div header page="GhRepo"></div> diff --git a/src/css/about.css b/src/css/about.css index 81769118..0cb28985 100644 --- a/src/css/about.css +++ b/src/css/about.css @@ -2,8 +2,60 @@ /* */ /* } */ +body { + margin: 0; + padding: 0; +} + +.container { + display: flex; + align-items: center; + justify-content: center; + height: 100vh; +} + +.left { + width: 50%; + display: flex; + overflow: hidden; + align-items: center; + margin: auto; + justify-content: center; + /* background-color: #f1f1f1; */ +} + +.left img { + max-width: 100%; + height: auto; +} + +.right { + flex: 1; + padding: 20px; +} + +.info { + margin-bottom: 20px; +} + +.info h2 { + font-size: 24px; + margin-bottom: 10px; +} + +.info p { + font-size: 16px; + margin: 0; +} + + .name { font-family: smooth; font-size: 5vw; } + +.background { + width: 100%; + height: 100vh; +} diff --git a/src/css/ghrepo.css b/src/css/ghrepo.css index 772cfe08..64903e87 100644 --- a/src/css/ghrepo.css +++ b/src/css/ghrepo.css @@ -38,7 +38,7 @@ main { } .bgWrap { - overflow: hidden; + overflow: hidden; top: 0; left: 0; margin: 0; @@ -117,12 +117,6 @@ a { -webkit-transition: background 0.5s } -a:hover { - /* color: var(--text); */ - background: rgba(0, 0, 0, 0.1); - transition: background 0.5s -} - .github-img { width: 45px; margin-right: 8px; @@ -181,6 +175,12 @@ ul { transform: scale(1.1); } +.user-info .usertitle { + font-family: audiowide; + text-transform: uppercase; + font-size: 2vw; +} + .filter-repos, input { background: rgba(10, 10, 15, 0.3); @@ -239,7 +239,7 @@ input:active, transition: all 0.5s; } -h3 { +.repo-title { margin: 4px; width: 100%; text-align: center; @@ -282,14 +282,19 @@ h3 { .repo-list li:hover { /* box-shadow: 0 3px 6px var(--accent), 0 3px 6px var(--accent); */ background: rgba(0, 0, 0, 0.5); - transform: scale(1.1); + transform: scale(1.05); transition: background 0.5s, transform 1s, all 0.3s } -.repo-list:hover .repo:not(:hover) { +.repo-list:hover li:not(:hover) { + /* background: rgba(0, 0, 0, 0.3); */ background: rgba(0, 0, 0, 0.3); - transition: all 1s + transform: scale(0.95); + animation-duration: 0.5s; + transition: background 0.5s, transform: 1s, all 0.3s; } + + .link-btn { padding: 10px 20px; /* background: var(--bg-main); */ @@ -345,11 +350,15 @@ h3 { } .repo-list { - justify-content: space-between; + justify-content: space-around; } .repo-list li { width: 48%; + margin-right: 1.5%; + margin-left: 1.5%; + margin-top: 2%; + margin-bottom: 2%; } } diff --git a/src/css/style.css b/src/css/style.css index 2e14ee6c..3f9236bf 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -28,6 +28,11 @@ font-family: rocksalt; src: url(/fonts/RockSalt-Regular.ttf); } + +@font-face { + font-family: audiowide; + src: url(/fonts/audiowide.ttf); +} /* page setup ============================================= */ * { @@ -101,8 +106,16 @@ body::-webkit-scrollbar { backdrop-filter: blur(32px); transform: scale(2); } + } +@keyframes shake { + 0% { transform: rotate(0deg); } + 25% { transform: rotate(.5deg); } + 50% { transform: rotate(0eg); } + 75% { transform: rotate(-.5deg); } + 100% { transform: rotate(0deg); } +} /* animation: name duration timing-function delay iteration-count direction fill-mode; */ @@ -135,6 +148,8 @@ body::-webkit-scrollbar { animation-duration: 1s; } +/* real utility classes */ + .animate.slideInTop { animation-name: slideInTop; animation-timing-function: ease-in; @@ -159,14 +174,15 @@ body::-webkit-scrollbar { animation-name: reveal; } +.animate.shake { + animation-name: shake +} + /* transition */ * { transition: all 0.3s; } -*:hover { - transition: all 0.3s -} .js-tilt-glare { border-radius: 18px; @@ -176,7 +192,7 @@ body::-webkit-scrollbar { /* topbar styles ========================================== */ header { - position:fixed; + position: fixed; top: 0; left: 0; width: 100%; @@ -203,8 +219,8 @@ header { color: #F4E8C1; } -.navBar .left a {float: left;} -.navBar .right a {float: right;} +.navBar .hleft a {float: left;} +.navBar .hright a {float: right;} .navBar a::after { content: ''; @@ -282,19 +298,25 @@ section { perspective: 10px; } -.slowScroll - transform: translateZ(-10px) scale(2); -} - -.fastScroll { - transform: translateZ(-5px) scale(1.5); -} - -.slowScroll, -.fastScroll { - position: absolute; - /* height: 100%; */ - /* width: 100%; */ - object-fit: cover; - z-index: -1; +a:hover { + font-weight: bold; + text-decoration: underline; + text-decoration-thickness: 3px; + -webkit-text-decoration-line: underline; + cursor: pointer; + transition-timing-function: cubic-bezier(.4,0,.2,1); + transition-duration: .15s; + text-underline-offset: 1px; + transition: all .5s; + position: relative; + height: 100%; + font-size: 5mm; + text-transform: capitalize; + text-align: center; + margin-left: 5mm; + margin-right: 5mm; + padding-top: 3mm; + padding-bottom: 3mm; + /* border-radius: 8px; */ + /* color: #F4E8C1; */ } diff --git a/src/js/getrepo.js b/src/js/getrepo.js index 372fcca2..ab853d02 100644 --- a/src/js/getrepo.js +++ b/src/js/getrepo.js @@ -32,7 +32,7 @@ const displayProfile = (profile) => { </figure> <div> <!-- <h2><a href=${profile.blog}><strong>${profile.name}</strong></a></h2> --> - <h2><a href=/><strong>${profile.name}</strong></a></h2> + <h2><a href=/><strong class="usertitle">${profile.name}</strong></a></h2> <!-- <h2><a href=${profile.html_url}><strong>${profile.name}</strong></a></h2> --> <p>${profile.bio}</p> <p> @@ -89,7 +89,7 @@ const displayRepos = (repos) => { let listItem = document.createElement('li'); listItem.classList.add('repo'); listItem.innerHTML = ` - <h3>${repo.name}</h3> + <h2 class="repo-title">${repo.name}</h2> <span>${repo.description ? `<span>${repo.description}</span>` : ''}<br/><br/>` if (repo.stargazers_count > 0) { diff --git a/src/js/header.js b/src/js/header.js index 9932cf52..f8e53d5a 100644 --- a/src/js/header.js +++ b/src/js/header.js @@ -7,12 +7,12 @@ newElement.innerHTML = ` <!-- header --> <header id="navBarHeader"> <nav class="navBar"> - <div class="left"> - <a id="btnHome" href="/">Home<span></span></span></a> + <div class="hleft"> + <a id="btnHome" style="text-decoration: unset" href="/">Home<span></span></span></a> </div> - <div class="right"> - <a href="/pages/repo/github/repos.html" id="btnGhRepo">Github Repos</a> - <a href="/pages/info/about.html" id="btnAbout">About</a> + <div class="hright"> + <a href="/pages/repo/github/repos.html" id="btnGhRepo" style="text-decoration: unset">Github Repos</a> + <a href="/pages/info/about.html" id="btnAbout" style="text-decoration: unset">About</a> </div> </nav> </header> diff --git a/tmp/.htmltest/htmltest.log b/tmp/.htmltest/htmltest.log index 6b001a77..ea3335ec 100644 --- a/tmp/.htmltest/htmltest.log +++ b/tmp/.htmltest/htmltest.log @@ -1,5 +1 @@ -target does not exist --- index.html --> ./index.js -alt attribute missing --- index.html --> -src attribute missing --- index.html --> target does not exist --- pages/info/about.html --> /images/self.jpg -missing doctype --- src/html/headers.html --> <nil> |
