Skip to content

Commit

Permalink
Merge pull request #2 from dig-dao/i18n
Browse files Browse the repository at this point in the history
ad English pages
  • Loading branch information
halsk authored Dec 17, 2023
2 parents a1c1aba + 67d6d2a commit 5c53739
Show file tree
Hide file tree
Showing 19 changed files with 289 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: "The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed. see https://www.digdao.jp/ "
args: "The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed. \n {{EVENT_PAYLOAD.pull_request.title}} \n see https://www.digdao.jp/ "
34 changes: 34 additions & 0 deletions src/content/about/-index-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "About Dig DAO"
meta_title: "About"
description: "Dig DAO is a community for research and development of web3, which was born out of the Digital Agency's Web3.0 Study Group."
image: "/images/diggy.png"
draft: false
---

Dig DAO is a community for research and development of web3, which was born out of the Digital Agency's Web3.0 Study Group.

## Purpose

The purpose of this project is to discuss, research, practice, and disclose the ecosystem of Web 3.0 and the environment that should be maintained in order to be used for the healthy development of society.

## Activities

Discord is our primary activity and we also have Github. https://github.com/Dig-DAO
We have a regular meeting once a week on Fridays from 11:00-12:00.
Members can start or join projects. Right now, the following projects are active.

### DID/VC SBT Project

- Implementation of Verifiable Credential model for country-independent interoperability
- Provide OSS that can be referenced by national governments, etc.

### DAO Research Project

- Research and reports on domestic and international DAOs

### Supporting digital public goods

- Create digital public goods: Support the creation of new public goods to enrich the digital society.
- Increase the number of contributors: Create an environment in which contributors to digital public goods receive appropriate rewards and recognition.
- Create an appropriate method of allocating digital public good investments: Create a system in which those who support digital public goods participate in decision-making on investment allocation, so that public goods that provide higher value to society receive a larger share of the investment.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: "Dig DAO について"
meta_title: "About"
description: "Dig DAO について"
image: "/images/diggy.png"
lang: ja-JP
draft: false
---

Expand All @@ -28,7 +27,7 @@ Dig DAO は、デジタル庁のWeb3.0 研究会 をきっかけに生まれたD

- 国内外の DAO についての調査研究とレポート

## デジタル公共資本基金
### デジタル公共材のサポート環境づくり

- デジタル公共財の創出: デジタル社会を豊かにするため、新しい公共財を生み出す支援を行う。
- 貢献者を増やす: デジタル公共財への貢献者が、適切な報酬や評価を受けられるような環境を作る。
Expand Down
10 changes: 0 additions & 10 deletions src/content/about/en/-index.md

This file was deleted.

1 change: 1 addition & 0 deletions src/content/projects/dao-research.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "DAO Research プロジェクト"
meta_title: ""
lang: "ja"
description: "いろんな DAO を調査してみよう"
date: 2022-04-04T05:00:00Z
image: ""
Expand Down
1 change: 1 addition & 0 deletions src/content/projects/did-vc-sbt.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "DID/VC SBT プロジェクト"
meta_title: ""
lang: "ja"
description: "DID や VC などの相互運用性を向上する"
date: 2022-04-04T05:00:00Z
image: ""
Expand Down
24 changes: 24 additions & 0 deletions src/content/projects/en/dao-research.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "DAO Research Project"
meta_title: ""
lang: "en"
description: "Research various DAO communities"
date: 2022-04-04T05:00:00Z
image: ""
author: "Hal Seki"
draft: false
---

## Purpose

- Conduct and present research on DAOs in Japan and abroad
- Publish our own trials and errors in setting up our own DAOs

### How we start (Japanese Article)
[Dig DAO (a.k.a. デジタル庁スピンオフweb3研究会DAO) とそのビジョン:私たちの旅と目指す未来](https://note.com/mariroom/n/nd123a8a18611?magazine_key=mf0d1255ff300)

## Activities

- Visit Yamakoshi DAO (Japanese Article)
 [![山古志村の訪問](/images/yamakoshi.png)](https://note.com/matsub/n/nc1b21974690b)
[「天空の里」旧山古志村NishikigoiNFTを訪ねて~DigDAO現地レポート~](https://note.com/matsub/n/nc1b21974690b)
34 changes: 34 additions & 0 deletions src/content/projects/en/did-vc-sbt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "DID/VC SBT Project"
meta_title: ""
lang: "en"
description: "Improve interoperability of DIDs, VCs, etc."
date: 2022-04-04T05:00:00Z
image: ""
author: "Hal Seki"
draft: false
---

## Purpose

- 国に依存しない相互運用性を可能にしたVerfiable Credentialのモデル実装
- 各国政府等が参照可能なOSSの提供

## Roadmap

- 秘密分散ウォレット: 完了
- 本DAOメンバーに対してVerifiable Credentialの配布: 検討中
- 具体的な外部プロジェクトへの適応

## Sub Project

### 秘密分散Discordウォレット開発

今後Dig DAOとしてリリースするスマートコントラクトのオーナーウォレットや将来的にはトレジャリー管理のための、「DAOで」所有するウォレットとして、Gnosis Safeなどのマルチシグウォレットを使用するのではなく、セルフカストディな形で秘密鍵を保持しつつ、その管理を分散化させて、DAOとしてよく使用するツールの中で使える仕組みを作る。

### Open Credential Verifier: Verifiable Credentials の相互運用性を高める

![Open Credential Verifier 概要](/images/open-verifier-image.jpg)

- Issuerが発行する証明書の相互運用性の確立のための検証ページの公開
- [https://verifier.digdao.jp/](https://verifier.digdao.jp/)
17 changes: 9 additions & 8 deletions src/layouts/components/ProjectCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ const {
project_folder,
}: { summary_length: number; project_folder: string } = config.settings;
const { data } = Astro.props;
const { title, image,description } = data.data;
const { title, image, description } = data.data;
let lang = "";
if (data.slug.split("/").length > 1) {
lang = "/" + data.slug.split("/")[0];
data.slug = data.slug.split("/")[1];
}
const path = `${lang}/${project_folder}/${data.slug}`;
---

<div class="bg-body dark:bg-darkmode-body">
Expand All @@ -26,15 +32,10 @@ const { title, image,description } = data.data;
)
}
<h4 class="mb-3">
<a href={`/${project_folder}/${data.slug}`}>
<a href={path}>
{title}
</a>
</h4>
<p class="mb-6">{plainify(description)}</p>
<a
class="btn btn-outline-primary btn-sm"
href={`/${project_folder}/${data.slug}`}
>
read more
</a>
<a class="btn btn-outline-primary btn-sm" href={path}> read more</a>
</div>
46 changes: 46 additions & 0 deletions src/layouts/components/pages/AboutPage.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
import { astroI18n } from "astro-i18n";
import Base from "@/layouts/Base.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { Image } from "astro:assets";
import { getEntry } from "astro:content";
let about = await getEntry("about", `-index-${astroI18n.locale}`);
if (!about) {
about = await getEntry("about", "-index-ja");
}
const { Content } = await about.render();
const { title, description, meta_title, image } = about.data;
---

<Base
title={title}
meta_title={meta_title}
description={description}
image={image}
>
<section class="section-sm">
<div class="container">
<div class="row justify-center">
<div class="text-center md:col-10 lg:col-7">
{
image && (
<Image
class="mx-auto mb-6 rounded-lg"
src={image}
width={200}
height={200}
alt={title}
format="webp"
/>
)
}
<h1 set:html={markdownify(title)} class="h1 mb-6" />
<div class="content text-left">
<Content />
</div>
</div>
</div>
</div>
</section>
</Base>
2 changes: 1 addition & 1 deletion src/layouts/components/pages/HomePage.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { astroI18n, t } from "astro-i18n";
import { astroI18n } from "astro-i18n";
import { markdownify } from "@/lib/utils/textConverter";
import CallToAction from "@/partials/CallToAction.astro";
Expand Down
38 changes: 38 additions & 0 deletions src/layouts/components/pages/ProjectPage.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
import { astroI18n } from "astro-i18n";
import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { getSinglePage } from "@/lib/contentParser.astro";
import ProjectCard from "@/components/ProjectCard.astro";
const PROJECT_FOLDER = "projects";
const projects = await getSinglePage(PROJECT_FOLDER);
console.log(projects);
---

<Base title={"Projects"}>
<PageHeader title={"Projects"} />
<section class="section">
<div class="container">
<div class="row gx-5">
<!-- projects -->
<div class="lg:col-8">
<div class="row">
{
projects
.filter((project) => {
return project.data.lang === astroI18n.locale;
})
.map((post) => (
<div class="mb-14 md:col-6">
<ProjectCard data={post} />
</div>
))
}
</div>
</div>
</div>
</div>
</section>
</Base>
41 changes: 2 additions & 39 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
@@ -1,42 +1,5 @@
---
import Base from "@/layouts/Base.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { Image } from "astro:assets";
import { getEntry } from "astro:content";
const about = await getEntry("about", "-index");
const { Content } = await about.render();
const { title, description, meta_title, image } = about.data;
import AboutPage from "@/components/pages/AboutPage.astro";
---

<Base
title={title}
meta_title={meta_title}
description={description}
image={image}
>
<section class="section-sm">
<div class="container">
<div class="row justify-center">
<div class="text-center md:col-10 lg:col-7">
{
image && (
<Image
class="mx-auto mb-6 rounded-lg"
src={image}
width={200}
height={200}
alt={title}
format="webp"
/>
)
}
<h1 set:html={markdownify(title)} class="h1 mb-6" />
<div class="content text-left">
<Content />
</div>
</div>
</div>
</div>
</section>
</Base>
<AboutPage />
5 changes: 5 additions & 0 deletions src/pages/en/about.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
import AboutPage from "@/components/pages/AboutPage.astro";
---

<AboutPage />
42 changes: 42 additions & 0 deletions src/pages/en/events/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { getSinglePage } from "@/lib/contentParser.astro";
import EventCard from "@/components/EventCard.astro";
import { sortByDate } from "@/lib/utils/sortFunctions";
const EVENT_FOLDER = "events";
const events = await getSinglePage(EVENT_FOLDER);
const sortedEvents = sortByDate(events);
---

<Base title={"Events"}>
<PageHeader title={"Events"} />
<section class="section">
<div class="container">
<h2 class="title is-2 mb-2">Upcoming Events</h2>
<!-- blog posts -->
{
sortedEvents
.filter((event) => {
const eventDate = event.data.date;
const currentDate = new Date();
return eventDate > currentDate;
})
.map((event) => <EventCard data={event} />)
}
<h2 class="title is-2 mt-4 mb-2">Past Events</h2>
<!-- blog posts -->
{
sortedEvents
.filter((event) => {
const eventDate = event.data.date;
const currentDate = new Date();
return eventDate < currentDate;
})
.map((event) => <EventCard data={event} btnText="閲覧する" />)
}
</div>
</section>
</Base>
33 changes: 33 additions & 0 deletions src/pages/en/projects/[single].astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
import Base from "@/layouts/Base.astro";
import ProjectSingle from "@/layouts/ProjectSingle.astro";
import { getSinglePage } from "@/lib/contentParser.astro";
export async function getStaticPaths() {
const PROJECT_FOLDER = "projects";
const posts = await getSinglePage(PROJECT_FOLDER);
const paths = posts
.filter((post) => {
return post.data.lang === "en";
})
.map((post) => ({
params: {
single: post.slug.split("/")[1],
},
props: { post },
}));
return paths;
}
const { post } = Astro.props;
const { title, meta_title, description, image } = post.data;
---

<Base
title={title}
meta_title={meta_title}
description={description}
image={image}
>
<ProjectSingle post={post} />
</Base>
Loading

0 comments on commit 5c53739

Please sign in to comment.