File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
website/src/components/ui/common Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,26 @@ import {
33 githubRepositoryUrl ,
44 typstOfficialDocsUrl ,
55 typstOfficialUrl ,
6+ version ,
67} from "../../../metadata" ;
78import { DiscordIcon , GitHubIcon , MenuIcon } from "../../icons" ;
89import { SiteTitle } from "./SiteTitle" ;
910
11+ const VersionBadge = ( ) => (
12+ < span class = "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-200 text-gray-600 ml-2" >
13+ v{ version }
14+ </ span >
15+ ) ;
16+
1017export const Header = ( ) => {
1118 return (
1219 < >
1320 < header class = "boring sticky top-0 z-40 bg-white border-b border-gray-200 hidden lg:block" >
1421 < div class = "flex justify-between items-center py-3 px-6" >
15- < SiteTitle />
22+ < div class = "flex items-center" >
23+ < SiteTitle />
24+ < VersionBadge />
25+ </ div >
1626 < nav class = "ml-auto" >
1727 < ul class = "flex items-center gap-4" >
1828 < li class = "social" >
@@ -58,7 +68,10 @@ export const Header = () => {
5868
5969 < header class = "sticky top-0 z-30 bg-white border-b border-gray-200 flex lg:hidden items-center justify-between px-4" >
6070 < div class = "flex justify-between items-center py-3 w-full" >
61- < SiteTitle />
71+ < div class = "flex items-center" >
72+ < SiteTitle />
73+ < VersionBadge />
74+ </ div >
6275 < button
6376 type = "button"
6477 class = "p-1 bg-white rounded-md border border-gray-200"
You can’t perform that action at this time.
0 commit comments