Skip to content

Commit 90f9f5b

Browse files
committed
add v3 banner to sidebar
1 parent ad9c2c3 commit 90f9f5b

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

widgets/layout/sidenav.tsx

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import React from "react";
22
import Link from "next/link";
3-
import { Typography, Chip, IconButton } from "@material-tailwind/react";
3+
import {
4+
Typography,
5+
Chip,
6+
IconButton,
7+
Card,
8+
CardBody,
9+
Button,
10+
} from "@material-tailwind/react";
411
import { useLockedBody } from "usehooks-ts";
512
import { XMarkIcon } from "@heroicons/react/24/outline";
613

@@ -61,7 +68,7 @@ export function Sidenav({
6168
</IconButton>
6269
)}
6370
<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">
64-
<div className="mb-10 mt-6">
71+
<div className="mb-24 mt-6">
6572
{routes.map(({ name, pages }, key): any => (
6673
<div key={key}>
6774
<Typography
@@ -116,6 +123,29 @@ export function Sidenav({
116123
</ul>
117124
</div>
118125
))}
126+
<Card color="gray">
127+
<CardBody className="px-4 py-2.5">
128+
<Typography variant="h6" className="mb-1">
129+
Material Tailwind v3
130+
</Typography>
131+
<Typography variant="small" color="white" className="font-normal">
132+
We&apos;ve just released the new version of Material Tailwind
133+
with a lot of new features and improvements. It&apos;s currently
134+
on <span className="font-semibold text-yellow-600">beta</span>{" "}
135+
and we need your feedback to make it better.
136+
</Typography>
137+
<Link href="/docs/v3/react/installation">
138+
<Button
139+
size="sm"
140+
color="white"
141+
className="mb-1.5 mt-4 normal-case"
142+
fullWidth
143+
>
144+
Go to v3 Docs
145+
</Button>
146+
</Link>
147+
</CardBody>
148+
</Card>
119149
</div>
120150
</div>
121151
</aside>

0 commit comments

Comments
 (0)