|
1 | 1 | "use client"; |
2 | 2 |
|
3 | 3 | import React from "react"; |
| 4 | +import { useRouter } from "next/navigation"; |
| 5 | +import Image from "next/image"; |
4 | 6 |
|
5 | 7 | export default function NotebookLayout({ children }) { |
| 8 | + const router = useRouter(); |
| 9 | + |
6 | 10 | return ( |
7 | 11 | <div className="w-full bg-gradient-to-br from-gray-50 to-gray-100 min-h-screen font-[family-name:var(--font-geist-mono)]"> |
8 | 12 | <div className="w-full py-4 px-4 border-b border-slate-200 bg-white/40 backdrop-blur-sm"> |
9 | | - <div className="max-w-full mx-auto flex items-start justify-between gap-4 relative"> |
10 | | - <div> |
11 | | - <h1 className="text-xl font-bold text-slate-800"> |
12 | | - Notebook |
13 | | - </h1> |
14 | | - <p className="text-xs text-slate-500 mt-0.5"> |
15 | | - Interactive Python notebook |
16 | | - </p> |
| 13 | + <div className="max-w-full mx-auto flex items-center justify-between gap-4 relative"> |
| 14 | + <div className="flex items-center gap-4"> |
| 15 | + <button |
| 16 | + onClick={() => router.back()} |
| 17 | + className="flex items-center gap-2 group text-sm font-medium text-slate-600 hover:text-slate-800 transition-colors duration-200" |
| 18 | + > |
| 19 | + <svg |
| 20 | + xmlns="http://www.w3.org/2000/svg" |
| 21 | + fill="none" |
| 22 | + viewBox="0 0 24 24" |
| 23 | + strokeWidth={1.5} |
| 24 | + stroke="currentColor" |
| 25 | + className="w-5 h-5" |
| 26 | + > |
| 27 | + <path |
| 28 | + strokeLinecap="round" |
| 29 | + strokeLinejoin="round" |
| 30 | + d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h17.25" |
| 31 | + /> |
| 32 | + </svg> |
| 33 | + Back |
| 34 | + </button> |
| 35 | + <div className="flex items-center gap-2"> |
| 36 | + <div className="bg-foreground text-background p-1.5 rounded-lg rotate-[-4deg] group-hover:rotate-0 transition-transform duration-200"> |
| 37 | + <Image |
| 38 | + src="/EvOCicon.png" |
| 39 | + alt="EvOC Icon" |
| 40 | + width={24} |
| 41 | + height={24} |
| 42 | + className="invert dark:invert-0" |
| 43 | + /> |
| 44 | + </div> |
| 45 | + <div> |
| 46 | + <h1 className="text-xl font-bold text-slate-800"> |
| 47 | + Notebook |
| 48 | + </h1> |
| 49 | + <p className="text-xs text-slate-500 mt-0.5"> |
| 50 | + Interactive Python notebook |
| 51 | + </p> |
| 52 | + </div> |
| 53 | + </div> |
17 | 54 | </div> |
18 | | - <div className="absolute right-0 top-0 p-1 px-2 bg-yellow-50 border border-yellow-200 text-yellow-800 text-xs rounded-md whitespace-nowrap"> |
| 55 | + <div className="p-1 px-2 bg-yellow-50 border border-yellow-200 text-yellow-800 text-xs rounded-md whitespace-nowrap"> |
19 | 56 | Tip: Top Markdown cell sets title. |
20 | 57 | </div> |
21 | 58 | </div> |
|
0 commit comments