From 4d611a554e71a60892f65bae5a0fa8643471c2f0 Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Mon, 18 Sep 2023 14:47:21 +0900 Subject: [PATCH 1/4] design: add color token bg-backdrop --- apps/portfolio/tailwind.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/portfolio/tailwind.config.ts b/apps/portfolio/tailwind.config.ts index 4d449f5..ab8a173 100644 --- a/apps/portfolio/tailwind.config.ts +++ b/apps/portfolio/tailwind.config.ts @@ -48,6 +48,7 @@ const config = { primary: { DEFAULT: COLORS.zinc['900'], }, + backdrop: 'rgb(0 0 0 / 0.4)', }, textColor: { From 107bb4329dd15fcfb1cd861467a56340f8b2b478 Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Tue, 19 Sep 2023 06:44:09 +0900 Subject: [PATCH 2/4] design: re-define tailwind wordBreak utilities --- apps/portfolio/tailwind.config.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/portfolio/tailwind.config.ts b/apps/portfolio/tailwind.config.ts index ab8a173..bd1ee7e 100644 --- a/apps/portfolio/tailwind.config.ts +++ b/apps/portfolio/tailwind.config.ts @@ -14,6 +14,7 @@ const config = { content: ['./src/**/*.astro'], corePlugins: { preflight: false, + wordBreak: false, }, theme: { @@ -106,6 +107,23 @@ const config = { '.scheme-dark': { colorScheme: 'dark', }, + + '.break-normal': { + wordBreak: 'normal', + overflowWrap: 'normal', + }, + '.break-all': { + wordBreak: 'break-all', + }, + '.break-keep': { + wordBreak: 'keep-all', + }, + '.break-overflow-word': { + overflowWrap: 'break-word', + }, + '.break-overflow-anywhere': { + overflowWrap: 'anywhere', + }, }); }), ], From 3e94b648f2746bc637b7715655fc1772ec5b394e Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Tue, 19 Sep 2023 19:39:27 +0900 Subject: [PATCH 3/4] design: add color token text-icon-brand --- apps/portfolio/tailwind.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/portfolio/tailwind.config.ts b/apps/portfolio/tailwind.config.ts index bd1ee7e..8d618c0 100644 --- a/apps/portfolio/tailwind.config.ts +++ b/apps/portfolio/tailwind.config.ts @@ -72,6 +72,9 @@ const config = { primary: { DEFAULT: COLORS.zinc['200'], }, + brand: { + DEFAULT: COLORS.brand, + }, }, }, From 8e122646bca9b31aa4ba84f95a96a23e1c4e94ce Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Tue, 19 Sep 2023 19:39:45 +0900 Subject: [PATCH 4/4] feat: not ready modal --- apps/portfolio/src/components/Header.astro | 12 +- .../src/components/NotReadyDialogButton.astro | 90 +++++++ apps/portfolio/src/components/WorkCard.astro | 10 +- .../src/components/pages/index/About.astro | 12 +- .../src/components/svgs/ProcessBuilding.astro | 238 ++++++++++++++++++ .../src/components/svgs/icons/XIcon.astro | 13 + 6 files changed, 363 insertions(+), 12 deletions(-) create mode 100644 apps/portfolio/src/components/NotReadyDialogButton.astro create mode 100644 apps/portfolio/src/components/svgs/ProcessBuilding.astro create mode 100644 apps/portfolio/src/components/svgs/icons/XIcon.astro diff --git a/apps/portfolio/src/components/Header.astro b/apps/portfolio/src/components/Header.astro index ebd9e19..139eefa 100644 --- a/apps/portfolio/src/components/Header.astro +++ b/apps/portfolio/src/components/Header.astro @@ -3,6 +3,7 @@ import Links from '../core/links.js'; import Button from './Button.astro'; import InternalLink from './InternalLink.astro'; import { listIconPath } from './svgs/icons/icon-path.js'; +import NotReadyDialogButton from './NotReadyDialogButton.astro'; export type { Props as HeaderProps }; @@ -56,12 +57,19 @@ const NAV_ID = 'nav-menu'; > 작업물 - */ + } + 블로그 - + + {/* */} diff --git a/apps/portfolio/src/components/NotReadyDialogButton.astro b/apps/portfolio/src/components/NotReadyDialogButton.astro new file mode 100644 index 0000000..b023a4e --- /dev/null +++ b/apps/portfolio/src/components/NotReadyDialogButton.astro @@ -0,0 +1,90 @@ +--- +import Button from './Button.astro'; +import ProcessBuilding from './svgs/ProcessBuilding.astro'; +import XIcon from './svgs/icons/XIcon.astro'; + +interface Props { + class?: string; +} + +const { class: className } = Astro.props; +--- + + + + + +
+ +
+
+
+
+
+ + diff --git a/apps/portfolio/src/components/WorkCard.astro b/apps/portfolio/src/components/WorkCard.astro index 17b8d7c..0e50497 100644 --- a/apps/portfolio/src/components/WorkCard.astro +++ b/apps/portfolio/src/components/WorkCard.astro @@ -1,8 +1,7 @@ --- import { Image } from 'astro:assets'; import { getEntries } from 'astro:content'; -import Links from '../core/links.js'; -import InternalLink from './InternalLink.astro'; +import NotReadyDialogButton from './NotReadyDialogButton.astro'; import TechIcon from './svgs/icons/TechIcon.astro'; import type { CollectionEntry } from 'astro:content'; @@ -22,7 +21,9 @@ const techs = await getEntries(work.data.techs); ---
- + + {/* TODO: Uncomment */} + {/* */} 썸네일 - + {/* */} +
diff --git a/apps/portfolio/src/components/pages/index/About.astro b/apps/portfolio/src/components/pages/index/About.astro index c63e975..ae82ea9 100644 --- a/apps/portfolio/src/components/pages/index/About.astro +++ b/apps/portfolio/src/components/pages/index/About.astro @@ -1,7 +1,6 @@ --- import EnvelopeSimpleIcon from '../../svgs/icons/EnvelopeSimpleIcon.astro'; import GitHubIcon from '../../svgs/icons/GitHubIcon.astro'; -import PencilSimpleLineIcon from '../../svgs/icons/PencilSimpleLineIcon.astro'; import type { IconProps } from '../../svgs/types.js'; @@ -28,11 +27,12 @@ const contacts: Contact[] = [ name: 'Email', href: 'mailto:han@yeongwoo.dev', }, - { - icon: PencilSimpleLineIcon, - name: 'Blog', - href: 'https://blog.yeongwoo.dev', - }, + // TODO: Uncomment + // { + // icon: PencilSimpleLineIcon, + // name: 'Blog', + // href: 'https://blog.yeongwoo.dev', + // }, ]; --- diff --git a/apps/portfolio/src/components/svgs/ProcessBuilding.astro b/apps/portfolio/src/components/svgs/ProcessBuilding.astro new file mode 100644 index 0000000..4231e48 --- /dev/null +++ b/apps/portfolio/src/components/svgs/ProcessBuilding.astro @@ -0,0 +1,238 @@ +--- +// From: https://www.manypixels.co/gallery + +import type { IconProps } from './types.js'; + +type Props = IconProps; +--- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/portfolio/src/components/svgs/icons/XIcon.astro b/apps/portfolio/src/components/svgs/icons/XIcon.astro new file mode 100644 index 0000000..22746c2 --- /dev/null +++ b/apps/portfolio/src/components/svgs/icons/XIcon.astro @@ -0,0 +1,13 @@ +--- +// From: https://github.com/phosphor-icons/core/blob/c67d7a849f450be1bfe64fd5820471e4019e5ff0/assets/regular/x.svg + +import { xIconPath } from './icon-path.js'; + +import type { IconProps } from '../types.js'; + +type Props = IconProps; +--- + + + +