Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"eslint.validate": ["json"],
"files.associations": {
".*.*__tmpl__": "plaintext",
"*.css": "tailwindcss"
"*.css": "tailwindcss",
"*.scss": "tailwindcss"
},
"jest.runMode": {
"coverage": true,
Expand Down
15 changes: 15 additions & 0 deletions apps/cms/.env.local
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ S3_ENDPOINT=https://tiuqdqnfadzjngucaatb.supabase.co/storage/v1/s3
S3_FORCE_PATH_STYLE=true
S3_REGION=eu-central-1

# SendGrid credentials (higher priority than ethereal email)
SENDGRID_API_KEY=
SENDGRID_FROM_ADDRESS=
SENDGRID_FROM_NAME=

# Ethereal email credentials (provide all details to enable)
# Create an account at https://ethereal.email/create
# Read your email at https://ethereal.email/messages
ETHEREAL_FROM_ADDRESS=
ETHEREAL_FROM_NAME=
ETHEREAL_HOST=smtp.ethereal.email
ETHEREAL_PORT=587
ETHEREAL_USERNAME=
ETHEREAL_PASSWORD=

# Set to true to prevent database sync and behave as if it's production.
# This is required when serving the app after running migrations locally.
# Otherwise we'll probably run into race condition sync issues.
Expand Down
4 changes: 3 additions & 1 deletion apps/cms/src/app/(frontend)/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import '../../tailwind.css';
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--steel-blue: #588bae;
Expand Down
61 changes: 61 additions & 0 deletions apps/cms/src/app/(payload)/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* Do not import base directives here, it will break the payloadcms styles.
*/
@tailwind components;
@tailwind utilities;

:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--radius: 0.5rem;
}

[data-theme='dark'] {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
}

/**
{
@apply border-border;
}
body {
@apply bg-background text-foreground;
font-feature-settings:
'rlig' 1,
'calt' 1;
} */
2 changes: 1 addition & 1 deletion apps/cms/src/collections/pages/pages.collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const pages: CollectionConfig<'pages'> = {
name: 'layout',
type: 'blocks',
label: 'Layout builder',
blockReferences: ['content', 'media', 'code'],
blockReferences: ['content', 'form', 'media', 'code'],
blocks: [],
required: true,
localized: true,
Expand Down
4 changes: 1 addition & 3 deletions apps/cms/src/components/Logo.client.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
'use client';
import { CdwrCloud } from '@codeware/shared/ui/react-components';

import '../tailwind.css';

const Logo: React.FC = () => {
return (
<div className="flex flex-col items-center gap-2">
<div className="">
<CdwrCloud
width="100"
height="100"
className="text-black dark:text-white"
className="text-black dark:text-white opacity-80"
/>
</div>
<span className="text-black dark:text-white opacity-30 text-xl font-medium tracking-widest">
Expand Down
Loading