asdf
This commit is contained in:
@@ -19,8 +19,8 @@ import { SITE } from "@consts";
|
|||||||
<span>
|
<span>
|
||||||
{`/`}
|
{`/`}
|
||||||
</span>
|
</span>
|
||||||
<Link href="/work">
|
<Link href="/career">
|
||||||
work
|
career
|
||||||
</Link>
|
</Link>
|
||||||
<span>
|
<span>
|
||||||
{`/`}
|
{`/`}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const SITE: Site = {
|
|||||||
NAME: "Damhwee Ahn",
|
NAME: "Damhwee Ahn",
|
||||||
EMAIL: "me@damhw.ee",
|
EMAIL: "me@damhw.ee",
|
||||||
NUM_POSTS_ON_HOMEPAGE: 5,
|
NUM_POSTS_ON_HOMEPAGE: 5,
|
||||||
NUM_WORKS_ON_HOMEPAGE: 0,
|
NUM_WORKS_ON_HOMEPAGE: 3,
|
||||||
NUM_PROJECTS_ON_HOMEPAGE: 3,
|
NUM_PROJECTS_ON_HOMEPAGE: 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "whitehatcontest 2025 pre writeup(forensics/ai)"
|
title: "whitehatcontest 2025 pre writeup(forensics/ai)"
|
||||||
description: "writing"
|
description: "writing"
|
||||||
date: "2025/10/23"
|
date: "Oct 23 2025 "
|
||||||
---
|
---
|
||||||
|
|
||||||
시간나면작성
|
시간나면작성
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const blog = defineCollection({
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const work = defineCollection({
|
const career = defineCollection({
|
||||||
type: "content",
|
type: "content",
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
company: z.string(),
|
company: z.string(),
|
||||||
@@ -32,4 +32,4 @@ const projects = defineCollection({
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const collections = { blog, work, projects };
|
export const collections = { blog, career, projects };
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import Container from "@components/Container.astro";
|
|||||||
import { dateRange } from "@lib/utils";
|
import { dateRange } from "@lib/utils";
|
||||||
import { WORK } from "@consts";
|
import { WORK } from "@consts";
|
||||||
|
|
||||||
const collection = (await getCollection("work"))
|
const collection = (await getCollection("career"))
|
||||||
.sort((a, b) => new Date(b.data.dateStart).valueOf() - new Date(a.data.dateStart).valueOf());
|
.sort((a, b) => new Date(b.data.dateStart).valueOf() - new Date(a.data.dateStart).valueOf());
|
||||||
|
|
||||||
const work = await Promise.all(
|
const career = await Promise.all(
|
||||||
collection.map(async (item) => {
|
collection.map(async (item) => {
|
||||||
const { Content } = await item.render();
|
const { Content } = await item.render();
|
||||||
return { ...item, Content };
|
return { ...item, Content };
|
||||||
@@ -20,11 +20,11 @@ const work = await Promise.all(
|
|||||||
<Container>
|
<Container>
|
||||||
<div class="space-y-10">
|
<div class="space-y-10">
|
||||||
<div class="animate font-semibold text-black dark:text-white">
|
<div class="animate font-semibold text-black dark:text-white">
|
||||||
Work
|
Career
|
||||||
</div>
|
</div>
|
||||||
<ul class="flex flex-col space-y-4">
|
<ul class="flex flex-col space-y-4">
|
||||||
{
|
{
|
||||||
work.map(entry => (
|
career.map(entry => (
|
||||||
<li class="animate">
|
<li class="animate">
|
||||||
<div class="text-sm opacity-75">
|
<div class="text-sm opacity-75">
|
||||||
{dateRange(entry.data.dateStart, entry.data.dateEnd)}
|
{dateRange(entry.data.dateStart, entry.data.dateEnd)}
|
||||||
@@ -17,12 +17,12 @@ const projects = (await getCollection("projects"))
|
|||||||
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
|
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
|
||||||
.slice(0,SITE.NUM_PROJECTS_ON_HOMEPAGE);
|
.slice(0,SITE.NUM_PROJECTS_ON_HOMEPAGE);
|
||||||
|
|
||||||
const allwork = (await getCollection("work"))
|
const allCareerEntries = (await getCollection("career"))
|
||||||
.sort((a, b) => new Date(b.data.dateStart).valueOf() - new Date(a.data.dateStart).valueOf())
|
.sort((a, b) => new Date(b.data.dateStart).valueOf() - new Date(a.data.dateStart).valueOf())
|
||||||
.slice(0,SITE.NUM_WORKS_ON_HOMEPAGE);
|
.slice(0,SITE.NUM_WORKS_ON_HOMEPAGE);
|
||||||
|
|
||||||
const work = await Promise.all(
|
const career = await Promise.all(
|
||||||
allwork.map(async (item) => {
|
allCareerEntries.map(async (item) => {
|
||||||
const { Content } = await item.render();
|
const { Content } = await item.render();
|
||||||
return { ...item, Content };
|
return { ...item, Content };
|
||||||
})
|
})
|
||||||
@@ -39,7 +39,7 @@ const work = await Promise.all(
|
|||||||
<section>
|
<section>
|
||||||
<article class="space-y-4">
|
<article class="space-y-4">
|
||||||
<p class="animate">
|
<p class="animate">
|
||||||
안녕하세요 저는 서울특별시 소재 양정고등학교에 재학중인 안담휘 입니다. 프로그래밍과 정보보안에 관심이 있는 초보입니다.
|
Bye!
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
@@ -67,12 +67,12 @@ const work = await Promise.all(
|
|||||||
<h5 class="font-semibold text-black dark:text-white">
|
<h5 class="font-semibold text-black dark:text-white">
|
||||||
Career
|
Career
|
||||||
</h5>
|
</h5>
|
||||||
<Link href="/work">
|
<Link href="/career">
|
||||||
See my career
|
See my career
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<ul class="flex flex-col space-y-4">
|
<ul class="flex flex-col space-y-4">
|
||||||
{work.map(entry => (
|
{career.map(entry => (
|
||||||
<li>
|
<li>
|
||||||
<div class="text-sm opacity-75">
|
<div class="text-sm opacity-75">
|
||||||
{dateRange(entry.data.dateStart, entry.data.dateEnd)}
|
{dateRange(entry.data.dateStart, entry.data.dateEnd)}
|
||||||
@@ -111,12 +111,12 @@ const work = await Promise.all(
|
|||||||
|
|
||||||
<section class="animate space-y-4">
|
<section class="animate space-y-4">
|
||||||
<h5 class="font-semibold text-black dark:text-white">
|
<h5 class="font-semibold text-black dark:text-white">
|
||||||
Let's Connect
|
Contact Me
|
||||||
</h5>
|
</h5>
|
||||||
<article>
|
<article>
|
||||||
<p>
|
<p>
|
||||||
If you want to get in touch with me about something or just to say hi,
|
If you want to get in touch with me about something or just to say hi,
|
||||||
reach out on social media or send me an email.
|
reach out on social media or send me a spam email.
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
<ul class="flex flex-wrap gap-2">
|
<ul class="flex flex-wrap gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user