hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Create styles directory. #36

Closed hiyaryan closed 9 months ago

hiyaryan commented 9 months ago

This PR extends PR #35 which is supposed to only add the Home page. These PRs may likely get out of sync so this PR might become a sort of playground, or it may be merged into #35.

The primary purpose of this PR is to determine an approach to applying styles to components. Styles will likely be applied either through using the same named style sheets (the name of the component with .css as opposed to .jsx then importing into the component), or through Styled components (making components with a style that can wrap other components in).

The initial commits of this PR aim to pull inline styles out and either into their own css files, styled components, or up to the parent component such that it may then be applied to all of its sibling components.

While pulling styles up might seem to be a more efficient approach and more CSS like where styles are applied in a cascading way, it might be easier to use styled components (even if it may add a few extra lines of code) to improve readability and enable tracking which styles are being applied to what more easily.

hiyaryan commented 9 months ago

This PR does the following.