-
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.
## Issue - Github Issue: #371 ## 変更内容 - 右サイドバーにDiscussionsを追加 - 現状ベタ書き @coderabbitai: ignore
- Loading branch information
Showing
3 changed files
with
121 additions
and
6 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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import PrimaryColumn from '@/app/(menu)/_components/main/PrimaryColumn'; | ||
import { Metadata } from 'next'; | ||
import HomeTimeline from '@/app/(menu)/(private)/home/_components/HomeTimeline'; | ||
import TopicMenu from '@/app/(menu)/_components/menu/TopicMenu'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'ホーム', | ||
}; | ||
|
||
export default function page() { | ||
return ( | ||
<PrimaryColumn columnName={'ホーム'}> | ||
<HomeTimeline /> | ||
</PrimaryColumn> | ||
<> | ||
<PrimaryColumn columnName={'ホーム'}> | ||
<HomeTimeline /> | ||
</PrimaryColumn> | ||
<TopicMenu /> | ||
</> | ||
); | ||
} |
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,15 +1,19 @@ | ||
import PrimaryColumn from '@/app/(menu)/_components/main/PrimaryColumn'; | ||
import { Metadata } from 'next'; | ||
import PublicTimeline from '@/app/(menu)/(public)/public/_components/PublicTimeline'; | ||
import TopicMenu from '@/app/(menu)/_components/menu/TopicMenu'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'グローバルタイムライン', | ||
}; | ||
|
||
export default function page() { | ||
return ( | ||
<PrimaryColumn columnName={'グローバル'}> | ||
<PublicTimeline /> | ||
</PrimaryColumn> | ||
<> | ||
<PrimaryColumn columnName={'グローバル'}> | ||
<PublicTimeline /> | ||
</PrimaryColumn> | ||
<TopicMenu /> | ||
</> | ||
); | ||
} |
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,107 @@ | ||
'use client'; | ||
|
||
import { styled } from '@mui/material'; | ||
import { Lightbulb } from '@mui/icons-material'; | ||
import Link from 'next/link'; | ||
import GitHubSvg from '@assets/icons/github-mark.svg'; | ||
|
||
const Root = styled('div')` | ||
background-color: ${({ theme }) => theme.palette.background.paper}; | ||
${({ theme }) => theme.breakpoints.down('laptop')} { | ||
display: none; | ||
} | ||
`; | ||
|
||
const StyledMenu = styled('nav')` | ||
height: 100%; | ||
overflow-y: auto; | ||
position: fixed; | ||
width: 330px; | ||
`; | ||
|
||
const Container = styled('div')` | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0 10px; | ||
`; | ||
|
||
const Title = styled('div')` | ||
color: ${({ theme }) => theme.palette.grey[900]}; | ||
display: flex; | ||
font-size: 1.2rem; | ||
font-weight: 700; | ||
gap: 0.5rem; | ||
padding: 10px 0; | ||
width: 100%; | ||
`; | ||
|
||
const Item = styled('div')` | ||
display: flex; | ||
padding: 10px 0; | ||
font-size: 16px; | ||
border-bottom: 1px solid ${({ theme }) => theme.palette.grey[100]}; | ||
background-color: ${({ theme }) => theme.palette.background.paper}; | ||
color: ${({ theme }) => theme.palette.grey[800]}; | ||
gap: 0.5rem; | ||
`; | ||
|
||
const StyledLink = styled(Link)` | ||
text-decoration: none; | ||
color: ${({ theme }) => theme.palette.grey[800]}; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
`; | ||
|
||
function MenuItem({ text, href }: { text: string; href: string }) { | ||
return ( | ||
<Item> | ||
<GitHubSvg height={20} width={20} viewBox="0 0 100 100" /> | ||
<StyledLink href={href} target={'_blank'}> | ||
{text} | ||
</StyledLink> | ||
</Item> | ||
); | ||
} | ||
|
||
export default function TopicMenu() { | ||
return ( | ||
<Root> | ||
<StyledMenu> | ||
<Container> | ||
<Title> | ||
<Lightbulb style={{ color: '#ffcf33' }} /> | ||
現在検討中の機能 | ||
</Title> | ||
{/* FIXME APIから取得するようにする */} | ||
<MenuItem | ||
text={'引用みたいな見た目になるようOGPを調整する'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/38'} | ||
/> | ||
<MenuItem | ||
text={'画像生成AIの学習から保護する機能'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/33'} | ||
/> | ||
<MenuItem | ||
text={'ATProtocol(Bluesky)のサポート'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/9'} | ||
/> | ||
<MenuItem | ||
text={'Nostrのサポート'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/7'} | ||
/> | ||
<MenuItem | ||
text={'ショートカットキーの設定'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/6'} | ||
/> | ||
<MenuItem | ||
text={'投げ銭システム'} | ||
href={'https://github.com/orgs/cuculus-dev/discussions/4'} | ||
/> | ||
</Container> | ||
</StyledMenu> | ||
</Root> | ||
); | ||
} |