carnet
This commit is contained in:
parent
b14908a6c0
commit
490cabde2d
@ -49,7 +49,7 @@ export const Editor: React.FC<EditorProps> = ({ note, onSave }) => {
|
||||
type="text"
|
||||
value={title}
|
||||
onChange={handleTitleChange}
|
||||
placeholder="Note title"
|
||||
placeholder="Titre"
|
||||
className="w-full text-xl font-semibold text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none bg-transparent"
|
||||
/>
|
||||
</div>
|
||||
@ -80,7 +80,7 @@ export const Editor: React.FC<EditorProps> = ({ note, onSave }) => {
|
||||
<textarea
|
||||
value={content}
|
||||
onChange={handleContentChange}
|
||||
placeholder="Start writing..."
|
||||
placeholder="Ecrire..."
|
||||
className="w-full h-full resize-none focus:outline-none bg-transparent text-carnet-text-primary placeholder-carnet-text-muted"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@ -20,7 +20,7 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
|
||||
type="text"
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
placeholder="Search tags..."
|
||||
placeholder="Recherché..."
|
||||
className="w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary"
|
||||
/>
|
||||
<Search className="absolute left-3 top-2.5 h-4 w-4 text-carnet-text-muted" />
|
||||
@ -44,7 +44,7 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
|
||||
onClick={() => onLayoutChange?.(PaneLayout.ItemSelection)}
|
||||
>
|
||||
<BookOpen className="w-4 h-4 mr-3" />
|
||||
<span className="text-sm">Notes</span>
|
||||
<span className="text-sm">Page</span>
|
||||
<span className="ml-auto text-xs text-carnet-text-muted">54</span>
|
||||
</div>
|
||||
|
||||
@ -53,14 +53,14 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
|
||||
onClick={() => onLayoutChange?.(PaneLayout.TagSelection)}
|
||||
>
|
||||
<Star className="w-4 h-4 mr-3" />
|
||||
<span className="text-sm">Starred</span>
|
||||
<span className="text-sm">Important</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer text-carnet-text-primary"
|
||||
>
|
||||
<Archive className="w-4 h-4 mr-3" />
|
||||
<span className="text-sm">Archived</span>
|
||||
<span className="text-sm">Archivé</span>
|
||||
<span className="ml-auto text-xs text-carnet-text-muted">18</span>
|
||||
</div>
|
||||
|
||||
@ -69,21 +69,21 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
|
||||
onClick={() => onLayoutChange?.(PaneLayout.TableView)}
|
||||
>
|
||||
<Trash2 className="w-4 h-4 mr-3" />
|
||||
<span className="text-sm">Trash</span>
|
||||
<span className="text-sm">Corbeille</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Favorites Section */}
|
||||
<div className="mt-6 px-3">
|
||||
<h3 className="px-3 mb-2 text-xs font-medium text-carnet-text-muted uppercase">Favorites</h3>
|
||||
<h3 className="px-3 mb-2 text-xs font-medium text-carnet-text-muted uppercase">Vues</h3>
|
||||
<div className="space-y-0.5">
|
||||
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">
|
||||
<span className="text-sm text-carnet-text-primary">Blogs</span>
|
||||
<span className="text-sm text-carnet-text-primary">Journal</span>
|
||||
<span className="ml-auto text-xs text-carnet-text-muted">2</span>
|
||||
</div>
|
||||
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">
|
||||
<span className="text-sm text-carnet-text-primary">Bugs</span>
|
||||
<span className="text-sm text-carnet-text-primary">Santé</span>
|
||||
<span className="ml-auto text-xs text-carnet-text-muted">1</span>
|
||||
</div>
|
||||
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">
|
||||
|
||||
4
types/carnet.d.ts
vendored
4
types/carnet.d.ts
vendored
@ -4,7 +4,6 @@ declare module "@/components/carnet/navigation" {
|
||||
interface NavigationProps {
|
||||
onLayoutChange: (layout: PaneLayout) => void;
|
||||
}
|
||||
export const Navigation: React.FC<NavigationProps>;
|
||||
}
|
||||
|
||||
declare module "@/components/carnet/notes-view" {
|
||||
@ -19,7 +18,6 @@ declare module "@/components/carnet/notes-view" {
|
||||
interface NotesViewProps {
|
||||
onNoteSelect: (note: Note) => void;
|
||||
}
|
||||
export const NotesView: React.FC<NotesViewProps>;
|
||||
}
|
||||
|
||||
declare module "@/components/carnet/editor" {
|
||||
@ -33,7 +31,6 @@ declare module "@/components/carnet/editor" {
|
||||
note: Note | null;
|
||||
onSave: (note: Note) => void;
|
||||
}
|
||||
export const Editor: React.FC<EditorProps>;
|
||||
}
|
||||
|
||||
declare module "@/components/carnet/panel-resizer" {
|
||||
@ -43,7 +40,6 @@ declare module "@/components/carnet/panel-resizer" {
|
||||
onDragEnd: () => void;
|
||||
onDrag: (e: MouseEvent) => void;
|
||||
}
|
||||
export const PanelResizer: React.FC<PanelResizerProps>;
|
||||
}
|
||||
|
||||
declare module "@/hooks/use-media-query" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user