feat: add new about page
This commit is contained in:
9 files changed
+238
-48
No files matched your search
@@ -1,19 +1,46 @@
|
||||
import { ListItem, ListItemButton, ListItemText } from "@mui/material";
|
||||
import { Link, type ReactNode } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import {
|
||||
ListItem,
|
||||
ListItemButton,
|
||||
type ListItemProps,
|
||||
ListItemText,
|
||||
} from "@mui/material";
|
||||
import { createLink, Link } from "@tanstack/react-router";
|
||||
import React, { forwardRef, type ReactNode } from "react";
|
||||
|
||||
interface ListItemLinkProps {
|
||||
interface MUIListItemLinkProps extends ListItemProps<"a"> {
|
||||
icon?: ReactNode;
|
||||
primary: string;
|
||||
to: string;
|
||||
className?: string;
|
||||
}
|
||||
export default function ListItemLink(props: ListItemLinkProps) {
|
||||
|
||||
const CreatedListItemLink = forwardRef<HTMLAnchorElement, MUIListItemLinkProps>(
|
||||
(props, ref) => (
|
||||
<ListItem component="a" ref={ref} {...props}>
|
||||
<ListItemButton
|
||||
style={{
|
||||
borderRadius: "100px",
|
||||
gap: "0.85em",
|
||||
color: "white",
|
||||
textDecoration: "none",
|
||||
}}
|
||||
>
|
||||
<div className="material-symbols-rounded">{props.icon}</div>
|
||||
<ListItemText primary={props.primary} />
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
),
|
||||
);
|
||||
|
||||
const ListItemLink = createLink(CreatedListItemLink);
|
||||
|
||||
export default ListItemLink;
|
||||
|
||||
/* export default function ListItemLink(props: ListItemLinkProps) {
|
||||
const { icon, primary, to, className } = props;
|
||||
|
||||
return (
|
||||
<li>
|
||||
{/* @ts-ignore */}
|
||||
{/* @ts-ignore /*}
|
||||
<ListItem
|
||||
component={Link}
|
||||
activeClassName="active"
|
||||
@@ -35,3 +62,4 @@ export default function ListItemLink(props: ListItemLinkProps) {
|
||||
</li>
|
||||
);
|
||||
}
|
||||
*/
|
||||
Reference in new issue
Block a user