Commit Graph

125 Commits

Author SHA1 Message Date
Ben Visness 51ad8d03d4 Add interactive link previews 2024-07-02 21:23:39 -05:00
Asaf Gartner bab955aaff Blog posts are useable 2024-07-02 13:20:05 +03:00
Ben Visness a98cce4b4b wew edit link wew 2024-07-01 22:46:38 -05:00
Asaf Gartner 908c8b02f8 Link editor 2024-07-01 02:55:46 +03:00
Ben Visness 46afc573f6 Add project authors, improve user profiles 2024-06-29 14:18:26 -05:00
Ben Visness 3b33565cd9 A little TODO maintenance 2024-06-29 11:40:38 -05:00
Ben Visness a6cfeb9c95 Various project and login improvements 2024-06-29 11:39:18 -05:00
Ben Visness 06b270514c Overhaul CSS vars 2024-06-27 17:34:09 -05:00
Ben Visness 163eba8475 Add all tabs to home page 2024-06-24 13:36:50 -05:00
Ben Visness fe051080a6 Random styles 2024-06-24 12:24:30 -05:00
Ben Visness f42990ef96 Improve appearance of snippets per new styles 2024-06-23 13:05:36 -05:00
Asaf Gartner 497fda3251 Snippet page and edit 2024-06-23 17:12:20 +03:00
Ben Visness 81cb17b6eb Man whatever 2024-06-23 08:40:50 -05:00
Ben Visness a0bd55f3d2 Add login widget when not logged in 2024-06-21 20:47:10 -05:00
Ben Visness 86825f1c09 Add projects / following UI to home page 2024-06-21 20:13:20 -05:00
Ben Visness 04bc4e5035 Remove light/dark theme settings entirely
There is simply no need any more; system light/dark preferences handle this fine.
2024-06-20 18:09:16 -05:00
Ben Visness 3ff6ba6563 Remove showcase, obliterate landing stuff 2024-06-20 18:04:39 -05:00
Asaf Gartner 8cd968a495 Some more screens 2024-06-20 22:01:11 +03:00
Ben Visness 9537fef995 Update a bunch of colors for light mode 2024-06-17 19:39:21 -05:00
Ben Visness d0c7605029 Reworked project edit page (no preview yet) 2024-06-07 10:30:01 -04:00
Ben Visness be7440acce New project home pages (incomplete) 2024-06-07 10:27:40 -04:00
Ben Visness 1a0be1912e Implement new header / footer (mostly) 2024-06-07 10:27:20 -04:00
Ben Visness 19a8c6bf0d Mostly convert old styles to plain CSS
wow there is a lot of garbage in here
2024-06-07 10:27:20 -04:00
Ben Visness 04db4ad709 Add email newsletter signup to blogs 2024-05-20 17:00:03 -05:00
Asaf Gartner 2065bad860 Added tooltip to project owners on the LJ page. 2024-03-14 02:31:59 +02:00
Ben Visness 5dd4880d4c heaaaghghghghg jam time yayaya 2024-03-12 23:20:35 -05:00
Ben Visness ee491c7696 Learning jam final design phase 1 2024-03-12 21:13:05 -05:00
Asaf Gartner b5d4fe9ba2 Learning jam scaffolding 2024-02-08 22:21:01 +02:00
Asaf Gartner 8bc4b5a66c Added calendars 2024-01-28 19:12:59 +02:00
Ben Visness 7b2d016fe2 Add agus_dev's submission 2023-07-12 18:06:53 -05:00
Ben Visness 8aa18901b2 Add NCommander Win98 submission 2023-06-19 14:20:44 -05:00
Ben Visness 8be575875d Add time machine submissions page 2023-06-06 13:23:54 -05:00
Ben Visness f8b0d9ba85 Styles upon styles 2023-05-31 23:10:42 -05:00
Ben Visness cdacc5b3a0 Use new thumbnails 2023-05-18 22:07:14 -05:00
bvisness 0210a0784b Add Discord login (#106)
This leverages our existing Discord OAuth implementation. Any users with a linked Discord account will be able to log in immediately. When logging in, we request the `email` scope in addition to `identity`, so existing users will be prompted one time to accept the new permissions. On subsequent logins, Discord will skip the prompt.

When linking your Discord account to an existing HMN account, we continue to only request the `identity` scope, so we do not receive the user's Discord email.

Both login and linking go through the same Discord OAuth callback. All flows through the callback try to achieve the same end goal: a logged-in HMN user with a linked Discord account.

Linking works the same as it ever has. Login, however, is different because we do not have a session ID to use as the OAuth state. To account for this, I have added a `pending_login` table that stores a secure unique ID and the eventual destination URL. These pending logins expire after 10 minutes. When we receive the OAuth callback, we look up the pending login by the OAuth `state` and immediately delete it. The destination URL will be used to redirect the user to the right place.

If we have a `discord_user` entry for the OAuth'd Discord user, we immediately log the user into the associated HMN account. This is the typical login case. If we do not have a `discord_user`, but there is exactly one HMN user with the same email address as the Discord user, we will link the two accounts and log into the HMN account.

(It is possible for multiple HMN accounts to have the same email, because we don't have a uniqueness constraint there. We fail the login in this case rather than link to the wrong account.)

Finally, if no associated HMN user exists, a new one will be created. It will use the Discord user's username, email, and avatar. This user will have no password, but they can set or reset a password through the usual flows.

Co-authored-by: Ben Visness <bvisness@gmail.com>
Reviewed-on: hmn/hmn#106
2023-05-06 19:38:50 +00:00
Ben Visness e4dd15d248 Add all jams index 2023-04-22 11:26:07 -05:00
Ben Visness b7d4883c6c Make news posts look a little nicer 2023-04-13 17:53:36 -05:00
Jake Mason df253d0a33 Some more basic dropdown a11y considerations 2023-01-16 23:02:36 -05:00
Jake Mason ad904de16b Removing hrefs like this is breaks a11y entirely 2023-01-16 22:24:44 -05:00
Jake Mason 922d6283f8 Jump to content link for a11y 2023-01-16 22:22:23 -05:00
Asaf Gartner 6d65785cef Changed the url for handmadedev show 2022-12-16 06:59:57 +02:00
Ben Visness 9b3a972e37 Rework about page, finally
Start foundation / about page work

Add some job descriptions

Add Advocacy role

Make things look barely tolerable

Cloin'd

Better About intro

no fundo

Link from manifesto

swanky changes
2022-12-14 17:49:08 -06:00
Ben Visness 084b13ae34 ...including the nav and stuff 2022-11-05 16:23:12 -05:00
Asaf Gartner 851f9e0f67 Fixed small logo css 2022-10-20 13:45:57 +03:00
Ben Visness 168b210c5b Restore the library since we're not actually rolling out education yet 2022-09-10 12:54:26 -05:00
bvisness d2b34cb87d Initial version of education content (#90)
Co-authored-by: Ben Visness <bvisness@gmail.com>
Reviewed-on: hmn/hmn#90
2022-09-10 16:29:57 +00:00
Asaf Gartner 822a489c09 Don't center file links in snippets. 2022-08-09 12:33:52 +03:00
Ben Visness 7ea11ebd51 Bam that's the rest of the todo list 2022-08-06 23:43:15 -05:00
Ben Visness 9f88ce1223 something something colors 2022-08-06 23:12:23 -05:00
Ben Visness 4289a1e27a Improvements to snippet edit 2022-08-06 22:32:29 -05:00