chore: remove cms and fix some styles (#29)
* chore: remove all references to PayloadCMS * fix: nextjs landing utils * feat: refactor community, features, hero, learning resources, and testimonials components to use external JSON data * fix:remove hero logo box * fix: remove unused image in public * fix: change logo.png to logo.webp * fix: update button styles for improved visibility * chore: restructure component organization * fix: update import path for global styles in layout component * fix: adjust alignment of hero stats section for better layout * fix: update testimonials placeholder sample data * fix: update header component to use router for navigation and add signin page
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { Media } from '../payload-types';
|
||||
|
||||
export function formatCMSImageDataToMedia(
|
||||
image: number | Media | null | undefined
|
||||
): Media | null {
|
||||
if (image && typeof image === 'object' && 'url' in image) {
|
||||
return image as Media;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import { getPayload } from 'payload';
|
||||
import config from '../payload.config';
|
||||
|
||||
export const payload = await getPayload({ config });
|
||||
Reference in New Issue
Block a user