Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings Page #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.local.save
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be added to git but also not sure if this file should exist in first place lol

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_SUPABASE_URL=https://paifoskjfzbjbiehraqj.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBhaWZvc2tqZnpiamJpZWhyYXFqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mjc3Mjg2OTQsImV4cCI6MjA0MzMwNDY5NH0.OpGd0GVmwl0ts_2jSi2LvldGRPEoRRvzcaFWxF-DC6s
14 changes: 10 additions & 4 deletions app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import React, { useState } from 'react';
import MenuBar from '@/components/MenuBar/MenuBar';
import SettingsCard from '@/components/SettingsCard/SettingsCard';
import SettingsCardPersonalDetails from '@/components/SettingsCard/SettingsCardPersonalDetails';
import SettingsCardNotifications from '@/components/SettingsCard/SettingsCardNotifications';
import SettingsCardAccomodations from '@/components/SettingsCard/SettingsCardAccomodations';
import SettingsCardShowPreferences from '@/components/SettingsCard/SettingsCardShowPreferences';
import SettingsCardPerformanceInterest from '@/components/SettingsCard/SettingsCardPerformanceInterest';
import * as styles from './styles';

export default function SettingsPage() {
Expand All @@ -13,9 +17,11 @@ export default function SettingsPage() {
<MenuBar setMenuExpanded={setMenuExpanded} />
<styles.Page $menuExpanded={menuExpanded}>
<styles.SettingDiv>
<SettingsCard />
<SettingsCard />
<SettingsCard />
<SettingsCardPersonalDetails />
<SettingsCardNotifications />
<SettingsCardShowPreferences />
<SettingsCardPerformanceInterest />
<SettingsCardAccomodations />
</styles.SettingDiv>
</styles.Page>
</styles.All>
Expand Down
3 changes: 3 additions & 0 deletions app/settings/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ export const SettingDiv = styled.div`
width: 80%;
}
`;



34 changes: 0 additions & 34 deletions components/SettingsCard/SettingsCard.tsx

This file was deleted.

38 changes: 38 additions & 0 deletions components/SettingsCard/SettingsCardAccomodations.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react';
import Edit from '@/public/images/edit.svg';
import COLORS from '@/styles/colors';
import { H5, P } from '@/styles/text';
import * as styles from './styles';

export default function SettingCardAccomodations() {
return (
<styles.AvailabilityContainer>
<styles.AvailabilityHeader>
<styles.AvailabilityTitle>
<H5 $fontWeight="500" $color={COLORS.bread1} $align="left">
Accomodations
</H5>
</styles.AvailabilityTitle>
<styles.Edit src={Edit} alt="Edit" />
</styles.AvailabilityHeader>
<styles.Content>
<div>
<styles.SubHeader>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Accomodations
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Burnt tomatoes pineapple rib red. Tomato string spinach white steak meat lovers buffalo pie. String onions sausage party spinach ricotta spinach. Marinara stuffed pizza Chicago Philly style tossed. Thin parmesan lasagna lot buffalo lasagna tomatoes onions green.
</styles.TruncatedText>
</styles.SettingDetail>
</styles.SubHeader>
</div>
</styles.Content>
</styles.AvailabilityContainer>
);
}
50 changes: 50 additions & 0 deletions components/SettingsCard/SettingsCardNotifications.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from 'react';
import Edit from '@/public/images/edit.svg';
import COLORS from '@/styles/colors';
import { H5, P } from '@/styles/text';
import * as styles from './styles';

export default function SettingCardNotifications() {
return (
<styles.AvailabilityContainer>
<styles.AvailabilityHeader>
<styles.AvailabilityTitle>
<H5 $fontWeight="500" $color={COLORS.bread1} $align="left">
Notifications
</H5>
</styles.AvailabilityTitle>
<styles.Edit src={Edit} alt="Edit" />
</styles.AvailabilityHeader>
<styles.Content>
<div>
<styles.SubHeader>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
New Events
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Email
</styles.TruncatedText>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Recieved Sign Up Form
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Email
</styles.TruncatedText>
</styles.SettingDetail>
</styles.SubHeader>
</div>
</styles.Content>
</styles.AvailabilityContainer>
);
}
88 changes: 88 additions & 0 deletions components/SettingsCard/SettingsCardPerformanceInterest.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import React from 'react';
import Edit from '@/public/images/edit.svg';
import COLORS from '@/styles/colors';
import { H5, P } from '@/styles/text';
import * as styles from './styles';

export default function SettingCardPerformanceInterest() {
return (
<styles.AvailabilityContainer>
<styles.AvailabilityHeader>
<styles.AvailabilityTitle>
<H5 $fontWeight="500" $color={COLORS.bread1} $align="left">
Performance Interest
</H5>
</styles.AvailabilityTitle>
<styles.Edit src={Edit} alt="Edit" />
</styles.AvailabilityHeader>
<styles.Content>
<div>
<styles.SubHeader>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Type of Act
</P>
<ul style={{ paddingLeft: '20px', listStyleType: 'disc' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change the px to rem! overall should almost always use rem over px. https://nekocalc.com/px-to-rem-converter u can use this website but for smaller ones just divide by 16 and it should be accurate.

<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Juggling
</styles.TruncatedText>
</li>
<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Music
</styles.TruncatedText>
</li>
</ul>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Genre
</P>
<ul style={{ paddingLeft: '20px', listStyleType: 'disc' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Classical
</styles.TruncatedText>
</li>
<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Country
</styles.TruncatedText>
</li>
</ul>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Group Size
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
2
</styles.TruncatedText>
</styles.SettingDetail>
</styles.SubHeader>
</div>
</styles.Content>
</styles.AvailabilityContainer>
);
}
62 changes: 62 additions & 0 deletions components/SettingsCard/SettingsCardPersonalDetails.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import React from 'react';
import Edit from '@/public/images/edit.svg';
import COLORS from '@/styles/colors';
import { H5, P } from '@/styles/text';
import * as styles from './styles';

export default function SettingCardPersonalDetails() {
return (
<styles.AvailabilityContainer>
<styles.AvailabilityHeader>
<styles.AvailabilityTitle>
<H5 $fontWeight="500" $color={COLORS.bread1} $align="left">
Personal Details
</H5>
</styles.AvailabilityTitle>
<styles.Edit src={Edit} alt="Edit" />
</styles.AvailabilityHeader>
<styles.Content>
<div>
<styles.SubHeader>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
First Name
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Jane
</styles.TruncatedText>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Last Name
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Doe
</styles.TruncatedText>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Phone Number
</P>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
123-456-7890
</styles.TruncatedText>
</styles.SettingDetail>
</styles.SubHeader>
</div>
</styles.Content>
</styles.AvailabilityContainer>
);
}
83 changes: 83 additions & 0 deletions components/SettingsCard/SettingsCardShowPreferences.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import React from 'react';
import Edit from '@/public/images/edit.svg';
import COLORS from '@/styles/colors';
import { H5, P } from '@/styles/text';
import * as styles from './styles';

export default function SettingCardShowPreferences() {
return (
<styles.AvailabilityContainer>
<styles.AvailabilityHeader>
<styles.AvailabilityTitle>
<H5 $fontWeight="500" $color={COLORS.bread1} $align="left">
Show Preferences
</H5>
</styles.AvailabilityTitle>
<styles.Edit src={Edit} alt="Edit" />
</styles.AvailabilityHeader>
<styles.Content>
<div>
<styles.SubHeader>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Facility Type
</P>
<ul style={{ paddingLeft: '20px', listStyleType: 'disc' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Hospitals
</styles.TruncatedText>
</li>
<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Senior Homes
</styles.TruncatedText>
</li>
</ul>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Location Preferences
</P>
<ul style={{ paddingLeft: '20px', listStyleType: 'disc' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Oakland, CA
</styles.TruncatedText>
</li>
</ul>
</styles.SettingDetail>
<styles.SettingDetail>
<P $fontWeight="500" $color={COLORS.gray12} $align="left">
Preferred Audience
</P>
<ul style={{ paddingLeft: '20px', listStyleType: 'disc' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

<li>
<styles.TruncatedText
$fontWeight="400"
$color={COLORS.gray11}
$align="left"
>
Seniors
</styles.TruncatedText>
</li>
</ul>
</styles.SettingDetail>
</styles.SubHeader>
</div>
</styles.Content>
</styles.AvailabilityContainer>
);
}
Loading
Loading