Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Happy Thoughts by Johanna Eriksson #94

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    5370e78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9eaf584 View commit details
    Browse the repository at this point in the history
  3. Add GitHubLogo in svg format. Update App.jsx with putting the Header …

    …and Footer inside a div. Add color to the Footer text.
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    938a37a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b6e281d View commit details
    Browse the repository at this point in the history
  5. Add default styling for text. Add default styling for HappyBoard and …

    …HappyWall. Add sections in the index.css file for better overview. Add HappyBoard and HappyWall components to App.jsx.
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    2601dab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    33b5005 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7a3bd49 View commit details
    Browse the repository at this point in the history
  8. Add Font-family Courier, monospace to h1, h2, h3, h4 and p. Changed s…

    …ize in input field and submit button.
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    c05eb5f View commit details
    Browse the repository at this point in the history
  9. Switch from input field to textarea for a multi-line text input. Add …

    …BASE_URL and import useEffect and useState to the HappyWall component, but as comments to avoid errors.
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    dd4cec0 View commit details
    Browse the repository at this point in the history
  10. Remove all default styling for the button. Add font-family Courier, m…

    …onospace to the button, as well as border-radius to make it oval, and background-color grey.
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    17fcda5 View commit details
    Browse the repository at this point in the history
  11. Style the board-form by giving it a shadow, change size, center it an…

    …d add a border around it
    joheri1 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    6222cd6 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    38daf12 View commit details
    Browse the repository at this point in the history
  2. Import useEffect and useState hooks. Define BASE_URL for the API. Use…

    … useEffect to fetch Happy thoughts from the BASE_URL using an async/await function. Store the fetched thoughts in the 'thoughts' state using the setThoughts function. Include an empty dependency array in useEffect to ensure the fetch only runs once when the component mounts, preventing repeated API calls.
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f2fcc81 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fca5369 View commit details
    Browse the repository at this point in the history
  4. Add return statement to render the happyPosts. Add className posts-co…

    …ntainer for the styling. Map through the happyPosts array and use post._id as a unique key for each item/post. Add className post-box to display the message and hearts (likes). Add styling to the post-boxes and post-container.
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    0a74b4b View commit details
    Browse the repository at this point in the history
  5. Add async/await function to fetch likes from API and POST likes. In t…

    …he return, add onClick function to add likes to a unique post
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    86a8fe0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8aa5138 View commit details
    Browse the repository at this point in the history
  7. Update Like button with notLikedClass and likedClass. Add styling to …

    …notLinkedClass and likedClass.
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    c44a199 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    51a37b6 View commit details
    Browse the repository at this point in the history
  9. Add className heart-icon to target the heart icon for styling. Change…

    … size on the heart-icon. Style the like button.
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    23e03b9 View commit details
    Browse the repository at this point in the history
  10. Use useState to set loading on submit. Create a new component for the…

    … BASE_URL that is used in the two components HappyBoard and HappyWall. Use Async/await to fetch BASE_URL and POST the body to the HappyWall. If response is ok, clear input field. Add Error handling.
    joheri1 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f254b5a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bf65327 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    641f444 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    203caa8 View commit details
    Browse the repository at this point in the history
  3. Change size on input-field/Text area for Desktop. Also add resize non…

    …e to the input field to prevent end-user from changing size of the field.
    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    12c35de View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a717177 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    abbfbd7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    79c28a7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8c4be0f View commit details
    Browse the repository at this point in the history
  8. Update useful sources in README. Change color on heart icon when uncl…

    …icked to a darker grey for a higher contrast ratio.
    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    f39d471 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    21db403 View commit details
    Browse the repository at this point in the history
  10. Add time stamp to HappyWall posts. Set the format and how the date/ti…

    …me should be shown to the user based on the end user location. Add a new container, like-container, to fix the styling.
    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ece414e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b253987 View commit details
    Browse the repository at this point in the history
  12. Add more styling to the CSS.

    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    898d301 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e124798 View commit details
    Browse the repository at this point in the history
  14. Push changes, if any unpushed

    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    1dfc8c4 View commit details
    Browse the repository at this point in the history
  15. Add more text to README

    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    43d9893 View commit details
    Browse the repository at this point in the history
  16. Add two more links to README

    joheri1 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    0836ec2 View commit details
    Browse the repository at this point in the history