feat: enhance CarousellMe UI with updated filter button styling, end of list indicator, and improved content padding
This commit is contained in:
@@ -56,6 +56,7 @@ import {
|
|||||||
chevronDownSharp,
|
chevronDownSharp,
|
||||||
chevronForwardSharp,
|
chevronForwardSharp,
|
||||||
filterSharp,
|
filterSharp,
|
||||||
|
filter,
|
||||||
} from 'ionicons/icons';
|
} from 'ionicons/icons';
|
||||||
// import AboutPopover from '../../components/AboutPopover';
|
// import AboutPopover from '../../components/AboutPopover';
|
||||||
import { format, parseISO } from 'date-fns';
|
import { format, parseISO } from 'date-fns';
|
||||||
@@ -115,15 +116,15 @@ const ListingsContent: React.FC<SessionListProps> = ({ hide }) => {
|
|||||||
style={{ padding: 0 }}
|
style={{ padding: 0 }}
|
||||||
></IonSearchbar>
|
></IonSearchbar>
|
||||||
|
|
||||||
<div style={{ fontSize: '0.8rem' }}>
|
<div style={{ fontSize: '0.75rem', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
<IonButton size="small" fill="outline" onClick={(e) => setOpenExplain(true)}>
|
<IonButton size="small" fill="outline" onClick={(e) => setOpenExplain(true)}>
|
||||||
<IonIcon slot="end" icon={filterSharp} style={{ fontSize: '0.8rem' }}></IonIcon>
|
<IonIcon slot="end" icon={filter} style={{ fontSize: '0.75rem' }}></IonIcon>
|
||||||
Filters
|
<div style={{ fontSize: '0.75rem' }}>Filters</div>
|
||||||
</IonButton>
|
</IonButton>
|
||||||
<IonButton size="small" fill="outline">
|
<IonButton size="small" fill="outline" style={{ fontSize: '0.75rem' }}>
|
||||||
<IonText>{`Status: ${'All'}`}</IonText>
|
<IonText>{`Status: ${'All'}`}</IonText>
|
||||||
</IonButton>
|
</IonButton>
|
||||||
<IonButton size="small" fill="outline">
|
<IonButton size="small" fill="outline" style={{ fontSize: '0.75rem' }}>
|
||||||
<IonText>{`In: All Categories`}</IonText>
|
<IonText>{`In: All Categories`}</IonText>
|
||||||
</IonButton>
|
</IonButton>
|
||||||
</div>
|
</div>
|
||||||
@@ -142,6 +143,22 @@ const ListingsContent: React.FC<SessionListProps> = ({ hide }) => {
|
|||||||
<SellingButton />
|
<SellingButton />
|
||||||
<SellingButton />
|
<SellingButton />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
height: '5rem',
|
||||||
|
color: 'lightgray',
|
||||||
|
display: 'inline-flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
|
||||||
|
//
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
end of list
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@@ -138,7 +138,7 @@ const CarousellMe: React.FC<CarousellMeProps> = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IonPage id="carousell-me-page" style={{}}>
|
<IonPage id="carousell-me-page" style={{}}>
|
||||||
<IonContent style={{ paddingBottom: '5rem' }}>
|
<IonContent>
|
||||||
<IonHeader className="ion-no-border">
|
<IonHeader className="ion-no-border">
|
||||||
<IonToolbar>
|
<IonToolbar>
|
||||||
<IonButtons slot="end">
|
<IonButtons slot="end">
|
||||||
@@ -177,9 +177,6 @@ const CarousellMe: React.FC<CarousellMeProps> = () => {
|
|||||||
</IonButtons>
|
</IonButtons>
|
||||||
</IonToolbar>
|
</IonToolbar>
|
||||||
</IonHeader>
|
</IonHeader>
|
||||||
{/* */}
|
|
||||||
{/* */}
|
|
||||||
{/* */}
|
|
||||||
<div className="about-header">
|
<div className="about-header">
|
||||||
{/* Instead of loading an image each time the select changes, use opacity to transition them */}
|
{/* Instead of loading an image each time the select changes, use opacity to transition them */}
|
||||||
<div
|
<div
|
||||||
@@ -190,6 +187,7 @@ const CarousellMe: React.FC<CarousellMeProps> = () => {
|
|||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* */}
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -207,6 +205,8 @@ const CarousellMe: React.FC<CarousellMeProps> = () => {
|
|||||||
width: '75px',
|
width: '75px',
|
||||||
borderRadius: '50px',
|
borderRadius: '50px',
|
||||||
border: '3px solid white',
|
border: '3px solid white',
|
||||||
|
//
|
||||||
|
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.2)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -369,17 +369,12 @@ const CarousellMe: React.FC<CarousellMeProps> = () => {
|
|||||||
<IonSegmentButton value="reviews">{t('Reviwes')}</IonSegmentButton>
|
<IonSegmentButton value="reviews">{t('Reviwes')}</IonSegmentButton>
|
||||||
<IonSegmentButton value="about">{t('About')}</IonSegmentButton>
|
<IonSegmentButton value="about">{t('About')}</IonSegmentButton>
|
||||||
</IonSegment>
|
</IonSegment>
|
||||||
|
|
||||||
{/* listing / reviews / about */}
|
{/* listing / reviews / about */}
|
||||||
<ListingsContent hide={segment != 'listings'} />
|
<ListingsContent hide={segment != 'listings'} />
|
||||||
<ReviewsContent hide={segment != 'reviews'} />
|
<ReviewsContent hide={segment != 'reviews'} />
|
||||||
<AboutContent hide={segment != 'about'} />
|
<AboutContent hide={segment != 'about'} />
|
||||||
</IonContent>
|
</IonContent>
|
||||||
|
|
||||||
{/*
|
|
||||||
<IonPopover isOpen={showPopover} event={popoverEvent} onDidDismiss={() => setShowPopover(false)}>
|
|
||||||
<AboutPopover dismiss={() => setShowPopover(false)} />
|
|
||||||
</IonPopover>
|
|
||||||
*/}
|
|
||||||
</IonPage>
|
</IonPage>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@@ -13,10 +13,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-content {
|
|
||||||
--padding-bottom: 5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ion-toolbar {
|
ion-toolbar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#carousell-me-page {
|
#carousell-me-page {
|
||||||
ion-button {
|
* {
|
||||||
--ion-color-primary: #243763;
|
--ion-color-primary: #243763;
|
||||||
--ion-color-primary-rgb: 36, 55, 99;
|
--ion-color-primary-rgb: 36, 55, 99;
|
||||||
--ion-color-primary-contrast: #ffffff;
|
--ion-color-primary-contrast: #ffffff;
|
||||||
|
Reference in New Issue
Block a user