Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Templates]: Added T3 Stack + Mantine Template #5019

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/components/MdxProvider/MdxTemplatesList/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface Template {
name: string;
link: string;
description: string;
type: 'next' | 'gatsby' | 'vite' | 'remix' | 'redwood';
type: 'next' | 't3' | 'gatsby' | 'vite' | 'remix' | 'redwood';
}

export const TEMPLATES_DATA: Template[] = [
Expand All @@ -12,6 +12,12 @@ export const TEMPLATES_DATA: Template[] = [
link: 'https://github.com/mantinedev/next-app-template',
description: 'Next.js template with app router and full setup: Jest, Storybook, ESLint',
},
{
type: 't3',
name: 't3-template',
link: "https://github.com/WillKirkmanM/mantine-t3-template",
description: "T3 Stack Template with NextAuth, TRPC & Prisma"
},
{
type: 'next',
name: 'next-pages-template',
Expand Down
24 changes: 24 additions & 0 deletions docs/components/icons/T3Icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import { Box, rem } from '@mantine/core';
import { IconProps } from './types';
import classes from './icons.module.css';

export function T3Icon({ size = 40, ...others }: IconProps) {
return (
<Box
component="svg"
__vars={{ '--icon-size': rem(size) }}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid"
viewBox="0 0 512 128"
className={classes.nextIcon}
data-large
{...others}
>
<path fill-rule="evenodd" clip-rule="evenodd" d="M165.735 25.0701L188.947 0.972412H0.465994V25.0701H165.735Z" fill="black"/>
<path d="M163.981 96.3239L254.022 3.68314L221.206 3.68295L145.617 80.7609L163.981 96.3239Z" fill="black"/>
<path d="M233.658 131.418C233.658 155.075 214.48 174.254 190.823 174.254C171.715 174.254 155.513 161.738 150 144.439L146.625 133.848L127.329 153.143L129.092 157.336C139.215 181.421 163.034 198.354 190.823 198.354C227.791 198.354 257.759 168.386 257.759 131.418C257.759 106.937 244.399 85.7396 224.956 74.0905L220.395 71.3582L202.727 89.2528L210.788 93.5083C224.403 100.696 233.658 114.981 233.658 131.418Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M88.2625 192.669L88.2626 45.6459H64.1648L64.1648 192.669H88.2625Z" fill="black"/>
</Box>
);
}
2 changes: 2 additions & 0 deletions docs/components/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextIcon } from './NextIcon';
import { T3Icon } from './T3Icon';
import { ViteIcon } from './ViteIcon';
import { GatsbyIcon } from './GatsbyIcon';
import { RemixIcon } from './RemixIcon';
Expand All @@ -7,6 +8,7 @@ import type { Template } from '../MdxProvider/MdxTemplatesList/data';

export const frameworkIcons: Record<Template['type'], typeof NextIcon> = {
next: NextIcon,
t3: T3Icon,
vite: ViteIcon,
gatsby: GatsbyIcon,
redwood: RedwoodIcon,
Expand Down
Loading