Welcome to my page!
I'm Takashi Kiyota, DesignEngineer from Ibaraki, Japan.
kiiiyo / compose-starter-for-media Goto Github PK
View Code? Open in Web Editor NEWHome Page: starter-template-for-media.vercel.app
Home Page: starter-template-for-media.vercel.app
キーワード検索で投稿一覧を取得の実装
タグ一覧を取得する
投稿一覧を表示するページの実装をする
なんらかのエラー時にエラーページを表示する
記事データをAPIから取得して画面に表示する
https://github.com/kiiiyo/compose-starter-for-media/wiki/Getting-started
利用するHeadlessCMSの調査をする
個別投稿ページを実装する
記事一覧にページネーションを実装する
Next.js 環境でアイコンをレンダリングで切るように設定する
yarn add @fortawesome/fontawesome-svg-core
yarn add @fortawesome/free-brands-svg-icons
yarn add @fortawesome/free-solid-svg-icons
yarn add @fortawesome/react-fontawesome
import * as React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { fab } from '@fortawesome/free-brands-svg-icons'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { findIconDefinition, library } from '@fortawesome/fontawesome-svg-core'
//import { IconName, IconSize } from '../../../../@types/fortawesome'
library.add(fab, fas)
export type IconSize =
| 'xs'
| 'lg'
| 'sm'
| '1x'
| '2x'
| '3x'
| '4x'
| '5x'
| '6x'
| '7x'
| '8x'
| '9x'
| '10x'
export type IconName =
| 'arrow-right'
| 'arrow-left'
| 'github'
| 'twitter'
| 'facebook-square'
type IconProps = {
size?: IconSize
prefix: 'fas' | 'fab'
name: IconName
}
export const IconPresenter = (props: IconProps) => {
const { name, prefix, size } = props
return (
<FontAwesomeIcon
icon={findIconDefinition({ prefix, iconName: name })}
size={size || 'sm'}
/>
)
}
export const Icon: React.FC<IconProps> = ({ ...props }) => {
return <IconPresenter {...props} />
}
// pages/_app.tsx
import '@fortawesome/fontawesome-svg-core/styles.css'
グローバルスタイルの設定
カテゴリー一覧を表示する
投稿データ表示用のコンポーネント実装
Tailwind CSS の設定
-D tailwindcss@latest postcss@latest autoprefixer@latest
のパッケージをインストールタグ一覧用コンポーネントの実装
グローバルナビゲーションの構築
Lint関連の設定を行う
yarn add -D eslint prettier
でベースのpackageをインストールyarn add -D eslint-config-prettier
.eslintrc.json
に 設定を記載.prettierrc.json
に 設定を記載Next.js のセットアップを行う
https://starter-template-for-media.vercel.app/
yarn dev
が実行できることを確認Reference形式の投稿データの取得を実装する
Storybookの実行環境を構築する
Next.js 側で取得APIを実装する
page/api/posts
の実装page/api/posts/[slug]
の実装Vercelのsetup内容をwiki記載する
ベースレイアウトの構築する
レイアウトサンプル
https://tailwindcomponents.com/component/blog-page/landing#
指定カテゴリーの記事一覧を表示する
RSS のフィードを配信することができる
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.