Skip to content

Commit

Permalink
fix: import error
Browse files Browse the repository at this point in the history
  • Loading branch information
yongsk0066 committed May 3, 2024
1 parent 3d5350f commit 7767631
Show file tree
Hide file tree
Showing 25 changed files with 265 additions and 489 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@astrojs/check": "0.5.10",
"@astrojs/lit": "^4.0.1",
"@astrojs/mdx": "2.3.1",
"@astrojs/react": "3.3.1",
"@astrojs/react": "3.3.2",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "3.1.4",
"@astrojs/tailwind": "^5.1.0",
Expand All @@ -27,7 +27,7 @@
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "4.7.0",
"astro": "4.7.1",
"clsx": "^2.1.1",
"fs-extra": "^11.1.1",
"jsdom": "^24.0.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
130 changes: 87 additions & 43 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,47 +1,91 @@
---
const today = new Date();
import Container from "./Container.astro";
import BackToTop from "./BackToTop.astro";
---

<footer>
&copy; {today.getFullYear()} Yongseok. All rights reserved.
<div class="social-links">
<a
href="https://github.com/yongsk0066/yongsk0066.github.io"
target="_blank"
>
<span class="sr-only">Go to my Github</span>
<svg
viewBox="0 0 16 16"
aria-hidden="true"
width="32"
height="32"
astro-icon="social/github"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
</div>
<footer class="animate">
<Container>
<div class="relative">
<div class="absolute right-0 -top-20">
<BackToTop />
</div>
</div>
<div class="flex justify-between items-center">
<div>
&copy; 2024 {`|`} 장용석 블로그
</div>
<div class="flex flex-wrap gap-1 items-center">
<button
id="light-theme-button"
aria-label="Light theme"
class="group size-8 flex items-center justify-center rounded-full"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
class="group-hover:stroke-black group-hover:dark:stroke-white transition-colors duration-300 ease-in-out"
>
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
<button
id="dark-theme-button"
aria-label="Dark theme"
class="group size-8 flex items-center justify-center rounded-full"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
class="group-hover:stroke-black group-hover:dark:stroke-white transition-colors duration-300 ease-in-out"
>
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
<button
id="system-theme-button"
aria-label="System theme"
class="group size-8 flex items-center justify-center rounded-full"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
class="group-hover:stroke-black group-hover:dark:stroke-white transition-colors duration-300 ease-in-out"
>
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect>
<line x1="8" y1="21" x2="16" y2="21"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
</svg>
</button>
</div>
</div>
</Container>
</footer>
<style>
footer {
padding: 2em 1em 6em 1em;
background: linear-gradient(var(--gray-gradient)) no-repeat;
color: rgb(var(--gray));
text-align: center;
}
.social-links {
display: flex;
justify-content: center;
gap: 1em;
margin-top: 1em;
}
.social-links a {
text-decoration: none;
color: rgb(var(--gray));
}
.social-links a:hover {
color: rgb(var(--gray-dark));
}
</style>
2 changes: 1 addition & 1 deletion src/components/FormattedDate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const { date } = Astro.props;
<time datetime={date.toISOString()}>
{
date.toLocaleDateString("en-us", {
year: "numeric",
month: "short",
day: "numeric",
year: "numeric",
})
}
</time>
File renamed without changes.
93 changes: 20 additions & 73 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,80 +1,27 @@
---
import { SITE_TITLE } from "../consts";
import HeaderLink from "./HeaderLink.astro";
import Container from "./Container.astro";
import Link from "./Link.astro";
import HeaderClock from "./widget/HeaderClock";
---

<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-THN5VFZZ"
height="0"
width="0"
style="display:none;visibility:hidden"></iframe></noscript
>
<!-- End Google Tag Manager (noscript) -->
<header>
<nav>
<h2><a href="/">{SITE_TITLE}</a></h2>
<div class="header-utils">
<div class="internal-links">
<HeaderLink href="/">Home</HeaderLink>
<HeaderLink href="/blog">Blog</HeaderLink>
<HeaderLink href="/about">About</HeaderLink>
</div>
<HeaderClock client:load />
<Container>
<div class="flex flex-wrap gap-y-2 justify-between">
<Link href="/" underline={false}>
<div class="font-semibold">장용석 블로그</div>
</Link>
<nav class="flex gap-1">
<Link href="/blog"> blog </Link>
<!-- <span>
{`/`}
</span> -->
<!-- <Link href="/work"> work </Link> -->
<span>
{`/`}
</span>
<Link href="/about"> about </Link>
<HeaderClock client:load />
</nav>
</div>
</nav>
</Container>
</header>
<style>
header {
margin: 0;
padding: 0 1em;
font-family: "Oswald";
background-color: rgba(243, 244, 246, 0.8);
border-bottom: 1px solid black;
position: sticky;
backdrop-filter: blur(12px);
top: 0;
z-index: 100;
}
h2 {
margin: 0;
font-size: 1em;
}

h2 a,
h2 a.active {
text-decoration: none;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
}
nav a {
padding: 1em 0.5em;
color: var(--black);
border-bottom: 4px solid transparent;
text-decoration: none;
}
nav a.active {
text-decoration: none;
border-bottom-color: var(--accent);
}
.social-links,
.social-links a {
display: flex;
}

.header-utils {
display: flex;
align-items: center;
}

@media (max-width: 720px) {
.social-links {
display: none;
}
}
</style>
25 changes: 0 additions & 25 deletions src/components/HeaderLink.astro

This file was deleted.

File renamed without changes.
91 changes: 0 additions & 91 deletions src/components/Nano/Footer.astro

This file was deleted.

Loading

0 comments on commit 7767631

Please sign in to comment.