Skip to content

Commit

Permalink
Make button pop a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
Willdotwhite committed Jan 19, 2024
1 parent befcfe9 commit 1235021
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 6 additions & 0 deletions ui/src/pages/post/Post.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
}

.post__body {
@apply mb-12;

.post__body--description {
@apply mb-4 border-y-2 py-4;

Expand All @@ -27,6 +29,10 @@

.post__footer {
margin: 0 auto;

.post__footer--contact-button {
@apply mb-4 px-8 py-4 border-theme-l-7 bg-theme-l-7 rounded-xl text-grey-900 font-bold inline-flex cursor-pointer;
}
}
}
}
3 changes: 1 addition & 2 deletions ui/src/pages/post/components/DiscordMessageButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ export const DiscordMessageButton: React.FC<{
isLoggedIn,
}) => {
return (
<span className="mb-6 px-6 py-2 border-theme-l-7 bg-theme-l-7 rounded-xl text-grey-900 font-bold inline-flex cursor-pointer">
<span className="post__footer--contact-button">
<a
target="_blank"
rel="noreferrer"
href={isLoggedIn ? `https://discord.com/users/${authorId}` : undefined}
onClick={!isLoggedIn ? login : undefined}
className="text-sm"
>
Message {author} on Discord{' '} {!isLoggedIn && <>(Log in to continue)</>}
</a>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/post/components/DiscordPingButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DiscordPingButton: React.FC<{
}) => {
return (
<>
<p className="mb-2">{message}</p>
<p className="mb-4">{message}</p>
<span className="mb-6 p-2 rounded inline-flex cursor-pointer rounded-xl border border-theme-l-7 text-theme-l-7">
<a
target="_blank"
Expand Down
9 changes: 2 additions & 7 deletions ui/src/pages/post/components/JoinDiscordButton.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
export const JoinDiscordButton = () => {
return (
<span className="mb-6 px-6 py-2 border-theme-l-7 bg-theme-l-7 rounded-xl text-grey-900 font-bold inline-flex cursor-pointer">
<a
target="_blank"
rel="noreferrer"
href={import.meta.env.VITE_DISCORD_INVITE_URL}
className="text-sm"
>
<span className="post__footer--contact-button">
<a target="_blank" rel="noreferrer" href={import.meta.env.VITE_DISCORD_INVITE_URL} className="text-sm">
{`Join the ${import.meta.env.VITE_DISCORD_NAME} server to send messages to other jammers!`}
</a>
</span >
Expand Down

0 comments on commit 1235021

Please sign in to comment.