index.tsx (1807B)
1 import { Box, Typography, Stack, Button } from '@mui/material'; 2 import Image from 'next/image'; 3 4 import Head from 'client/components/Head'; 5 import Layout from 'client/components/Layout'; 6 import Link from 'client/components/Link'; 7 import WarningOfUse from 'client/components/WarningOfUse'; 8 import { CLASSES, GRADES } from 'common/constant'; 9 10 import type { NextPage } from 'next'; 11 12 const Page: NextPage = () => { 13 return ( 14 <> 15 <Head title='トップ' /> 16 <Layout title='トップ'> 17 <Box p={2} height='fit-content'> 18 <Image 19 src='/main_visual.png' 20 width={1920} 21 height={1080} 22 style={{ width: '100%', height: 'auto', borderRadius: '3px' }} 23 alt='岸高時間割アプリ メインビジュアル' 24 /> 25 26 <p> 27 岸和田高校IT部が制作・運営している「岸高時間割アプリ」です。詳細は「 28 <Link href='/about'>このアプリについて</Link> 29 」をご覧ください。使い方や機能の説明については「 30 <Link href='/how-to-use'>使い方</Link>」をご覧ください。 31 </p> 32 33 <WarningOfUse /> 34 35 <Typography variant='h2' fontSize={24} my={3}> 36 時間割ページ一覧 37 </Typography> 38 39 <Stack 40 direction='row' 41 spacing={{ xs: 2, md: 4 }} 42 alignItems='center' 43 width='100%' 44 px={2} 45 > 46 {GRADES.map((g) => ( 47 <Stack spacing={2} width='100%' key={g}> 48 {CLASSES.map((c) => ( 49 <Button 50 fullWidth 51 variant='outlined' 52 href={`/${g}-${c}`} 53 sx={{ fontSize: 15, fontWeight: 400 }} 54 LinkComponent={Link} 55 key={c} 56 > 57 {g}年{c}組 58 </Button> 59 ))} 60 </Stack> 61 ))} 62 </Stack> 63 </Box> 64 </Layout> 65 </> 66 ); 67 }; 68 69 export default Page;