Skip to content

Commit

Permalink
setup for shopping page
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniGrbic committed Feb 5, 2025
1 parent 6becfd8 commit 497e9c1
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/app/src/assets/icons/cross-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/app/src/assets/icons/shopping-cart-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/app/src/assets/icons/transactions-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/app/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Header } from '../../components/Header';
import c from './Home.module.scss';
import TopCompaniesSection from './sections/TopCompaniesSection';
import EventsSection from './sections/EventsSection';
import LocationSection from '../../components/LocationSection';
import LocationSection from '@/components/LocationSection';

const HomePage = () => {
return (
Expand Down
39 changes: 39 additions & 0 deletions apps/app/src/pages/ShoppingPage/ShoppingPage.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.header {
display: flex;
justify-content: space-between;
margin-bottom: 2rem;
}

.wrapper {
padding-top: 4rem;
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-bottom: 2rem;
background: $primary-black;
}

.title {
@include heading-2;
color: $white-text;
}

.navigation {
display: flex;
gap: 6px;
}

.navButton {
background: $black-90;
border: none;
border-radius: 0.5rem;
display: block;
padding: 17.5px 45px;
display: flex;
flex-direction: column;
gap: 12px;

p {
@include paragraph-16;
color: $white-text;
}
}
22 changes: 20 additions & 2 deletions apps/app/src/pages/ShoppingPage/ShoppingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
import CrossIcon from '@/assets/icons/cross-icon.svg';
import styles from './ShoppingPage.module.scss';
import TransactionsIcon from '@/assets/icons/transactions-icon.svg';
import ShoppingCartIcon from '@/assets/icons/shopping-cart-icon.svg';

export const ShoppingPage = () => {
return (
<div>
<h1>Shopping</h1>
<div className={styles.wrapper}>
<div className={styles.header}>
<h1 className={styles.title}>SHOPPING</h1>
<img src={CrossIcon} alt='' />
</div>
<div className={styles.navigation}>
<button className={styles.navButton}>
<img src={TransactionsIcon} alt='' />
<p>Transakcije</p>
</button>
<button className={styles.navButton}>
<img src={ShoppingCartIcon} alt='' />
<p>Košarica</p>
</button>
</div>
</div>
);
};
1 change: 1 addition & 0 deletions apps/app/src/styles/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $black-30: #b3b3b2;
$black-10: #e0e0df;
$black-5: #ebebeb;

$white-text: #F5F5F5;
// System colors
$error-light: #cd0000;
$error-dark: #ff3737;

0 comments on commit 497e9c1

Please sign in to comment.