DSC-McMaster-U / ai-journal

AI-assisted journaling and mood-tracking application
8 stars 0 forks source link

[TASK-1] Create the Journal Page UI #19

Open abedmohammed opened 1 week ago

abedmohammed commented 1 week ago

Task: Create the Journal Page UI

Goal:
Design the user interface for the journal page in our app. This is purely a front-end task and does not require implementing any saving functionality. The main purpose is to set up a visually appealing and user-friendly journal editor.

image


Requirements

  1. Page Setup

    • Route: Create the journal page at /journals/:uuid. For now, the uuid can be a placeholder (e.g., /journals/temp-id).
    • Exit Button: Include an exit button at the top-right corner to navigate away from the journal page.
  2. Editor Structure

    • Title Field:

      • Add a title field at the top of the page.
      • Display the title text in a larger font to stand out.
      • Initially, show a placeholder text prompting the user to add a title (e.g., “Enter a title…”).
    • Date Display:

      • Below the title, display the date of the created journal in a smaller font for context (e.g., “Wednesday, October 9, 2024”).
    • Body of the Document:

      • Implement a text editor below the date.
      • Use a library that supports rich text editing (WYSIWYG) or a more structured editor like Tiptap (e.g., similar to Notion’s editor).
      • The body should be flexible for users to write and format their journal entries as they like.

Implementation


Additional Notes

angefern commented 3 days ago

@haniyak28 how do you want to split up this task? Are you free to voice call sometime this weekend to get started?