Skip to content

Commit

Permalink
feat: user meta updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Jan 10, 2024
1 parent ecc29c2 commit c7727d5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
? urls.map((sitemap) => ({
loc: `/${sitemap.type}/${sitemap.id}`,
lastmod: new Date().toISOString(),
changefreq: "weekly",
changefreq: "daily",
priority: 0.7,
}))
: [];
Expand Down
9 changes: 6 additions & 3 deletions src/pages/themes/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,18 @@ const CreateTheme = () => {
return (
<>
<Head>
<title property="og:title">Create theme - ThemeAI</title>
<title property="og:title">Generate Theme using AI - ThemeAI</title>
<meta
name="description"
property="og:description"
content="Create your theme with ThemeAI"
content="Generate your theme with ThemeAI using GPT4-Powered AI, customizable and free!. You can also export your theme and share it with others."
/>
<meta property="og:image" content="/og/create.png" />
</Head>
<div className="flex flex-1 flex-col">
<div
className="flex flex-1 flex-col"
aria-label="Generate your theme with ThemeAI using GPT4-Powered AI, customizable and free!. You can also export your theme and share it with others."
>
<div
className="flex fixed flex-col md:flex-row justify-between border-b-[0.5px] border-border bg-background gap-4 p-3 px-5 items-center z-40 shadow-md md:shadow-md"
style={{
Expand Down
9 changes: 6 additions & 3 deletions src/pages/themes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,18 @@ export default function Themes() {
return (
<>
<Head>
<title property="og:title">Themes - ThemeAI</title>
<title property="og:title">Browse Themes - ThemeAI</title>
<meta
name="description"
property="og:description"
content="Select AI-Enhanced Meaningful Themes for Your Web Design"
content="Explore and browse themes created by the community. Create your theme with ThemeAI and share it with others."
/>
<meta property="og:image" content="/og/themes.png" />
</Head>
<div className="flex bg-black/5 w-full">
<div
className="flex bg-black/5 w-full"
aria-label="Explore and browse themes created by the community. Create your theme with ThemeAI and share it with others."
>
{isLoading ? (
<div className="flex flex-col md:flex-row h-full md:flex-wrap p-5 overflow-y-auto lg:px-10 gap-6 w-full items-center md:items-start">
{new Array(10).fill(0).map((_, index) => (
Expand Down
18 changes: 11 additions & 7 deletions src/pages/user/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getUserStats,
unfollowUser,
} from "@/services/user";
import { useEffect, useState } from "react";
import { use, useEffect, useState } from "react";
import NiceAvatar from "react-nice-avatar";
import { useRouter } from "next/router";
import Typography from "@/components/ui/typography";
Expand Down Expand Up @@ -276,22 +276,26 @@ export default function User() {
</div>
);

const userInfo = user
? `Browse ${user.name} profile and theemes created by ${
user.name
} on ThemeAI${user.title ? ` | ${user.title}` : ""} ${
user.organization ? ` | ${user.organization}` : ""
}${user.location ? ` | ${user.location}` : ""}`
: "Browse profile and theemes created on ThemeAI";

return user ? (
<>
<Head>
<title property="og:title">{user.name} - ThemeAI</title>
<meta
name="description"
property="og:description"
content={`Browse ${user.name} profile and theemes created by ${user.name} on ThemeAI`}
/>
<meta name="description" property="og:description" content={userInfo} />
<meta property="og:image" content="/og/hero.png" />
<meta
property="og:url"
content={`https://themeai.io/user/${user.id}`}
/>
</Head>
<div className="flex w-full flex-col lg:flex-row">
<div className="flex w-full flex-col lg:flex-row" aria-label={userInfo}>
<div className="flex flex-col relative lg:fixed lg:h-full border-border border-r-[0.5px] w-full lg:w-[300px] items-center shadow-lg">
<div className="flex flex-col w-full p-6 pt-4 pb-0 lg:pb-6 items-center overflow-y-auto">
<div className="relative">
Expand Down

0 comments on commit c7727d5

Please sign in to comment.