Skip to content

Commit

Permalink
Shortened the title, change on load
Browse files Browse the repository at this point in the history
The title of a web page also appears in the tab, which we would like to be shorter. Client-side change is used with useEffect to just set it to "ChordSeqAI". The original title was also shortened to make it easier to digest.
  • Loading branch information
PetrIvan committed Feb 17, 2024
1 parent 9b2b4ef commit ea3423b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const jsonLd = {

export const metadata: Metadata = {
metadataBase: new URL("https://chordseqai.com"),
title: "ChordSeqAI: Your Open-Source Chord Progression AI Copilot",
title: "ChordSeqAI: Your Chord Progression AI Copilot",
description:
"Compose beautiful chord progressions in your browser, with the help of AI, for free. Open-source project, code available on GitHub.",
manifest: "/manifest.json",
Expand Down
1 change: 1 addition & 0 deletions src/components/landing_page/quick_buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function QuickButtons() {
const [isMobile, setIsMobile] = useState(false);

useEffect(() => {
document.title = "ChordSeqAI"; // Change the title when the page loads
const userAgent = navigator.userAgent;
const selectors = getSelectorsByUserAgent(userAgent);
setIsMobile(selectors.isMobile);
Expand Down

0 comments on commit ea3423b

Please sign in to comment.