diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..6f27bb6 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file diff --git a/src/pages/[group].tsx b/src/pages/[group].tsx index 83a4104..77f0b9b 100644 --- a/src/pages/[group].tsx +++ b/src/pages/[group].tsx @@ -9,14 +9,16 @@ import { groups } from '@/shared/data/groups' import crypto from 'crypto' import React from 'react' import { getDayOfWeek } from '@/shared/utils' +import Head from 'next/head' type PageProps = NextSerialized<{ schedule: Day[] + group: string parsedAt: Date }> export default function HomePage(props: PageProps) { - const { schedule, parsedAt } = nextDeserializer(props) + const { schedule, group, parsedAt } = nextDeserializer(props) React.useEffect(() => { if (typeof window !== 'undefined') { @@ -39,6 +41,12 @@ export default function HomePage(props: PageProps) { return ( <> + + Группа {group} — Расписание занятий в Колледже Связи + + + + @@ -94,7 +102,8 @@ export async function getServerSideProps(context: GetServerSidePropsContext<{ gr return { props: nextSerialized({ schedule: schedule, - parsedAt: parsedAt + parsedAt: parsedAt, + group: groups[group][1] }) } } else { diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index deb9362..0eb3647 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -4,8 +4,7 @@ export default function Document() { return ( - Расписание в Колледже Связи - + diff --git a/src/shadcn/ui/card.tsx b/src/shadcn/ui/card.tsx index 284db18..8b68c6e 100644 --- a/src/shadcn/ui/card.tsx +++ b/src/shadcn/ui/card.tsx @@ -33,7 +33,7 @@ const CardTitle = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( -

-

+

{dayOfWeek} {Intl.DateTimeFormat('ru-RU', { day: 'numeric', month: 'long', // year: 'numeric' }).format(day.date)} -

+