Skip to content

Commit 5ba260e

Browse files
committed
feat(cms): add support for generating forms
Form components are using Shadcn UI closed COD-282
1 parent f4ecc40 commit 5ba260e

98 files changed

Lines changed: 18740 additions & 767 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"eslint.validate": ["json"],
99
"files.associations": {
1010
".*.*__tmpl__": "plaintext",
11-
"*.css": "tailwindcss"
11+
"*.css": "tailwindcss",
12+
"*.scss": "tailwindcss"
1213
},
1314
"jest.runMode": {
1415
"coverage": true,

apps/cms/src/app/(frontend)/globals.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
@import '../../tailwind.css';
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
24

35
:root {
46
--steel-blue: #588bae;
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Do not import base directives here, it will break the payloadcms styles.
3+
*/
4+
@tailwind components;
5+
@tailwind utilities;
6+
7+
:root {
8+
--background: 0 0% 100%;
9+
--foreground: 240 10% 3.9%;
10+
--card: 0 0% 100%;
11+
--card-foreground: 240 10% 3.9%;
12+
--popover: 0 0% 100%;
13+
--popover-foreground: 240 10% 3.9%;
14+
--primary: 240 5.9% 10%;
15+
--primary-foreground: 0 0% 98%;
16+
--secondary: 240 4.8% 95.9%;
17+
--secondary-foreground: 240 5.9% 10%;
18+
--muted: 240 4.8% 95.9%;
19+
--muted-foreground: 240 3.8% 46.1%;
20+
--accent: 240 4.8% 95.9%;
21+
--accent-foreground: 240 5.9% 10%;
22+
--destructive: 0 84.2% 60.2%;
23+
--destructive-foreground: 0 0% 98%;
24+
--border: 240 5.9% 90%;
25+
--input: 240 5.9% 90%;
26+
--ring: 240 5.9% 10%;
27+
--radius: 0.5rem;
28+
}
29+
30+
[data-theme='dark'] {
31+
--background: 240 10% 3.9%;
32+
--foreground: 0 0% 98%;
33+
--card: 240 10% 3.9%;
34+
--card-foreground: 0 0% 98%;
35+
--popover: 240 10% 3.9%;
36+
--popover-foreground: 0 0% 98%;
37+
--primary: 0 0% 98%;
38+
--primary-foreground: 240 5.9% 10%;
39+
--secondary: 240 3.7% 15.9%;
40+
--secondary-foreground: 0 0% 98%;
41+
--muted: 240 3.7% 15.9%;
42+
--muted-foreground: 240 5% 64.9%;
43+
--accent: 240 3.7% 15.9%;
44+
--accent-foreground: 0 0% 98%;
45+
--destructive: 0 62.8% 30.6%;
46+
--destructive-foreground: 0 0% 98%;
47+
--border: 240 3.7% 15.9%;
48+
--input: 240 3.7% 15.9%;
49+
--ring: 240 4.9% 83.9%;
50+
}
51+
52+
/**
53+
{
54+
@apply border-border;
55+
}
56+
body {
57+
@apply bg-background text-foreground;
58+
font-feature-settings:
59+
'rlig' 1,
60+
'calt' 1;
61+
} */

apps/cms/src/collections/pages/pages.collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const pages: CollectionConfig<'pages'> = {
7474
name: 'layout',
7575
type: 'blocks',
7676
label: 'Layout builder',
77-
blockReferences: ['content', 'media', 'code'],
77+
blockReferences: ['content', 'form', 'media', 'code'],
7878
blocks: [],
7979
required: true,
8080
localized: true,

apps/cms/src/components/Logo.client.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
'use client';
22
import { CdwrCloud } from '@codeware/shared/ui/react-components';
33

4-
import '../tailwind.css';
5-
64
const Logo: React.FC = () => {
75
return (
86
<div className="flex flex-col items-center gap-2">
97
<div className="">
108
<CdwrCloud
119
width="100"
1210
height="100"
13-
className="text-black dark:text-white"
11+
className="text-black dark:text-white opacity-80"
1412
/>
1513
</div>
1614
<span className="text-black dark:text-white opacity-30 text-xl font-medium tracking-widest">

0 commit comments

Comments
 (0)