-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from cuculus-dev/feature/home
トップページのサンプル実装
- Loading branch information
Showing
9 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
META_ROBOTS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import Caption from './Caption'; | ||
|
||
const meta = { | ||
title: 'app/index/Caption', | ||
component: Caption, | ||
} satisfies Meta<typeof Caption>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
'use client'; | ||
|
||
import { styled } from '@mui/material/styles'; | ||
|
||
const Caption = () => { | ||
return ( | ||
<div> | ||
<div style={{ padding: '16px' }}> | ||
<Title> | ||
<span>Cuculus</span> | ||
<span> </span> | ||
<span>Roadmap</span> | ||
</Title> | ||
<Description> | ||
<span>CuculusはTwitterに替わる場所として</span> | ||
<span>開発される新しいSNSです。</span> | ||
<span>事前に計画を公開することでプロジェクトの方向性を共有し、</span> | ||
<span>フィードバックや意見を収集したいと考えています。</span> | ||
</Description> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const Title = styled('h1')` | ||
display: flex; | ||
justify-content: center; | ||
text-align: center; | ||
flex-wrap: wrap; | ||
margin-top: 16px; | ||
margin-bottom: 16px; | ||
font-family: | ||
'General Sans', | ||
-apple-system, | ||
BlinkMacSystemFont, | ||
'Segoe UI', | ||
Roboto, | ||
'Helvetica Neue', | ||
Arial, | ||
sans-serif, | ||
'Apple Color Emoji', | ||
'Segoe UI Emoji', | ||
'Segoe UI Symbol'; | ||
font-size: 112px; | ||
${({ theme }) => theme.breakpoints.down('laptop')} { | ||
font-size: 80px; | ||
} | ||
${({ theme }) => theme.breakpoints.down('tablet')} { | ||
font-size: 72px; | ||
} | ||
font-weight: 600; | ||
color: #00ced1; | ||
`; | ||
|
||
const Description = styled('div')` | ||
font-weight: 400; | ||
text-align: center; | ||
margin: 0 auto; | ||
padding-right: 16px; | ||
padding-left: 16px; | ||
color: #334155; | ||
max-width: 780px; | ||
font-size: 24px; | ||
${({ theme }) => theme.breakpoints.down('laptop')} { | ||
max-width: 530px; | ||
} | ||
${({ theme }) => theme.breakpoints.down('tablet')} { | ||
max-width: 480px; | ||
} | ||
`; | ||
|
||
export default Caption; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import Caption from '@/app/_components/Caption'; | ||
|
||
export default function Home() { | ||
return <main>Home</main>; | ||
return ( | ||
<main> | ||
<Caption /> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare namespace NodeJS { | ||
interface ProcessEnv { | ||
readonly META_ROBOTS?: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters