fix: do rebranding

This commit is contained in:
Kirill Siukhin 2025-07-19 20:08:42 +05:00
parent 51c7c00063
commit e8be7fa9af
8 changed files with 35 additions and 10 deletions

View File

@ -1,2 +1,8 @@
# Database connection string
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
# JWT secret for signing tokens
JWT_SECRET=verysecret
# Application name
APP_NAME=notra

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "rhyme",
"name": "notra",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rhyme",
"name": "notra",
"version": "0.1.0",
"dependencies": {
"bcrypt": "^6.0.0",

View File

@ -1,5 +1,5 @@
{
"name": "rhyme",
"name": "notra",
"version": "0.1.0",
"private": true,
"scripts": {

View File

@ -1,9 +1,14 @@
import { Metadata } from "next";
import AuthForm from "@/components/forms/AuthForm";
const APP_NAME = process.env.APP_NAME;
if (!APP_NAME) {
throw new Error("APP_NAME environment variable is not set");
}
export const metadata: Metadata = {
title: "Authenticate - Rhyme",
description: "Register or log into Rhyme account to save, show and load notes",
title: "Authenticate - " + APP_NAME,
description: `Register or log into ${APP_NAME} account to save, show and load notes`,
};
export default function Auth() {
@ -15,7 +20,7 @@ export default function Auth() {
<AuthForm isRegister />
</div>
<div className="text-center text-sm text-neutral-400 mt-6">
<p>Welcome to Rhyme!</p>
<p>Welcome to {APP_NAME}!</p>
<p>Free service for writing and saving notes, lyrics, poetry, etc</p>
<p>Made with by <a href="https://misterkirill.com" className="font-bold hover:underline">Kirill Siukhin</a></p>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -3,13 +3,18 @@ import { Noto_Sans_Mono } from "next/font/google";
import Header from "@/components/Header";
import "./globals.css";
const APP_NAME = process.env.APP_NAME;
if (!APP_NAME) {
throw new Error("APP_NAME environment variable is not set");
}
const notoSansMono = Noto_Sans_Mono({
variable: "--noto-sans-mono",
subsets: ["latin", "cyrillic"],
});
export const metadata: Metadata = {
title: "Rhyme",
title: APP_NAME,
description: "Free service for writing and saving notes, lyrics, poetry and more",
};

View File

@ -3,9 +3,13 @@ import { requireAuth } from "@/app/actions/auth";
import { getNotes } from "@/app/actions/notes";
import NoteCard from "@/components/ui/NoteCard";
const APP_NAME = process.env.APP_NAME;
if (!APP_NAME) {
throw new Error("APP_NAME environment variable is not set");
}
export const metadata: Metadata = {
title: "Notes - Rhyme",
description: "View and edit your notes",
title: "Notes - " + APP_NAME,
};
export default async function Notes() {

View File

@ -4,13 +4,18 @@ import { getAuth, logOut } from "@/app/actions/auth";
import { createNote } from "@/app/actions/notes";
import HeaderButton from "./ui/HeaderButton";
const APP_NAME = process.env.APP_NAME;
if (!APP_NAME) {
throw new Error("APP_NAME environment variable is not set");
}
export default async function Header() {
const user = await getAuth();
return (
<header className="flex items-center gap-6 m-4">
<Link href={user ? "/notes" : "/"}>
<HeaderButton title="rhyme" className="bg-sky-600 hover:bg-sky-500" />
<HeaderButton title={APP_NAME!} />
</Link>
{user && (