Skip to content

Commit

Permalink
Add header text for session-history
Browse files Browse the repository at this point in the history
  • Loading branch information
dloh2236 committed Nov 9, 2024
1 parent 94381d8 commit 1d22cdd
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion frontend/peerprep/components/greetingmessageheader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,31 @@ export const GreetingMessageHeader = ({ user }: GreetingMessageProps) => {
);
}

if (currentPath.startsWith("/session-history")) {
return (
<div
className={`${fontFun.variable} text-black dark:text-white flex items-center`}
style={{
fontFamily: "var(--font-fun)",
fontSize: "20px",
margin: "10px",
}}
>
Mistakes are only mistakes if you don't learn from them 🧑‍💻
</div>
);
}

// Default message
return (
<div>
<div
className={`${fontFun.variable} text-black dark:text-white flex items-center`}
style={{
fontFamily: "var(--font-fun)",
fontSize: "20px",
margin: "10px",
}}
>
<p className="bg-gradient-to-r from-indigo-500 via-violet-500 to-fuchsia-500 bg-clip-text text-transparent font-semibold">
{user}
</p>
Expand Down

0 comments on commit 1d22cdd

Please sign in to comment.