Skip to content

Commit

Permalink
Style, accessibility, and performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
brundonsmith committed Nov 10, 2023
1 parent 2af8807 commit f133d57
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 2 additions & 1 deletion front-end/public/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>My Vibecamp</title>
<meta name="description" content="Let's vibe, y'all">

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> -->

<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/vibecamp-squircle.png" />
Expand Down
10 changes: 3 additions & 7 deletions front-end/src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default observer(() => {
<Col padding={20}>
<Stripes position='top-left' />

<img src="vibecamp.png" className='logo' />
<img src="vibecamp.png" className='logo' alt='Vibecamp logo' />

<Spacer size={24} />

Expand All @@ -86,18 +86,14 @@ export default observer(() => {
{...fieldToProps(loginForm.fields.password)}
/>

{loginOrSignup.state.kind === 'error' &&
<>
</>}

<Spacer size={8} />

<ErrorMessage
error={
loginOrSignup.state.kind !== 'error' ? undefined :
typeof loginOrSignup.state.error === 'string'? loginOrSignup.state.error :
typeof loginOrSignup.state.error === 'string' ? loginOrSignup.state.error :
DEFAULT_FORM_ERROR
}/>
} />

<Spacer size={24} />

Expand Down
4 changes: 2 additions & 2 deletions front-end/src/components/Tickets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (awaitingPurchaseRecord) {
export default observer(() => {
const state = useObservableState({
code: '',
purchaseModalState: 'none' as 'none' | 'selection' | 'payment'
purchaseModalState: 'selection' as 'none' | 'selection' | 'payment'
})

const closePurchaseModal = useStable(() => () => {
Expand All @@ -69,7 +69,7 @@ export default observer(() => {
}, { lazy: true })

const stripeOptions = useRequest(async () => {
if (Object.values(purchaseFormState.purchases).some(count => count > 0)) {
if (Store.loggedIn && Object.values(purchaseFormState.purchases).some(count => count > 0)) {
const { response } = await vibefetch(
Store.jwt,
'/purchase/create-intent',
Expand Down
4 changes: 2 additions & 2 deletions front-end/src/components/core/Stripes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
}

&.bottom-right {
bottom: 50;
bottom: 50px;
right: -50vw;
transform: scale(-1) rotate(-20deg);
}
&.top-left {
top: 0;
top: 0px;
left: -50vw;
transform: rotate(-20deg);
}
Expand Down

0 comments on commit f133d57

Please sign in to comment.