Skip to content

Commit

Permalink
feat: layout skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
EATSTEAK committed Nov 26, 2023
1 parent e4f7afb commit c3d00cc
Show file tree
Hide file tree
Showing 26 changed files with 262 additions and 639 deletions.
Binary file removed public/fonts/atkinson-bold.woff
Binary file not shown.
Binary file removed public/fonts/atkinson-regular.woff
Binary file not shown.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
<meta name="generator" content={Astro.generator} />

<!-- Font preloads -->
<link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin />
<link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap" rel="stylesheet">

<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />
Expand Down
62 changes: 0 additions & 62 deletions src/components/Footer.astro

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/FormattedDate.astro

This file was deleted.

85 changes: 0 additions & 85 deletions src/components/Header.astro

This file was deleted.

32 changes: 32 additions & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import "./header.css";

export const Header = (props) => {
const selected = (page) =>
props.page == page ? "nav-link link-selected" : "nav-link";
return (
<header class="flex justify-center content-center px-6 py-6">
<div class="grow max-w-[96rem] flex gap-16 justify-start content-center">
<h2 class="shrink-0 min-w-fit">
<a href="/">
<img src="/logo.png" class="w-[170px]"></img>
</a>
</h2>
<nav class="grow flex justify-start items-center gap-8">
<a class={selected("about")} href="/about">
About
</a>
<a class={selected("posts")} href="/posts">
Posts
</a>
<a class={selected("categories")} href="/categories">
Categories
</a>
</nav>
<aside class="shrink-0 flex justify-end items-center gap-2">
<input type="checkbox"></input>
<span class="align-center">LIGHT</span>
</aside>
</div>
</header>
);
};
24 changes: 0 additions & 24 deletions src/components/HeaderLink.astro

This file was deleted.

3 changes: 3 additions & 0 deletions src/components/Intro.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Intro = () => {
return <main class="flex flex-col items-center justify-start">Test</main>;
};
3 changes: 3 additions & 0 deletions src/components/Profile.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Profile = () => {
return (<section>EATSTEAK</section>)
}
19 changes: 19 additions & 0 deletions src/components/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.nav-link {
box-sizing: border-box;
text-transform: uppercase;
letter-spacing: 0.1rem;
padding-left: 0.1rem;
background-image: radial-gradient(black, black);
background-size: 0% 2px;
background-repeat: no-repeat;
background-position-y: 100%;
transition: background-size 0.25s ease-out;
}

.nav-link:hover {
background-size: 100% 2px;
}

.link-selected {
font-weight: 500;
}
4 changes: 2 additions & 2 deletions src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Place any global data in this file.
// You can import this data from anywhere in your site by using the `import` keyword.

export const SITE_TITLE = 'Astro Blog';
export const SITE_DESCRIPTION = 'Welcome to my website!';
export const SITE_TITLE = "EATSTEAK.DEV";
export const SITE_DESCRIPTION = "Dev blog of EATSTEAK";
9 changes: 5 additions & 4 deletions src/content/blog/markdown-style-guide.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 'Markdown Style Guide'
description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
pubDate: 'Jul 01 2022'
heroImage: '/blog-placeholder-1.jpg'
title: "Markdown Style Guide"
category: "Test"
description: "Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro."
pubDate: "Jul 01 2022"
heroImage: "/blog-placeholder-1.jpg"
---

Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.
Expand Down
20 changes: 20 additions & 0 deletions src/content/blog/multiplatform-rust.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: 멀티 플랫폼 라이브러리 만들기
description: Rust로 멀티 플랫폼은 어떻게 만들 수 있을까요? uniffi, napi-rs 등등의 멀티플랫폼 솔루션을 알아봅시다.
category: Rust
pubDate: Nov 26 2023
---

## 멀티 플랫폼 라이브러리 - 왜 자꾸 실패하는가?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.

Morbi tristique senectus et netus. Id semper risus in hendrerit gravida rutrum quisque non tellus. Habitasse platea dictumst quisque sagittis purus sit amet. Tellus molestie nunc non blandit massa. Cursus vitae congue mauris rhoncus. Accumsan tortor posuere ac ut. Fringilla urna porttitor rhoncus dolor. Elit ullamcorper dignissim cras tincidunt lobortis. In cursus turpis massa tincidunt dui ut ornare lectus. Integer feugiat scelerisque varius morbi enim nunc. Bibendum neque egestas congue quisque egestas diam. Cras ornare arcu dui vivamus arcu felis bibendum. Dignissim suspendisse in est ante in nibh mauris. Sed tempus urna et pharetra pharetra massa massa ultricies mi.

## Rust로 실현하는 멀티 플랫폼

Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam sit amet nisl suscipit. Lacus viverra vitae congue eu consequat ac felis donec. Egestas integer eget aliquet nibh praesent tristique magna sit amet. Eget magna fermentum iaculis eu non diam. In vitae turpis massa sed elementum. Tristique et egestas quis ipsum suspendisse ultrices. Eget lorem dolor sed viverra ipsum. Vel turpis nunc eget lorem dolor sed viverra. Posuere ac ut consequat semper viverra nam. Laoreet suspendisse interdum consectetur libero id faucibus. Diam phasellus vestibulum lorem sed risus ultricies tristique. Rhoncus dolor purus non enim praesent elementum facilisis. Ultrices tincidunt arcu non sodales neque. Tempus egestas sed sed risus pretium quam vulputate. Viverra suspendisse potenti nullam ac tortor vitae purus faucibus ornare. Fringilla urna porttitor rhoncus dolor purus non. Amet dictum sit amet justo donec enim.

Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id cursus metus aliquam eleifend mi.

Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
21 changes: 11 additions & 10 deletions src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { defineCollection, z } from 'astro:content';
import { defineCollection, z } from "astro:content";

const blog = defineCollection({
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
description: z.string(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
}),
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
description: z.string(),
category: z.string().optional(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
}),
});

export const collections = { blog };
Loading

0 comments on commit c3d00cc

Please sign in to comment.