Skip to content

Commit

Permalink
Merge pull request #86 from katsuma/banners
Browse files Browse the repository at this point in the history
Add link banner to Home page
  • Loading branch information
katsuma committed Jun 16, 2024
2 parents 25dff02 + 0736521 commit 5e7a303
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Binary file added public/podcasting-guide/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/question/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,21 @@
max-width: 330px;
margin: 0 auto;
}

.banner {
max-width: 100%;
height: auto;
border: 1px solid var(--gray-light);
}

.screen-reader-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
10 changes: 8 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@ export default async function Home() {

<section className='section'>
<h2 className='title'>ポッドキャストの収録・編集環境</h2>
<Link href='/podcasting-guide'>
<Image src={'/podcasting-guide/banner.jpg'} alt={'ポッドキャストの収録・編集環境'} width={1200} height={340} priority={true} className={styles.banner} />
</Link>
<p className={styles.description}>マイクやオーディオインターフェースなどの収録環境や、DAWやプラグインなど編集環境についてまとめてみました。</p>
<p className='link-more'><Link href='/podcasting-guide'><FaMicrophone />ポッドキャストの収録・編集環境を見る</Link></p>
<p className={styles['screen-reader-only']}><Link href='/podcasting-guide'><FaMicrophone />ポッドキャストの収録・編集環境を見る</Link></p>
</section>

<section className='section'>
<h2 className='title'>ロボットADへの質問</h2>
<Link href='/question'>
<Image src={'/question/banner.jpg'} alt={'ロボットADへの質問'} width={1200} height={340} priority={true} className={styles.banner} />
</Link>
<p className={styles.description}>ロボットADが番組でこれまで話したエピソードをもとに質問に答えます。ADは見習いなので、たまにポンコツな回答もしますがご容赦ください。</p>
<p className='link-more'><Link href='/question'><LiaRobotSolid />ロボットADへ質問してみる</Link></p>
<p className={styles['screen-reader-only']}><Link href='/question'><LiaRobotSolid />ロボットADへ質問してみる</Link></p>
</section>

<section className='section'>
Expand Down

0 comments on commit 5e7a303

Please sign in to comment.