Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
feat: 🎸 ハンバーガーメニューのスタイルや表示内容を微修正 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored May 15, 2022
1 parent d93abb6 commit a254e14
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
41 changes: 41 additions & 0 deletions components/HumbergerMenu/HumbergerNavigation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { push as Menu } from 'react-burger-menu'
import Link from 'next/link'
import PreviousWebsites from './PreviousWebsites'

const Navigation = () => {
return (
<div id="outer-container">
<Menu pageWrapId={'page-wrap'} outerContainerId={'outer-container'}>
<div className="grid grid-cols-1 divide-y divide-current">
<div className="text-2xl py-4">
<Link href="/">幻水総選挙2022</Link>
</div>
<div className="text-lg py-4">開催概要</div>
<div className="text-lg py-4">総選挙内企画</div>
<div className="text-lg py-4">よくあるご質問(準備中)</div>
<div className="py-4">
<PreviousWebsites />
</div>
{/* <div className="text-base py-4">
<div>
<svg
className="w-5 h-5 text-blue-300 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
style={{
display: 'inline-block',
verticalAlign: 'text-bottom',
}}
>
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" />
</svg>
<span className="pl-1">@gensosenkyo</span>
</div>
</div> */}
</div>
</Menu>
</div>
)
}

export default Navigation
4 changes: 2 additions & 2 deletions components/HumbergerMenu/PreviousWebsites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PreviousWebsites = () => {
]

return (
<div>
<>
<div className="text-lg">
<div className="pb-4">📓 過去の幻水総選挙</div>
<div className="pl-4">
Expand All @@ -25,7 +25,7 @@ const PreviousWebsites = () => {
))}
</div>
</div>
</div>
</>
)
}

Expand Down
2 changes: 1 addition & 1 deletion pages/events-in-event.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextPage } from 'next'
import Link from 'next/link'

import HumbergerNavigation from '../components/HumbergerMenu/Navigation'
import HumbergerNavigation from '../components/HumbergerMenu/HumbergerNavigation'
import NavBar from '../components/NavBar'

const EventsInEvent: NextPage = () => {
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Link from 'next/link'
import Image from 'next/image'
import type { NextPage } from 'next'

import HumbergerNavigation from '../components/HumbergerMenu/Navigation'
import HumbergerNavigation from '../components/HumbergerMenu/HumbergerNavigation'

import NavBar from '../components/NavBar'

Expand Down
2 changes: 1 addition & 1 deletion styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ a {
/* メニューアイテムリストのラッパ */
.bm-item-list {
color: #b8b7ad;
padding: 0.8em;
padding: 0.2em;
}

/* 個々のメニューアイテム */
Expand Down

0 comments on commit a254e14

Please sign in to comment.