Skip to content

Commit

Permalink
Add og-image, update meta tags, and set background color in document
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Feb 23, 2023
1 parent bfc5989 commit ff78dc5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ yarn-error.log*
# vercel
.vercel

/.vscode
# typescript
*.tsbuildinfo
next-env.d.ts
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
- [x] Redo README
- [x] Fix issue with generations not working
- [x] Add two dropdowns for what kind of room it is + dropdown for themes
- [ ] Deploy, assign domain, fix meta tags, add OG image with one of the genrated pics
- [x] Use new redis db for rate limiting
- [x] Deploy, assign domain, fix meta tags, add OG image with one of the genrated pics
- [ ] Make all dropdowns same length as upload box in /restore
- [ ] Send it to team/ai channel for feedback + tweet out a screenshot for hype
- [ ] Let replicate team know to keep it on when I launch

## Todos v1.5

- [ ] Use new redis db for rate limiting
- [ ] Some visual indication that it takes ~25s
- [ ] Sharability features - look at Replicate's project for inspo
- [ ] Add ability to generate shareable links
Expand Down
38 changes: 14 additions & 24 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,26 @@ import Document, { Head, Html, Main, NextScript } from "next/document";

class MyDocument extends Document {
render() {
let description = "Generate your dream room in seconds.";
let ogimage = "https://www.roomGPT.com/og-image.png";
let sitename = "roomGPT.com";
let title = "Dream Room Generator";

return (
<Html lang="en">
<Head>
<link rel="icon" href="/favicon.ico" />
<meta
name="description"
content="Restore your old face photos and keep the memories alive."
/>
<meta property="og:site_name" content="restorePhotos.io" />
<meta
property="og:description"
content="Restore your old face photos and keep the memories alive."
/>
<meta property="og:title" content="Face Photo Restorer" />
<meta name="description" content={description} />
<meta property="og:site_name" content={sitename} />
<meta property="og:description" content={description} />
<meta property="og:title" content={title} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Face Photo Restorer" />
<meta
name="twitter:description"
content="Restore your old photos and keep the memories alive."
/>
<meta
property="og:image"
content="https://restore-photos.vercel.app/og-image.png"
/>
<meta
name="twitter:image"
content="https://restore-photos.vercel.app/og-image.png"
/>
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta property="og:image" content={ogimage} />
<meta name="twitter:image" content={ogimage} />
</Head>
<body className="bg-[#17181C] text-white">
<body className="bg-black text-white">
<Main />
<NextScript />
</body>
Expand Down
Binary file modified public/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff78dc5

Please sign in to comment.