iT邦幫忙

2023 iThome 鐵人賽

DAY 7
0
SideProject30

想要學 50 音!系列 第 7

[DAY-07] 看一下 a i u e o

  • 分享至 

  • xImage
  •  

終於看到日文拉!!!

import { Grid } from "@mui/material";
import React from "react";

//
// IMPORT ZONE
//

const Day07 = () => {
  const aiueolist = [
    { name: "あ", roots: "a", words: ["あ", "い", "う", "え", "お", ""] },
    { name: "か", roots: "k", words: ["か", "き", "く", "け", "こ", ""] },
    { name: "さ", roots: "s", words: ["さ", "し", "す", "せ", "そ", ""] },
    { name: "た", roots: "t", words: ["た", "ち", "つ", "て", "と", ""] },
    { name: "な", roots: "n", words: ["な", "に", "ぬ", "ね", "の", ""] },
    { name: "は", roots: "h", words: ["は", "ひ", "ふ", "へ", "ほ", ""] },
    { name: "ま", roots: "m", words: ["ま", "み", "む", "め", "も", ""] },
    { name: "や", roots: "y", words: ["や", "", "ゆ", "", "よ", ""] },
    { name: "ら", roots: "r", words: ["ら", "り", "る", "れ", "ろ", ""] },
    { name: "わ", roots: "w", words: ["わ", "", "", "", "を", ""] },
    { name: "ん", roots: "n", words: ["", "", "", "", "", "ん"] },
  ];

  return (
    <Grid
      container
      spacing={{ mobile: 1, tablet: 2, laptop: 3 }}
      style={{ textAlign: "center" }}
    >
      <Grid item xs={12}>
        <h1>Day 07 a i u e o</h1>
      </Grid>
      {aiueolist.map((d) => (
        <Grid container direction="row" justifyContent="center">
          <Grid item xs={1}>
            ({d.roots})
          </Grid>
          <Grid item xs={1}>
            {d.name} 行
          </Grid>
          {d.words.map((w) => (
            <Grid item xs={1}>
              {w}
            </Grid>
          ))}
        </Grid>
      ))}
    </Grid>
  );
};

export default Day07;

Reference


上一篇
[DAY-06] 畫一些東西吧!
下一篇
[DAY-08] 記錄每天的更新!
系列文
想要學 50 音!30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言