Skip to content

Commit

Permalink
add v3 banner to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
sajadevo committed Aug 19, 2024
1 parent ad9c2c3 commit 90f9f5b
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions widgets/layout/sidenav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import React from "react";
import Link from "next/link";
import { Typography, Chip, IconButton } from "@material-tailwind/react";
import {
Typography,
Chip,
IconButton,
Card,
CardBody,
Button,
} from "@material-tailwind/react";
import { useLockedBody } from "usehooks-ts";
import { XMarkIcon } from "@heroicons/react/24/outline";

Expand Down Expand Up @@ -61,7 +68,7 @@ export function Sidenav({
</IconButton>
)}
<div className="fixed top-0 z-[9999] h-screen w-80 overflow-y-scroll !bg-white pb-6 pl-6 lg:relative lg:w-56 lg:bg-transparent lg:pl-0 lg:pt-0">
<div className="mb-10 mt-6">
<div className="mb-24 mt-6">
{routes.map(({ name, pages }, key): any => (
<div key={key}>
<Typography
Expand Down Expand Up @@ -116,6 +123,29 @@ export function Sidenav({
</ul>
</div>
))}
<Card color="gray">
<CardBody className="px-4 py-2.5">
<Typography variant="h6" className="mb-1">
Material Tailwind v3
</Typography>
<Typography variant="small" color="white" className="font-normal">
We&apos;ve just released the new version of Material Tailwind
with a lot of new features and improvements. It&apos;s currently
on <span className="font-semibold text-yellow-600">beta</span>{" "}
and we need your feedback to make it better.
</Typography>
<Link href="/docs/v3/react/installation">
<Button
size="sm"
color="white"
className="mb-1.5 mt-4 normal-case"
fullWidth
>
Go to v3 Docs
</Button>
</Link>
</CardBody>
</Card>
</div>
</div>
</aside>
Expand Down

0 comments on commit 90f9f5b

Please sign in to comment.