Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

update: hero — revamping view and minor fixes #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,993 changes: 1,523 additions & 470 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions src/_includes/sections/about.njk
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</h3>
</header>
{% for bio in about.bio %}
<span>{{ bio | renderMarkdownInline | safe }}</span>
<span>{{ bio | renderMarkdownInline | safe }}</span>
{% endfor %}
</div>
</section>
Expand All @@ -70,23 +70,24 @@
</header>
<article class="lists">
{% for proficient in about.languagesProficient %}
<ul>
<li>
{{ proficient.level | safe}}
</li>
{% for language in proficient.languages %}
<li>
{{ language | renderMarkdownInline | safe}}
</li>
{% endfor %}
</ul>
<ul>
<li>
{{ proficient.level | safe}}
</li>
{% for language in proficient.languages %}
<li>
{{ language | renderMarkdownInline | safe}}
</li>
{% endfor %}
</ul>
{% endfor %}
</article>
</section>
<ul class="adds">
{% for info in about.languagesExtraInfo %}
<li{% if info.type == "info" %} class="new-line" {% endif %} data-animation="right-show" data-delay="{{ loop.index }}">
{{ info.details | renderMarkdownInline | safe }}
<li{% if info.type=="info" %} class="new-line" {% endif %} data-animation="right-show"
data-delay="{{ loop.index }}">
{{ info.details | renderMarkdownInline | safe }}
</li>
{% endfor %}
</ul>
Expand Down
32 changes: 30 additions & 2 deletions src/_includes/sections/hero.njk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
d="M7.707 3.293a1 1 0 010 1.414L5.414 7H11a7 7 0 017 7v2a1 1 0 11-2 0v-2a5 5 0 00-5-5H5.414l2.293 2.293a1 1 0 11-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
clip-rule="evenodd"></path>
</svg>
<span class="title-submenu__text">/homepage</span>
<span class="title-submenu__text">/homepage - Underwater</span>
</span>
</div>
</section>
Expand Down Expand Up @@ -149,7 +149,35 @@
</section>
</section>
<section class="title-right" data-animation="right-show" data-delay="4">
<img src="/images/top-header-image.png" alt="">
<div data-animation="bottom-show" data-delay="4" class="note">
<header class="note-header">
<div>
{% include 'components/svg/logo.njk' %}
<p>welcome.asc</p>
</div>
<div>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</header>
<article>
<span class="note-heading">Currenly busy doing:</span>
<span class="note-subheading">(playing games) - absolutely</span>
<ul>
<li>- Coding</li>
<li>- Applying for Scholarship</li>
<li>- Watching youtube</li>
</ul>
</article>
<svg width="100" height="100" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path
d="M11.65 8.42634L14.8715 5.20767L18.1667 8.50567V14.2517L14.7667 17.6517V10.1178L11.65 13.2345V15.1017L8.24998 18.5017V16.6345L7.39998 17.4845V12.6763L8.24998 11.8263V7.00117L11.65 3.60117V8.42634Z" />
<path d="M7.23 17.6573L7.4 17.4845V19.3517L4 22.7517V5.18501H7.4V12.6763L4.82733 15.2518L7.23 17.6573Z" />
<path
d="M14.472 0L21 6.52801V11.3362L18.1667 8.50284V5.18501H14.8913L14.8715 5.20484L12.0665 2.40267L14.472 0Z" />
</svg>
</div>
</section>
</section>
<div class="hero-decoration"></div>
Expand Down
1 change: 1 addition & 0 deletions src/assets/scss/modules/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ html:root {
--clr-accent: hsl(var(--_h), 50%, 40%);
--clr-accent-light: hsl(var(--_h), 84%, 72%);
--clr-accent-dark: hsl(var(--_h), 71%, 22%);
--clr-complementary: hsl(90, 50%, 40%);

--clr-href: hsl(var(--_h), 80%, 50%);
--clr-href-visited: hsl(var(--_h), 70%, 22%);
Expand Down
52 changes: 34 additions & 18 deletions src/assets/scss/modules/component/_aboutme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,22 +197,6 @@
}
}

article {
padding: 1rem;
height: 100%;
overflow-y: auto;

scrollbar-width: none;

&::-webkit-scrollbar {
width: 0;
}

li {
padding-left: 0.6rem;
}
}

.explain {
display: flex;
align-items: center;
Expand All @@ -231,28 +215,60 @@
}

.note {
color: var(--clr-white);
display: flex;
flex: 0 0 auto;
position: relative;
width: min(25rem, 100%);
flex-direction: column;
background-color: hsl(0, 0%, 13%);
border-radius: 0.6rem;
box-shadow: 0 0.3125rem 0.625rem hsla(0, 0%, 0%, 0.4);
height: 100%;
height: max(20rem, 100%);
transition: all 300ms ease-in-out;

& > svg {
article {
padding: 1rem;
z-index: 80;
}

&>svg {
position: absolute;
right: 0.1rem;
bottom: 0.1rem;
color: hsl(0, 0%, 11%);
}

article {
padding: 1rem;
height: 100%;
overflow-y: auto;

scrollbar-width: none;

&::-webkit-scrollbar {
width: 0;
}

li {
padding-left: 0.6rem;
}
}

&-heading {
font-weight: 600;
display: block;
text-transform: uppercase;
letter-spacing: 0.1em;
line-height: 1.2;
}

&-subheading {
font-style: italic;
}

li {
font-size: 0.85em;
}

&-header {
Expand Down
32 changes: 25 additions & 7 deletions src/assets/scss/modules/component/_animation.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[data-animation] {
opacity: 0;
transition: all 1s ease;
transition: translate var(--_translate, 1s) ease-in-out, scale var(--_scale, 1s) ease-in-out, rotate var(--_rotate, 1s) ease-in-out, opacity var(--_opacity, 1s) ease-in-out;
}

[data-animation='fade-in'] {
Expand All @@ -11,6 +11,18 @@
translate: -5em 0;
}

[data-animation='top-show'] {
translate: 0 -5em;
}

[data-animation='bottom-show'] {
translate: 0 5em;
}

[data-animation='left-show'] {
translate: 5em 0;
}

[data-animation='prototype-card'] {
translate: -5em 0;

Expand All @@ -19,23 +31,29 @@
}
}

[data-animation='left-show'] {
translate: 5em 0;
}

.has-been-animated {
opacity: 1;
opacity: unset;
scale: unset;
rotate: unset;
translate: unset !important;
}

@media (prefers-reduced-motion) {

.prototype-reader,
.data {
transform: unset !important;
}

*,
*::after,
*::before {
animation: unset !important;
rotate: 0deg !important;
translate: 0em 0em !important;
}

[data-animation] {
translate: unset !important;
opacity: 1 !important;
}
}
6 changes: 6 additions & 0 deletions src/assets/scss/modules/component/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
justify-content: center;
flex-direction: column;
background-color: var(--clr-background);
height: 80dvh;
z-index: 3;
position: relative;

@include breakpoint-down('medium') {
height: 100%;
}

&-decoration {
--width: 95vmin;
--increase: 1.2;
Expand Down Expand Up @@ -57,6 +62,7 @@
z-index: -1;
position: absolute;
bottom: 0;
margin-bottom: -.625rem;
left: 0;
width: 100%;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions src/assets/scss/modules/component/_preload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
left: 0;
right: 0;
bottom: 0;
height: 100dvh;
z-index: 999;
flex-direction: column;
translate: 0 0;
Expand Down
49 changes: 47 additions & 2 deletions src/assets/scss/modules/component/_title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,48 @@
}

&-right {
flex: 0 1 auto;
position: relative;
width: 25rem;
height: 20rem;

@include breakpoint-down('medium') {
width: 100%;
}

&:hover {
.note.has-been-animated {
rotate: 0deg;
scale: 1.1;
}
}

.note.has-been-animated {
rotate: 3deg;
--_scale: 300ms;
--_rotate: 700ms;
}

.note {
rotate: -10deg;
}

img {
&::before {
rotate: 9deg;
content: '';
position: absolute;
width: 100%;
height: 100%;
background-color: var(--clr-complementary);
left: -0.7rem;
border-radius: 40% 20% / 90%;
animation: rolling 3s infinite ease-in;
}

@keyframes rolling {
50% {
rotate: -9deg;
scale: 1.01;
}
}
}
}
Expand Down Expand Up @@ -185,6 +223,7 @@
font-weight: 600;
}


#activity {
display: inline-block;
position: relative;
Expand All @@ -202,6 +241,12 @@
}
}

#year,
svg,
#month {
color: var(--clr-foreground-900)
}

svg {
width: 1.2rem;
}
Expand Down