Skip to content

Commit

Permalink
Merge pull request #239 from yocxo/srizvi/issue232
Browse files Browse the repository at this point in the history
chore: optimize static files #232
  • Loading branch information
srizvi authored Apr 15, 2024
2 parents 674764f + 5874e06 commit 5b746d6
Show file tree
Hide file tree
Showing 73 changed files with 118 additions and 235 deletions.
9 changes: 0 additions & 9 deletions apps/coco/public/browserconfig.xml

This file was deleted.

Binary file removed apps/coco/public/mstile-150x150.png
Binary file not shown.
1 change: 0 additions & 1 deletion apps/coco/public/safari-pinned-tab.svg

This file was deleted.

19 changes: 0 additions & 19 deletions apps/coco/public/site.webmanifest

This file was deleted.

Binary file removed apps/coco/public/twitter-image.jpg
Binary file not shown.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
23 changes: 23 additions & 0 deletions apps/coco/src/app/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { MetadataRoute } from 'next';

export default function manifest(): MetadataRoute.Manifest {
return {
name: 'cocoGPT',
short_name: 'cocoGPT',
icons: [
{
src: '/icon3.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icon4.png',
sizes: '512x512',
type: 'image/png',
},
],
theme_color: '#f5c000',
background_color: '#f5c000',
display: 'standalone',
};
}
2 changes: 1 addition & 1 deletion apps/coco/src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const siteConfig: SiteConfig = {
'cocoGPT is an experimental wrapper by Yo! CXO. Powered by Vercel AI and forked from their Chat repo. We added a little something something of our own. 🍌🍌',
url: siteUrl,
image: {
url: `${siteUrl}/opengraph-image.gif`,
url: `/opengraph-image.gif`,
width: 1200,
height: 630,
alt: 'Loading screen animation with pulsing text that spells out "Loading..." with the Yo! CXO logo (a silhouette of a French Bulldog and lower case text) in the top left.',
Expand Down
Binary file removed apps/mai/public/brilla-logo.png
Binary file not shown.
9 changes: 0 additions & 9 deletions apps/mai/public/browserconfig.xml

This file was deleted.

Binary file removed apps/mai/public/icon.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion apps/mai/public/icons/safari-pinned-tab.svg

This file was deleted.

Binary file removed apps/mai/public/opengraph-image.gif
Binary file not shown.
19 changes: 0 additions & 19 deletions apps/mai/public/site.webmanifest

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
23 changes: 23 additions & 0 deletions apps/mai/src/app/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { MetadataRoute } from 'next';

export default function manifest(): MetadataRoute.Manifest {
return {
name: 'Mai',
short_name: 'Mai',
icons: [
{
src: '/icon3.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icon4.png',
sizes: '512x512',
type: 'image/png',
},
],
theme_color: '#09090b',
background_color: '#09090b',
display: 'standalone',
};
}
File renamed without changes
16 changes: 1 addition & 15 deletions apps/mai/src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,26 @@ interface Image {

interface SiteConfig {
company: string;
companyLogo: Image;
companyUrl: string;
description: string;
keyword: string;
image: Image;
name: string;
logo: Image;
url: string;
}

export const siteConfig: SiteConfig = {
company: 'BRIL.LA, LLC.',
companyLogo: {
url: `${siteUrl}/brilla-logo.png`,
width: 1639,
height: 821,
alt: "A lowercased logomark spelling brilla (rhymes with see ya) in a plain color with an icon consistent of a colon and two forward slashes representing the i and l's in the name.",
},
companyUrl: 'https://bril.la',
description:
"Mai by Yo! CXO is an exploration in generative UI interfaces with a Perplexity AI like UX. It's AI for business that helps get work done. A fork of morphic.sh.",
image: {
url: `${siteUrl}/opengraph-image.gif`,
url: `/opengraph-image.gif`,
width: 1200,
height: 630,
alt: 'Loading screen animation with pulsing text that spells out "Loading..." with an M icon in the shape of a cute dog face in the top left and the Yo! CXO logo in the top right.',
},
keyword: 'AI for work',
logo: {
url: `${siteUrl}/icon.png`,
width: 1000,
height: 1000,
alt: 'A representation of an M with a cute little nose, shaped to look like a negative spaced dog.',
},
name: 'I AM MAI',
url: siteUrl,
};
50 changes: 34 additions & 16 deletions apps/mai/src/data/screens.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,85 @@
import type { StaticImageData } from 'next/image';

import image1 from '#/images/1.jpg';
import image2 from '#/images/2.jpg';
import image3 from '#/images/3.jpg';
import image4 from '#/images/4.jpg';
import image5 from '#/images/5.jpg';
import image6 from '#/images/6.jpg';
import image7 from '#/images/7.jpg';
import image8 from '#/images/8.jpg';
import image9 from '#/images/9.jpg';
import image10 from '#/images/10.jpg';
import image11 from '#/images/11.jpg';
import image12 from '#/images/12.jpg';
import image13 from '#/images/13.jpg';
import image16 from '#/images/16.jpg';
import image17 from '#/images/17.jpg';

export interface Screen {
title: string;
thumbnail: string;
thumbnail: StaticImageData;
}

export const screens: Screen[] = [
{
title: 'Increased engagement',
thumbnail: '/screens/1.jpg',
thumbnail: image1,
},
{
title: 'Time saved',
thumbnail: '/screens/2.jpg',
thumbnail: image2,
},
{
title: 'Targeted messaging',
thumbnail: '/screens/3.jpg',
thumbnail: image3,
},
{
title: 'Credibility built',
thumbnail: '/screens/4.jpg',
thumbnail: image4,
},
{
title: 'Audiences captivated',
thumbnail: '/screens/5.jpg',
thumbnail: image5,
},
{
title: 'Strategies optimized',
thumbnail: '/screens/6.jpg',
thumbnail: image6,
},
{
title: 'Workflow streamlined',
thumbnail: '/screens/17.jpg',
thumbnail: image17,
},
{
title: 'Conversions boosted',
thumbnail: '/screens/7.jpg',
thumbnail: image7,
},
{
title: 'ROI maximized',
thumbnail: '/screens/8.jpg',
thumbnail: image8,
},
{
title: 'Trends capitalized',
thumbnail: '/screens/9.jpg',
thumbnail: image9,
},
{
title: 'Clients satisfied',
thumbnail: '/screens/10.jpg',
thumbnail: image10,
},
{
title: 'Goals achieved',
thumbnail: '/screens/16.jpg',
thumbnail: image16,
},
{
title: 'Needs met',
thumbnail: '/screens/11.jpg',
thumbnail: image11,
},
{
title: 'Connections formed',
thumbnail: '/screens/12.jpg',
thumbnail: image12,
},
{
title: 'Briefs nailed',
thumbnail: '/screens/13.jpg',
thumbnail: image13,
},
];
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 6 additions & 0 deletions apps/mai/src/types/custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { StaticImageData } from 'next/image';

declare module '#/images/*' {
const src: StaticImageData;
export default src;
}
4 changes: 3 additions & 1 deletion apps/mai/src/ui/hero-parallax.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use client';

import type { StaticImageData } from 'next/image';

import React from 'react';
import Link from 'next/link';

Expand All @@ -21,7 +23,7 @@ export const HeroParallax = ({
}: {
screens: {
title: string;
thumbnail: string;
thumbnail: StaticImageData;
}[];
}) => {
const firstRow = screens.slice(0, 5);
Expand Down
3 changes: 2 additions & 1 deletion apps/mai/src/ui/screenshot.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MotionValue } from 'framer-motion';
import type { StaticImageData } from 'next/image';

import Image from 'next/image';

Expand All @@ -12,7 +13,7 @@ export const Screenshot = ({
}: {
screen: {
title: string;
thumbnail: string;
thumbnail: StaticImageData;
};
translate: MotionValue<number>;
}) => {
Expand Down
1 change: 0 additions & 1 deletion apps/nextjs/public/t3-icon.svg
Diff not rendered.
File renamed without changes.
1 change: 1 addition & 0 deletions apps/nextjs/src/app/icon.svg
Binary file removed apps/web/public/brilla-logo.png
Diff not rendered.
9 changes: 0 additions & 9 deletions apps/web/public/browserconfig.xml

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/public/icons/safari-pinned-tab.svg
Diff not rendered.
Binary file removed apps/web/public/opengraph-image.gif
Diff not rendered.
19 changes: 0 additions & 19 deletions apps/web/public/site.webmanifest

This file was deleted.

Binary file removed apps/web/public/yocxo.com-logo.png
Diff not rendered.
16 changes: 0 additions & 16 deletions apps/web/src/app/(site)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,27 +130,11 @@ export async function generateMetadata(): Promise<Metadata> {
type: 'website',
title: blogPageData.meta.title,
description: blogPageData.meta.description,
images: [
{
url: siteConfig.image.url,
width: siteConfig.image.width,
height: siteConfig.image.height,
alt: siteConfig.image.alt,
},
],
url: `${SITE_URL}/blog`,
},
twitter: {
title: blogPageData.meta.title,
description: blogPageData.meta.description,
images: [
{
url: siteConfig.image.url,
width: siteConfig.image.width,
height: siteConfig.image.height,
alt: siteConfig.image.alt,
},
],
},
};

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 5b746d6

Please sign in to comment.