Skip to content

Commit

Permalink
feat: updates default banner image and bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
aatbip committed Oct 1, 2024
1 parent e813615 commit c08d5ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file added public/images/default_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/app/client-preview/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { z } from 'zod'
import { CopilotAPI } from '@/utils/copilotApiUtils'
import InvalidToken from '../components/InvalidToken'
import { defaultState } from '../../../defaultState'
import { defaultBannerImagePath } from '@/utils/constants'

export const revalidate = 0

Expand Down Expand Up @@ -123,7 +124,7 @@ export default async function ClientPreviewPage({
const htmlContent = template({ client })

const bannerImgUrl = !defaultSetting
? '/images/default_banner.png'
? defaultBannerImagePath
: settings?.bannerImage?.url

return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/EditorInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const EditorInterface = ({ settings, token, font }: IEditorInterface) => {
if (token) {
const _settings: ISettings = {
content: defaultState,
backgroundColor: '#ffffff',
backgroundColor: '#f7f8fa',
id: '',
bannerImage: {
id: '',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export const staticAutofillValues = [
'{{client.company}}',
]

export const defaultBannerImagePath = '/images/default_banner.png'
export const defaultBannerImagePath = '/images/default_bg.jpg'

0 comments on commit c08d5ad

Please sign in to comment.