Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* List of news posts, new post form * Post links * Add error state This prevents a 500 error if anything fails when fetching news, such as an inaccessible database * Change default font to Poppins * CSS cleanup Remove all of the unused CSS variables that existed in the sample NextJS landing page * Add horizontal dividers * Get session server-side for posting The declaration of custom types are actually recommended by the next-auth documentation, even though it might seem hacky to seemingly just override existing types. * Define dimensions for most font sizes Not applied to all parts of the site yet... * Start layouting in line with design This version does not fully look like what exists in the current design, but it is a definite improvement from what it used to look like. Tested and working with both light and dark theme. * Resolve nicks from Gamma, formatting We should *definitely* cache this later on * Better "New post" layout * Render post markdown * Don't mark divider as async * Mark button as inline-flex, expose event properly * Redirect on successful news post * Hide post button when not active in division Start creating an auth service to abstract specific permissions from other services * Show group written for correctly * Separate form for new post into components Also add ability to post for certain groups * Remove unnecessary news item from header * Styled dropdown list * Show news preview * Add buttons to edit and delete posts * Better post action button layout * Edit and remove posts, display edited date * Disallow non-owning users from editing news posts * Show post previews better * Update all packages to latest, ignore .env file * Run Prettier, remove unnecessary error expects --------- Co-authored-by: Oscar Eriksson <[email protected]>
- Loading branch information