Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Dec 13, 2024
1 parent c01839d commit b56bd49
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
8 changes: 8 additions & 0 deletions examples/example_pro/src/FirestoreApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import { DemoImportAction } from "./DemoImportAction";
import { algoliaSearchControllerBuilder } from "./text_search";
import { carsCollection } from "./collections/cars_collection";
import ClientUIComponentsShowcase from "./views/ClientUIComponentsShowcase";
import { TypographyDemo } from "./views/TypographyDemo";

const signInOptions: FirebaseSignInProvider[] = ["google.com", "password"];

Expand Down Expand Up @@ -247,6 +248,13 @@ export function App() {
view: <ExampleCMSView/>
},
// {
// path: "typography",
// name: "Typography demo",
// group: "Custom views",
// description: "This is an example of an additional view that is defined by the user",
// view: <TypographyDemo/>
// },
// {
// path: "board_test",
// name: "Board test",
// group: "Content",
Expand Down
20 changes: 20 additions & 0 deletions examples/example_pro/src/FirestoreApp/views/TypographyDemo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { CenteredView, Typography } from "@firecms/ui";

export function TypographyDemo() {

return <CenteredView>
<Typography variant="h1" gutterBottom>H1. Heading</Typography>
<Typography variant="h2" gutterBottom>H2. Heading</Typography>
<Typography variant="h3" gutterBottom>H3. Heading</Typography>
<Typography variant="h4" gutterBottom>H4. Heading</Typography>
<Typography variant="h5" gutterBottom>H5. Heading</Typography>
<Typography variant="h6" gutterBottom>H6. Heading</Typography>
<Typography variant="subtitle1" gutterBottom>Subtitle 1</Typography>
<Typography variant="subtitle2" gutterBottom>Subtitle 2</Typography>
<Typography variant="body1" gutterBottom>Body 1</Typography>
<Typography variant="body2" gutterBottom>Body 2</Typography>
<Typography variant="caption" gutterBottom>Caption</Typography>
<Typography variant="label" gutterBottom>Label</Typography>
<Typography variant="button" gutterBottom className={"block"}>Button</Typography>
</CenteredView>
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useBrowserTitleAndIcon } from "@firecms/core";
import { Card, Chip, CircularProgress, cls, StarIcon, Typography, } from "@firecms/ui";
import { Card, Chip, CircularProgress, cls, AutoAwesomeIcon, Typography, } from "@firecms/ui";
import { useSubscriptionsForUserController } from "../../hooks/useSubscriptionsForUserController";
import { ProductUpgradeSmallView } from "./ProductUpgradeSmallView";
import { getPriceString, getSubscriptionStatusText } from "../settings/common";
Expand Down Expand Up @@ -80,28 +80,28 @@ export function ProjectSubscriptionPlans({ uid }: {
following features:</div>}

<ul className={"px-2 text-base"}>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>
Local text search
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>Unlimited
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>Unlimited
users and roles
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>Theme and
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>Theme and
logo customization
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>
Custom form fields and custom views
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>
Secondary databases
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>GPT-4
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>GPT-4
content generation
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>
Unlimited data export
</li>
<li className={"flex gap-4 items-center py-0.5"}><StarIcon size={"small"}/>
<li className={"flex gap-4 items-center py-0.5"}><AutoAwesomeIcon size={"small"}/>
AppCheck
</li>
</ul>
Expand Down

0 comments on commit b56bd49

Please sign in to comment.