mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 12:10:11 +09:00
Modularize banners
This commit is contained in:
parent
ba2a8a365c
commit
859aa2bbab
19
pages/components/Footer/BlueRibbon.js
Normal file
19
pages/components/Footer/BlueRibbon.js
Normal file
@ -0,0 +1,19 @@
|
||||
// Next.js
|
||||
import Link from 'next/link'
|
||||
import Image from 'next/image'
|
||||
|
||||
const happybusy = (props) => {
|
||||
return (
|
||||
<Link href="https://www.eff.org/pages/blue-ribbon-campaign">
|
||||
<a>
|
||||
<Image
|
||||
src="/images/brstrip.gif"
|
||||
width={150}
|
||||
height={41}
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
export default happybusy
|
@ -1,18 +1,19 @@
|
||||
// Next.js
|
||||
import Link from 'next/link'
|
||||
import Image from 'next/image'
|
||||
|
||||
const happybusy = (props) => {
|
||||
const HappyBusy = (props) => {
|
||||
return (
|
||||
<Link href="https://sites.google.com/site/happybusy/">
|
||||
<a>
|
||||
<Image
|
||||
src="/images/busy_banner.png"
|
||||
width={200}
|
||||
height={42}
|
||||
/>
|
||||
</a>
|
||||
<a>
|
||||
<Image
|
||||
src="/images/busy_banner.png"
|
||||
width={200}
|
||||
height={42}
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
export default happybusy
|
||||
export default HappyBusy
|
@ -2,6 +2,9 @@
|
||||
import Layout from "./components/Layout"
|
||||
// Menu
|
||||
import FontAwesomeMenu from "./components/Menu/FontAwesomeMenu"
|
||||
// Banner
|
||||
import BlueRibbon from "./components/Footer/BlueRibbon"
|
||||
import HappyBusy from "./components/Footer/HappyBusy"
|
||||
// Next.js
|
||||
import Link from 'next/link'
|
||||
import Image from 'next/image'
|
||||
@ -43,26 +46,12 @@ export default function Index(props) {
|
||||
<FontAwesomeMenu href="/mutual" icon="faHeart" />
|
||||
</div>
|
||||
|
||||
{/* Banner */}
|
||||
<div className="mx-auto mt-10">
|
||||
<Link href="https://www.eff.org/pages/blue-ribbon-campaign">
|
||||
<a>
|
||||
<Image
|
||||
src="/images/brstrip.gif"
|
||||
width={150}
|
||||
height={41}
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
<Link href="https://sites.google.com/site/happybusy/">
|
||||
<a>
|
||||
<Image
|
||||
src="/images/busy_banner.png"
|
||||
width={200}
|
||||
height={42}
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
<BlueRibbon />
|
||||
<HappyBusy />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user