mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
Update middleware logic (#263)
This commit is contained in:
parent
e3ef812ca3
commit
770d624b02
4 changed files with 51 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
/* eslint-disable @next/next/no-html-link-for-pages */
|
||||
import { motion } from "framer-motion";
|
||||
import Link from "next/link";
|
||||
import { Trans, useTranslation } from "next-i18next";
|
||||
import * as React from "react";
|
||||
|
||||
|
@ -27,22 +27,22 @@ const Hero: React.VoidFunctionComponent = () => {
|
|||
</h1>
|
||||
<div className="mb-12 text-xl text-gray-400">{t("heroSubText")}</div>
|
||||
<div className="space-x-3">
|
||||
<Link href="/new" locale={false}>
|
||||
<a className="rounded-lg bg-primary-500 px-5 py-3 font-semibold text-white shadow-sm transition-all hover:bg-primary-500/90 hover:text-white hover:no-underline hover:shadow-md focus:ring-2 focus:ring-primary-200 active:bg-primary-600/90">
|
||||
{t("getStarted")}
|
||||
</a>
|
||||
</Link>
|
||||
<Link href="/demo" locale={false}>
|
||||
<a
|
||||
className="rounded-lg bg-slate-500 px-5 py-3 font-semibold text-white shadow-sm transition-all hover:bg-slate-500/90 hover:text-white hover:no-underline hover:shadow-md focus:ring-2 focus:ring-primary-200 active:bg-slate-600/90"
|
||||
rel="nofollow"
|
||||
>
|
||||
{t("liveDemo")}
|
||||
</a>
|
||||
</Link>
|
||||
<a
|
||||
href="/new"
|
||||
className="rounded-lg bg-primary-500 px-5 py-3 font-semibold text-white shadow-sm transition-all hover:bg-primary-500/90 hover:text-white hover:no-underline hover:shadow-md focus:ring-2 focus:ring-primary-200 active:bg-primary-600/90"
|
||||
>
|
||||
{t("getStarted")}
|
||||
</a>
|
||||
<a
|
||||
href="/demo"
|
||||
className="rounded-lg bg-slate-500 px-5 py-3 font-semibold text-white shadow-sm transition-all hover:bg-slate-500/90 hover:text-white hover:no-underline hover:shadow-md focus:ring-2 focus:ring-primary-200 active:bg-slate-600/90"
|
||||
rel="nofollow"
|
||||
>
|
||||
{t("liveDemo")}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pointer-events-none mt-24 hidden h-[380px] select-none items-end justify-center md:flex lg:mt-8 lg:ml-24">
|
||||
<div className="pointer-events-none mt-24 hidden h-[380px] select-none items-end justify-center md:flex lg:mt-8 lg:ml-8">
|
||||
<UserAvatarProvider seed="mock" names={names}>
|
||||
<DayjsProvider>
|
||||
<div className="relative inline-block">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue