Skip to content
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

Improve layout #84

Merged
merged 2 commits into from
May 7, 2024
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
2 changes: 1 addition & 1 deletion src/assets/styles/components/_social-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body.social-card {
width: 350px;
height: 350px;
position: absolute;
filter: drop-shadow(32px 32px 45px rgba(0, 0, 0, 0.1));
box-shadow: 15px 15px 45px var(--shadow);
border-radius: 24px;
top: 20%;
right: -44px;
Expand Down
24 changes: 15 additions & 9 deletions src/assets/styles/components/_userinfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,23 @@
margin: 0;
}

a {
margin-left: 4px;
text-decoration: none;
color: var(--text-disabled);

&:hover {
color: var(--background-default);
}
small {
display: flex;
align-items: center;
margin: 0;

small {
a {
margin: 0;
color: var(--text-disabled);
text-decoration: none;
max-width: 50ch;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;

&:hover {
color: var(--background-default);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/styles/components/writing/_article-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
width: 155px;
height: 155px;
position: relative;
filter: drop-shadow(15px 15px 45px var(--shadow));
box-shadow: 15px 15px 45px var(--shadow);
border-radius: $border-radius-12;
top: 20%;
transform: rotate(8deg);
Expand Down
10 changes: 5 additions & 5 deletions src/data/themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"borderDefault": "#E2E4E5",
"surfaceDefault": "#F6F6F7",
"textInverseSubdued": "#A1A5A7",
"shadow": "rgba(25, 26, 27, 0.1)",
"shadow": "rgba(25, 26, 27, 0.2)",
"overlay": "rgba(25, 26, 27, 0.4)"
}
},
Expand All @@ -25,7 +25,7 @@
"borderDefault": "#4D5154",
"surfaceDefault": "#2F3032",
"textInverseSubdued": "#A1A5A7",
"shadow": "rgba(255, 255, 255, 0.1)",
"shadow": "rgba(255, 255, 255, 0.2)",
"overlay": "rgba(255, 255, 255, 0.4)"
}
},
Expand All @@ -40,7 +40,7 @@
"borderDefault": "#C5C8CA",
"surfaceDefault": "#F6F6F7",
"textInverseSubdued": "#A1A5A7",
"shadow": "rgba(25, 26, 27, 0.1)",
"shadow": "rgba(25, 26, 27, 0.2)",
"overlay": "rgba(25, 26, 27, 0.4)"
}
},
Expand All @@ -55,7 +55,7 @@
"borderDefault": "#404345",
"surfaceDefault": "#3C0023",
"textInverseSubdued": "#FFC6E7",
"shadow": "rgba(255, 198, 231, 0.1)",
"shadow": "rgba(255, 198, 231, 0.2)",
"overlay": "rgba(255, 198, 231, 0.4)"
}
},
Expand All @@ -70,7 +70,7 @@
"borderDefault": "#404345",
"surfaceDefault": "#042A36",
"textInverseSubdued": "#A1A5A7",
"shadow": "rgba(148, 222, 247, 0.1)",
"shadow": "rgba(148, 222, 247, 0.2)",
"overlay": "rgba(148, 222, 247, 0.4)"
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/includes/userinfo.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</div>
<div class="commit-code">
{% icon "commit" %}
<a
<small>
<a
href="https://github.com/afnizarnur/afnizarnur.com"
data-umami-event="userinfo-commit-code"
>
<small>
{{ build.hash }}
</small>
</a>
</a>
</small>
</div>
<div class="now-playing">
<small id="current-song"></small>
Expand Down