Skip to content

Commit

Permalink
feat: add how it works page
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Dec 25, 2022
1 parent 25a8988 commit 6b12df1
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default function Footer() {
<SocialButton href="mailto:[email protected]">
<MdAlternateEmail />
</SocialButton>
<Text fontSize="lg" fontWeight="bold">
<Text
display={{ base: "none", sm: "block" }}
fontSize="lg"
fontWeight="bold"
>
Photoshot.
</Text>
</Stack>
Expand Down
13 changes: 10 additions & 3 deletions src/pages/faq.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PageContainer from "@/components/layout/PageContainer";
import { Link, List, ListItem, Text, VStack } from "@chakra-ui/react";
import { Text, VStack } from "@chakra-ui/react";
import Link from "next/link";
import React from "react";

const Terms = () => {
Expand Down Expand Up @@ -73,11 +74,17 @@ const Terms = () => {
any of the data or content associated with your account.
</Text>
<Text>
Please be aware that only the data on Photoshot servers will be
Please be aware that only the data on Photoshot servers will be
deleted. Data that was transmitted to Replicate will not be deleted.
You would have to contact them in order to do so, according to their
You would have to contact them in order to do so, according to their{" "}
<Link href="https://replicate.com/privacy">Terms of Service</Link>.
</Text>
<Text fontWeight="bold" fontSize="xl">
❓ How it works?
</Text>
<Text>
See <Link href="/how-it-works">this page</Link>
</Text>
</VStack>
</PageContainer>
);
Expand Down
65 changes: 65 additions & 0 deletions src/pages/how-it-works.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import PageContainer from "@/components/layout/PageContainer";
import { Text, VStack } from "@chakra-ui/react";
import Head from "next/head";
import React from "react";

const HowItWorks = () => {
return (
<PageContainer maxWidth="container.md">
<Head>
<title>AI Avatar: how it works - Photoshot</title>
</Head>

<VStack
alignItems="flex-start"
borderRadius="xl"
p={10}
backgroundColor="white"
spacing={4}
>
<Text
fontSize={{ base: "3xl", md: "4xl" }}
fontWeight="extrabold"
as="h1"
>
AI Avatar: how it works?
</Text>
<Text>
Have you heard of Dreambooth? {"It's"} a new AI tool that uses the
stable diffusion model to create avatars that look just like you! The
stable diffusion model is a type of generative model that is used to
create images that are realistic and visually appealing.
</Text>
<Text>
It works by diffusing the generated images through a series of
filters, which smooth out the image and make it more lifelike. This
process is repeated multiple times, with the generated images becoming
increasingly smooth and realistic with each iteration. Dreambooth uses
the stable diffusion model to create avatars that look like you, based
on a set of input data.
</Text>
<Text>
{"It's"} trained on a large dataset of images, and uses this training
to generate new images that are similar to the ones in the dataset.
The discriminator is used to determine whether the generated images
are real or fake. One of the benefits of Dreambooth is that it can
create high-quality avatars with relatively little training data. This
makes it a great option for situations where there is a limited amount
of data available, or when the data is too large to be processed by
traditional generative models.
</Text>
<Text>
Overall, Dreambooth is a powerful AI tool that uses the stable
diffusion model to create avatars that look just like you. Its use of
diffusion to smooth out and refine the generated images makes it an
effective and efficient alternative to traditional generative models.
So, it has the potential to revolutionize the way we create avatars
and could have a wide range of applications in fields such as computer
graphics, machine learning, and more.
</Text>
</VStack>
</PageContainer>
);
};

export default HowItWorks;
5 changes: 4 additions & 1 deletion src/pages/sitemap.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ function generateSiteMap(prompts: TPrompt[]) {
<url>
<loc>https://photoshot.app/faq</loc>
</url>
<url>
<url>
<loc>https://photoshot.app/prompts</loc>
</url>
<url>
<loc>https://photoshot.app/how-it-works</loc>
</url>
${prompts
.map(({ slug }) => {
return `
Expand Down

1 comment on commit 6b12df1

@vercel
Copy link

@vercel vercel bot commented on 6b12df1 Dec 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.