From a1bdd3efdea2f66080ca9592514927f28156c764 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 28 Dec 2024 10:29:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=83=88=E3=83=83=E3=83=97Hero=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E3=81=ABStar=E3=82=92=E9=A3=9B=E3=81=B0=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/components/FutureStar.vue | 70 ++++++++++++++++++++++ .vitepress/theme/index.mjs | 2 + index.md | 4 ++ 3 files changed, 76 insertions(+) create mode 100644 .vitepress/theme/components/FutureStar.vue diff --git a/.vitepress/theme/components/FutureStar.vue b/.vitepress/theme/components/FutureStar.vue new file mode 100644 index 00000000..5c370a2e --- /dev/null +++ b/.vitepress/theme/components/FutureStar.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/.vitepress/theme/index.mjs b/.vitepress/theme/index.mjs index 7026f89c..bfeef05c 100644 --- a/.vitepress/theme/index.mjs +++ b/.vitepress/theme/index.mjs @@ -2,6 +2,7 @@ import DefaultTheme from "vitepress/theme"; import "./style.css"; import PageInfo from "./components/PageInfo.vue"; import PageTitle from "./components/PageTitle.vue"; +import FutureStar from "./components/FutureStar.vue"; /** * @typedef {import('vitepress').EnhanceAppContext} EnhanceAppContext @@ -17,5 +18,6 @@ export default { ctx.app.component("PageInfo", PageInfo); ctx.app.component("PageTitle", PageTitle); + ctx.app.component("FutureStar", FutureStar); }, }; diff --git a/index.md b/index.md index 218cfbc7..4e38ee04 100644 --- a/index.md +++ b/index.md @@ -34,6 +34,7 @@ features: details: エンタープライズ領域では、社員・パートナーの方々を合わせて、数百人が同時に開発することも珍しくありません。 ちょっとした悩み、失敗も、人数が集まれば大変なコスト・リスクになります。 誰もが引っかかる落とし穴、悩みの種をあらかじめ排除します。 - title: Performance details: 時に読みやすいソースコードはパフォーマンス劣化を招くことがあります。 しかし、常にパフォーマンスを優先したソースコードは人間の読めないソースコードになりがちです。 今、書こうとしているソースコードが、どの程度のパフォーマンスになるのか、指標を示すことで、ソフトウェア開発プロジェクトごとに最適なソースコードを選択することができます。 +pageClass: standards-home --- [![GitHub last commit](https://img.shields.io/github/last-commit/future-architect/coding-standards.svg)](https://github.com/future-architect/coding-standards) @@ -42,3 +43,6 @@ features: ## License [![CC-By-4.0](https://licensebuttons.net/l/by/4.0/88x31.png)](https://creativecommons.org/licenses/by/4.0/deed.ja) + + + From fec720f76191ae4590cdce3e54ab9e613af53bed Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 28 Dec 2024 10:57:59 +0900 Subject: [PATCH 2/2] fix --- .vitepress/theme/components/FutureStar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/.vitepress/theme/components/FutureStar.vue b/.vitepress/theme/components/FutureStar.vue index 5c370a2e..cb2b468d 100644 --- a/.vitepress/theme/components/FutureStar.vue +++ b/.vitepress/theme/components/FutureStar.vue @@ -21,6 +21,7 @@ const starPath = `path("M 0 ${starSize / 2} l ${starSize * lengthRate} -${starSi .future-star__container { position: fixed; width: calc(100vw + v-bind(starWidth * 2 + "px")); + min-width: calc(800px + v-bind(starWidth * 2 + "px")); bottom: calc(100vh - 160px); /* fallback */ z-index: -1; /* fallback の場合にコンテンツの後ろに配置したいので-1 */ position-anchor: --future-title;