feat: home - show today, add flavor text for now
This commit is contained in:
parent
4d5d7a0c08
commit
472347a365
1 changed files with 7 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ export default async function Home({ searchParams }: HomePageProps) {
|
||||||
<li className="mb-2">
|
<li className="mb-2">
|
||||||
<a href="/now" className="text-blue-600 hover:underline">
|
<a href="/now" className="text-blue-600 hover:underline">
|
||||||
Kam jít?
|
Kam jít?
|
||||||
</a>
|
</a>{" "}
|
||||||
|
<span className="text-gray-500">(nejbližší 2 hodiny)</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -52,6 +53,11 @@ export default async function Home({ searchParams }: HomePageProps) {
|
||||||
month: "numeric",
|
month: "numeric",
|
||||||
})}
|
})}
|
||||||
</a>
|
</a>
|
||||||
|
<span className="text-gray-500">
|
||||||
|
{new Date(day).getDay() === new Date().getDay()
|
||||||
|
? " (dnes)"
|
||||||
|
: ""}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue