Skip to content

Commit 3db5d00

Browse files
committed
Fixed default link styling
1 parent 5f61d5a commit 3db5d00

File tree

20 files changed

+13034
-18697
lines changed

20 files changed

+13034
-18697
lines changed

examples/example/src/index.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66

77
:root {
88
--fcms-primary: #0070F4;
9-
--fcms-primary-dark: #0061e6;
109
--fcms-primary-bg: #0061e610;
1110
--fcms-secondary: #FF5B79;
1211
}
1312

1413
body {
1514
@apply w-full min-h-screen bg-surface-50 dark:bg-surface-900 flex flex-col items-center justify-center;
1615
}
16+
17+
a {
18+
@apply text-primary dark:text-primary hover:underline
19+
}

examples/example_cloud/src/index.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ body {
2424
@apply w-full min-h-screen bg-surface-50 dark:bg-surface-900 flex flex-col items-center justify-center;
2525
}
2626

27+
a {
28+
@apply text-primary dark:text-primary hover:underline
29+
}
30+
2731
:root {
2832
--fcms-primary: #0070F4;
29-
--fcms-primary-dark: #0061e6;
3033
--fcms-primary-bg: #0061e610;
3134
--fcms-secondary: #FF5B79;
3235
}

examples/example_next/next.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ const nextConfig: NextConfig = {
44
async redirects() {
55
return [
66
{
7-
source: '/',
8-
destination: '/products',
9-
permanent: true,
10-
},
7+
source: "/",
8+
destination: "/cms",
9+
permanent: true
10+
}
1111
]
12-
},
12+
}
1313
};
1414

1515
export default nextConfig;

examples/example_next/src/app/(website)/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Header } from "@/app/(website)/components/Header";
88
import { Footer } from "@/app/(website)/components/Footer";
99

1010
export const metadata: Metadata = {
11-
title: "FireCMS E-commerce demo",
11+
title: "FireCMS e-commerce and blog demo",
1212
description: "This is a demo for using FireCMS as an e-commerce backend",
1313
generator: "FireCMS",
1414
};

examples/example_next/src/app/cms/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import Link from "next/link";
5050

5151
export function App() {
5252

53-
const title = "FireCMS E-commerce demo";
53+
const title = "FireCMS e-commerce and blog demo";
5454

5555
if (!firebaseConfig?.projectId) {
5656
throw new Error("Firebase config not found. Please check your `firebase_config.ts` file and make sure it is correctly set up.");
@@ -248,7 +248,7 @@ export function App() {
248248
logo={logo.src}
249249
autoOpenDrawer={false}>
250250
<AppBar title={title}
251-
endAdornment={<Link href={"../"} target={"_blank"}>
251+
endAdornment={<Link href={"../products"} target={"_blank"}>
252252
<Button variant={"text"}>
253253
<OpenInNewIcon/>
254254
Go to website

examples/example_next/src/app/cms/components/CustomLoginView.tsx

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useRef, useState } from "react";
2-
import { Alert, BooleanSwitchWithLabel, Typography } from "@firecms/ui";
2+
import { Alert, BooleanSwitchWithLabel, OpenInNewIcon, Typography } from "@firecms/ui";
33
import { FirebaseLoginView, FirebaseLoginViewProps } from "@firecms/firebase";
44

55
export function CustomLoginView(props: FirebaseLoginViewProps) {
@@ -27,14 +27,27 @@ export function CustomLoginView(props: FirebaseLoginViewProps) {
2727
disabled={!termsAccepted}
2828
>
2929
<>
30-
<Typography variant={"h6"} className={"mb-2"}>
31-
FireCMS e-commerce demo
30+
<Typography variant={"h5"} className={"mb-2"}>
31+
FireCMS e-commerce and blog demo
3232
</Typography>
33-
<Typography className={"mb-4"} variant={"caption"}>
33+
34+
<Typography className={"mb-4"} variant={"body2"}>
3435
This is a demo application that showcases the capabilities of FireCMS.
35-
You can see a sample frontend application built with Next.js in
36-
this <a href={"/"} target={"_blank"} rel={"noreferrer"}> link</a>.
36+
Check the sample frontend application built with Next.js
37+
in <a href={"/"} target={"_blank"} rel={"noreferrer"}>this link <OpenInNewIcon
38+
size={"smallest"}
39+
className={"inline"}/></a>.
3740
</Typography>
41+
42+
{/*<Link*/}
43+
{/* target={"_blank"}*/}
44+
{/* href={"../products"}>*/}
45+
{/* <Button size={"small"}*/}
46+
{/* variant={"text"}*/}
47+
{/* fullWidth*/}
48+
{/* startIcon={<OpenInNewIcon/>}>See demo frontend app</Button>*/}
49+
{/*</Link>*/}
50+
3851
<BooleanSwitchWithLabel size="small"
3952
invisible={true}
4053
value={newsletterSubscribed}

examples/example_next/src/app/cms/custom_field/JSONField.tsx

-50
This file was deleted.

examples/example_next/src/app/common/index.css

+8-15
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@
44

55
:root {
66
--fcms-primary: #0070F4;
7-
--fcms-primary-dark: #0061e6;
87
--fcms-primary-bg: #0061e610;
98
--fcms-secondary: #12b6b2;
109
}
1110

12-
@layer utilities {
13-
/* Chrome, Safari and Opera */
14-
.no-scrollbar::-webkit-scrollbar {
15-
display: none;
16-
}
11+
body {
12+
@apply w-full min-h-screen bg-surface-50 dark:bg-surface-900 flex flex-col items-center justify-center;
13+
}
1714

18-
.no-scrollbar {
19-
-ms-overflow-style: none; /* IE and Edge */
20-
scrollbar-width: none; /* Firefox */
21-
}
15+
a {
16+
@apply text-primary dark:text-primary hover:underline
17+
}
18+
19+
@layer utilities {
2220

2321
.typography-h1 {
2422
@apply text-5xl font-headers;
@@ -76,8 +74,3 @@
7674
@apply text-sm font-medium uppercase;
7775
}
7876
}
79-
80-
81-
body {
82-
@apply w-full min-h-screen bg-surface-50 dark:bg-surface-900 flex flex-col items-center justify-center;
83-
}

examples/example_pro/src/index.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55

66
:root {
77
--fcms-primary: #0070F4;
8-
--fcms-primary-dark: #0061e6;
98
--fcms-primary-bg: #0061e610;
109
--fcms-secondary: #FF5B79;
1110
}
1211

1312
body {
1413
@apply w-full min-h-screen bg-surface-50 dark:bg-surface-900 flex flex-col items-center justify-center;
1514
}
15+
16+
a {
17+
@apply text-primary dark:text-primary hover:underline
18+
}
1619
/*.typography-body1 {*/
1720
/* @apply text-lg;*/
1821
/*}*/

examples/example_pro/src/template/index.css

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
:root {
88
--fcms-primary: #0070F4;
9-
--fcms-primary-dark: #0061e6;
109
--fcms-primary-bg: #0061e610;
1110
--fcms-secondary: #FF5B79;
1211
}

0 commit comments

Comments
 (0)