|
| 1 | +--- |
| 2 | +import BaseLayout from "@/layouts/BaseLayout.astro"; |
| 3 | +import { SUPPORTED_LANGUAGES, useTranslations } from "@/scripts/i18n"; |
| 4 | +import { sectionMap } from "@/scripts/section"; |
| 5 | +
|
| 6 | +export async function getStaticPaths() { |
| 7 | + return SUPPORTED_LANGUAGES.map((lang) => ({ params: { lang } })); |
| 8 | +} |
| 9 | +
|
| 10 | +const { lang } = Astro.params; |
| 11 | +const t = useTranslations(lang); |
| 12 | +--- |
| 13 | + |
| 14 | +<BaseLayout |
| 15 | + lang={lang} |
| 16 | + title={sectionMap.about.title} |
| 17 | + keywords={sectionMap.about.shorten[lang]} |
| 18 | + description={sectionMap.about.description[lang]} |
| 19 | +> |
| 20 | + <main> |
| 21 | + <div class="content"> |
| 22 | + <div class="information"> |
| 23 | + {t("about.quote")}<br /> |
| 24 | + <span class="subspan">{t("about.quote.description")}</span> |
| 25 | + </div> |
| 26 | + |
| 27 | + <div class="section"> |
| 28 | + <h1>{t("about.name")}</h1> |
| 29 | + <h2>{t("about.jobtitle")}</h2> |
| 30 | + <div class="information"> |
| 31 | + <span>{t("about.email")} | {t("about.phone")}</span><br /> |
| 32 | + <span>{t("about.address")}</span> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + |
| 36 | + <div class="section"> |
| 37 | + <div class="information linefeed">{t("about.explain.study")}</div> |
| 38 | + <span class="information">{t("about.explain.study.sub")}</span> |
| 39 | + <div class="information linefeed">{t("about.explain.mountain")}</div> |
| 40 | + <span class="information">{t("about.explain.mountain.sub")}</span> |
| 41 | + <div class="information linefeed">{t("about.explain.humanity")}</div> |
| 42 | + <span class="information">{t("about.explain.humanity.sub")}</span> |
| 43 | + </div> |
| 44 | + |
| 45 | + <div class="section"> |
| 46 | + <h2>Resume:</h2> |
| 47 | + <h3> |
| 48 | + <a href="https://aaronryu.notion.site/resume" target="_blank" rel="noopener noreferrer"> |
| 49 | + Notion Page |
| 50 | + </a> |
| 51 | + </h3> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + </main> |
| 55 | +</BaseLayout> |
| 56 | + |
| 57 | +<style> |
| 58 | + main { |
| 59 | + max-width: 900px; |
| 60 | + text-align: center; |
| 61 | + margin: 1.2em auto 2.6em; |
| 62 | + padding: 0 1.2em; |
| 63 | + |
| 64 | + @media only screen and (max-width: 700px) { |
| 65 | + margin: 0.9em auto 2em; |
| 66 | + padding: 0 0.9em; |
| 67 | + } |
| 68 | + } |
| 69 | + |
| 70 | + p, |
| 71 | + h1, |
| 72 | + h2, |
| 73 | + h3, |
| 74 | + h4 { |
| 75 | + margin: 0; |
| 76 | + } |
| 77 | + |
| 78 | + h1 { |
| 79 | + font-size: 1.6em; |
| 80 | + font-weight: 400; |
| 81 | + margin: 0.5em 0 0; |
| 82 | + line-height: 1.3em; |
| 83 | + @media only screen and (max-width: 700px) { |
| 84 | + line-height: 1.1em; |
| 85 | + } |
| 86 | + } |
| 87 | + |
| 88 | + h2 { |
| 89 | + font-size: 1.15em; |
| 90 | + font-weight: 400; |
| 91 | + } |
| 92 | + |
| 93 | + h3 { |
| 94 | + font-size: 1.1em; |
| 95 | + font-weight: 400; |
| 96 | + line-height: 1.1em; |
| 97 | + } |
| 98 | + |
| 99 | + span { |
| 100 | + font-weight: 100; |
| 101 | + } |
| 102 | + |
| 103 | + .information { |
| 104 | + margin-top: 0.4em; |
| 105 | + line-height: 1.4em; |
| 106 | + |
| 107 | + @media only screen and (max-width: 490px) { |
| 108 | + margin-top: 0.2em; |
| 109 | + white-space: pre-wrap; /* 줄바꿈 문자(\n)를 렌더링하게 함 */ |
| 110 | + } |
| 111 | + } |
| 112 | + |
| 113 | + .section { |
| 114 | + margin-top: 1.6em; |
| 115 | + } |
| 116 | + |
| 117 | + .linefeed { |
| 118 | + margin-top: 0.6em; |
| 119 | + } |
| 120 | + |
| 121 | + .resume-summary { |
| 122 | + text-align: start; |
| 123 | + } |
| 124 | +</style> |
0 commit comments