@@ -49,7 +39,7 @@ const CarouselImage = ({ image, caption }) => {
sx={{
position: 'absolute',
bottom: 0,
- backgroundColor: (theme) => theme.palette.secondary.main,
+ // backgroundColor: (theme) => theme.palette.secondary.main,
color: (theme) =>
theme.palette.secondary.contrastText || 'common.white',
width: '100%',
@@ -66,111 +56,194 @@ const CarouselImage = ({ image, caption }) => {
);
};
-const CarouselContainer = ({ isMounted }) => {
- // if (!isMounted.current) {
- // return;
- // }
- const classes = useStyles();
- return (
-
- {carouselImages?.map(({ image, caption }, index) => (
-
- ))}
-
- );
-};
-
const HomePage = () => {
- const classes = useStyles();
- const theme = useTheme();
- const isMounted = useRef(true);
-
- // useEffect(() => {
- // return () => {
- // isMounted.current = false;
- // };
- // }, []);
+ // const theme = useTheme();
+ const { theme, setMode } = useMode();
+ const classes = useStyles(theme);
+ const { openModalWithCard, closeModal, isModalOpen, modalContent } =
+ useContext(ModalContext);
+ const { initialState, carouselImages, tiers } = pages;
return (
-
-
- {/* */}
+ //
+
+
+
+ // `linear-gradient(to right, ${theme.palette.success.light}, ${theme.palette.success.dark})`,
+ background: theme.palette.primary.light,
+ p: 8,
+ m: 4,
+ borderRadius: 2,
}}
>
-
-
- Album layout
-
-
+ Album layout
+
+
+ Something short and leading about the collection below—its contents,
+ the creator, etc. Make it short and sweet, but not too short so
+ folks don't simply skip over it entirely.
+
+
+
+ Secondary action
+
+
+ {/* */}
-
- {carouselImages.map(({ image, caption }, index) => (
-
+
+
+
+ {carouselImages.map(({ image, caption }, index) => (
+
+ ))}
+
+
+
+
+
+
+
+ {tiers.map((tier) => (
+
+
+ {' '}
+ : null}
+ subheaderTypographyProps={{
+ align: 'center',
+ }}
+ sx={{
+ background: theme.palette.success.main,
+ // backgroundColor: (theme) =>
+ // theme.palette.mode === 'light'
+ // ? theme.palette.grey[200]
+ // : theme.palette.grey[700],
+ }}
+ />
+
+
+
+ ${tier.price}
+
+
+ /mo
+
+
+
+ {tier.description.map((line) => (
+
+ {line}
+
+ ))}
+
+
+
+
+ {tier.buttonText}
+
+
+
+
))}
-
+
-
+ {isModalOpen && (
+
+ )}
+
+ //
);
};
diff --git a/src/pages/ProfilePage.js b/src/pages/ProfilePage.js
index 0e641f2..a2e8ee0 100644
--- a/src/pages/ProfilePage.js
+++ b/src/pages/ProfilePage.js
@@ -23,35 +23,13 @@ import {
TypographyStyled,
IconButtonStyled,
ButtonStyled,
-} from './StyledComponents';
+ ButtonsContainer,
+ CustomButton,
+ ProfileFormContainer,
+} from './pageStyles/StyledComponents';
import ProfileForm from '../components/forms/ProfileForm';
import { useCollectionStore } from '../context/CollectionContext/CollectionContext';
-const CustomButton = styled(Button)({
- margin: '10px', // Add margin around each button
- width: '100%', // Make all buttons take full width of their parent
- padding: '10px 0', // Add vertical padding
- fontSize: '16px', // Set a consistent font size
- // Any other styling you want to apply to all buttons
-});
-
-const ButtonsContainer = styled(Box)({
- display: 'flex',
- flexDirection: 'column',
- alignItems: 'center',
- padding: '20px',
- margin: '10px 0',
- // Add additional styles as needed
-});
-
-const ProfileFormContainer = styled(Box)({
- marginTop: '20px',
- padding: '20px',
- boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', // Example shadow
- borderRadius: '8px',
- // Add additional styles as needed
-});
-
const ProfilePage = () => {
const { selectedCollection } = useCollectionStore();
const { user, updateUser } = useUserContext();
@@ -75,7 +53,8 @@ const ProfilePage = () => {
const openSnackbar = (message) => {
setSnackbarData({ open: true, message });
};
- const userId = user?.id;
+ // const userId = user?.id;
+ const userId = cookies.user?.id;
console.log('USER ID:', userId);
// console.log('USER:', user);
const handleSaveChanges = useCallback(
diff --git a/src/pages/Splash.css b/src/pages/Splash.css
deleted file mode 100644
index efba8b5..0000000
--- a/src/pages/Splash.css
+++ /dev/null
@@ -1,113 +0,0 @@
-:root {
- --calendar-width: 200px;
- --calendar-height: 100px;
-}
-
-/* Combine styles for splash_wrapper */
-.splash_wrapper {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100vw;
- height: 100vh;
- background: linear-gradient(
- 45deg,
- #305270,
- #284b60,
- #20444f,
- #173d3e,
- #0e362e,
- #052f1d
- );
- background-size: 600% 600%;
- animation: Gradient 16s ease infinite;
-}
-
-.logo_container {
- margin-bottom: 2rem;
-}
-
-.loading_text {
- font-size: 1.5rem;
- font-weight: bold;
- text-transform: uppercase;
- color: #284b60; /* Using the Adjusted Indigo dye from your pentenary color theme */
- letter-spacing: 1.5px;
-}
-
-@keyframes Gradient {
- 0% {
- background-position: 0% 50%;
- }
- 50% {
- background-position: 100% 50%;
- }
- 100% {
- background-position: 0% 50%;
- }
-}
-
-/* splash calendar animation */
-
-.github_calendar_container {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 60px; /* More space from the animation */
- padding: 20px;
- /* width: 200px;
- height: 100px; */
- width: var(--calendar-width);
- height: var(--calendar-height);
-}
-
-/*
- .rotating-border {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: -1; /* Place it below the GitHub calendar
-}
-*/
-
-.rotating-border rect {
- width: var(--calendar-width);
- height: var(--calendar-height);
- stroke-dasharray: 1000;
- stroke-dashoffset: 1000;
- animation:
- rotateBorder 9s infinite linear,
- dashOffset 9s infinite linear;
-}
-
-.calendar-box {
- position: relative;
- z-index: 1; /* Place it above the rotating border */
-}
-
-@keyframes rotateBorder {
- 0% {
- /* stroke: #4db0a8; */
- stroke: red;
- }
- 50% {
- stroke: #052f1d;
- }
- 100% {
- /* stroke: #4db0a8; */
- stroke: red;
- }
-}
-
-@keyframes dashOffset {
- 0% {
- stroke-dashoffset: 1000;
- }
- 100% {
- stroke-dashoffset: 0;
- }
-}
diff --git a/src/pages/Splash.js b/src/pages/Splash.js
deleted file mode 100644
index 5a4ed53..0000000
--- a/src/pages/Splash.js
+++ /dev/null
@@ -1,242 +0,0 @@
-import React, { useEffect, useRef, useState } from 'react';
-import { useNavigate } from 'react-router-dom';
-import './Splash.css';
-// import { motion } from 'framer-motion';
-// import { theme } from '../../assets/theme';
-// import Particle from '../utils/Particle';
-// import logo from '../../assets/logo.png'; // Import the logo
-// import GitHubCalendar from 'react-github-calendar';
-// import { Box } from '@chakra-ui/react';
-import CardDeckAnimation from './CardDeckAnimation';
-
-// const logoVariants = {
-// hidden: { opacity: 0 },
-// visible: {
-// opacity: 1,
-// rotate: [0, 360], // Add rotation animation
-// transition: {
-// duration: 4,
-// repeat: Infinity,
-// ease: 'linear',
-// },
-// },
-// exit: { opacity: 0, transition: { duration: 0.5 } },
-// };
-
-// const ellipsisVariants = {
-// hidden: { opacity: 0 },
-// visible: {
-// opacity: [0, 1, 1, 1, 0], // This makes the ellipsis fade in and out
-// x: ['0%', '5%', '10%', '15%', '20%'], // Move the ellipsis to the right
-// transition: {
-// duration: 2,
-// repeat: Infinity,
-// repeatType: 'loop',
-// },
-// },
-// exit: { opacity: 0, transition: { duration: 0.5 } },
-// };
-
-// const textVariants = {
-// hidden: { opacity: 0 },
-// visible: {
-// opacity: 1,
-// color: [
-// theme.colors.quaternary[400],
-// theme.colors.quaternary[500],
-// theme.colors.quaternary[600],
-// theme.colors.quaternary[700],
-// theme.colors.quaternary[800],
-// theme.colors.quaternary[900],
-// ],
-// textShadow: ['0px 0px', '5px 5px', '3px 3px', '0px 0px'],
-// transition: {
-// duration: 6, // Increased due to more colors
-// repeat: Infinity,
-// repeatType: 'loop',
-// },
-// },
-// exit: { opacity: 0, transition: { duration: 0.5 } },
-// };
-
-// function AnimatedSplash() {
-// const [calendarSize, setCalendarSize] = useState({ width: 0, height: 0 });
-// const calendarRef = useRef(null);
-// // const rect = document.getElementById('myElement').getBoundingClientRect();
-
-// // Declare minimum dimensions here
-// const minWidth = window.innerWidth * 0.65;
-// const minHeight = 100;
-
-// useEffect(() => {
-// if (calendarRef.current) {
-// // Check if the ref is assigned to a DOM element
-// // const rect = calendarRef.current.getBoundingClientRect();
-
-// const breakpoints = {
-// xs: 20 * 16,
-// sm: 28 * 16,
-// md: 36 * 16,
-// lg: 45 * 16,
-// xl: 60 * 16,
-// };
-
-// const adjustSize = () => {
-// const width = window.innerWidth;
-// let newWidth, newHeight;
-// if (width <= breakpoints.xs) {
-// newWidth = '40px';
-// newHeight = '20px';
-// } else if (width <= breakpoints.sm) {
-// newWidth = '50px';
-// newHeight = '25px';
-// } else if (width <= breakpoints.md) {
-// newWidth = '60px';
-// newHeight = '30px';
-// } else if (width <= breakpoints.lg) {
-// newWidth = '70px';
-// newHeight = '35px';
-// } else {
-// newWidth = '200px';
-// newHeight = '40px';
-// }
-// document.documentElement.style.setProperty(
-// '--calendar-width',
-// newWidth
-// );
-// document.documentElement.style.setProperty(
-// '--calendar-height',
-// newHeight
-// );
-// };
-// adjustSize();
-// window.addEventListener('resize', adjustSize);
-
-// if (calendarRef.current) {
-// const rect = calendarRef.current.getBoundingClientRect();
-// setCalendarSize({
-// width: Math.max(rect.width + 15, minWidth),
-// height: Math.max(rect.height + 15, minHeight),
-// });
-// }
-// console.log('Updated calendar size:', calendarSize);
-
-// return () => {
-// window.removeEventListener('resize', adjustSize);
-// };
-// }
-// }, [calendarSize]);
-
-// return (
-//
-//
-//
-// ReedVogt.com
-//
-//
-
-// {Particle && }
-//
-//
-//
-// Loading
-//
-//
-// .
-// .
-// .
-//
-//
-
-//
-//
-//
-//
-//
-//
-//
-// );
-// }
-
-function Splash() {
- const [redirected, setRedirected] = useState(false);
- const navigate = useNavigate();
-
- useEffect(() => {
- const id = setTimeout(() => setRedirected(true), 10000);
- return () => clearTimeout(id);
- }, []);
-
- useEffect(() => {
- if (redirected) {
- navigate('/');
- }
- }, [redirected, navigate]);
-
- return redirected ? null :
;
- // return redirected ? null :
;
-}
-
-export default Splash;
diff --git a/src/pages/StorePage.js b/src/pages/StorePage.js
index 81e8ddb..f4b27e4 100644
--- a/src/pages/StorePage.js
+++ b/src/pages/StorePage.js
@@ -1,31 +1,13 @@
import React, { useState, useContext, useEffect } from 'react';
-import styled from 'styled-components';
import { Grid } from '@mui/material';
import { useCookies } from 'react-cookie';
import SearchBar from '../components/search/SearchBar';
import ProductGrid from '../components/grids/storeSearchResultsGrid/ProductGrid';
import { useCardStore } from '../context/CardContext/CardStore';
import { useCartStore } from '../context/CartContext/CartContext';
-import LoadingIndicator from '../components/indicators/LoadingIndicator';
-import ErrorIndicator from '../components/indicators/ErrorIndicator';
-
-const StoreBanner = styled.div`
- display: flex;
- max-width: 100%;
- justify-content: center;
- margin: 0 auto;
- flex-direction: column;
- align-items: center;
- padding: 20px;
- background-color: #f7f7f7;
-`;
-
-const StoreTitle = styled.h2`
- color: #333;
- font-size: 1.5rem;
- text-align: center;
- margin-bottom: 20px;
-`;
+import LoadingIndicator from '../components/reusable/indicators/LoadingIndicator';
+import ErrorIndicator from '../components/reusable/indicators/ErrorIndicator';
+import { StoreBanner, StoreTitle } from './pageStyles/StyledComponents';
const SearchContainer = () => {
return (
diff --git a/src/pages/StyledComponents.jsx b/src/pages/StyledComponents.jsx
deleted file mode 100644
index 54975ef..0000000
--- a/src/pages/StyledComponents.jsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import styled from '@emotion/styled';
-import { Avatar, Box, Button, IconButton, Typography } from '@mui/material';
-export const AvatarStyled = styled(Avatar)({
- width: 60,
- height: 60,
- marginBottom: 15,
-});
-
-export const TypographyStyled = styled(Typography)({
- marginBottom: 15,
-});
-
-export const IconButtonStyled = styled(IconButton)({
- marginBottom: 20,
-});
-
-export const DataBoxStyled = styled(Box)({
- margin: '10px 0',
- padding: '10px',
- border: '1px solid #ddd',
- borderRadius: '8px',
- textAlign: 'center',
- width: '100%',
-});
-
-export const ButtonStyled = styled(Button)({
- margin: '15px 0',
- padding: '10px',
- color: '#fff',
- backgroundColor: '#3f51b5',
- '&:hover': {
- backgroundColor: '#303f9f',
- },
-});
-
-export const DataTextStyled = styled(Typography)({
- margin: '5px 0',
- fontSize: '0.9rem',
-});
-
-export const DataTextBoldStyled = styled(Typography)({
- margin: '5px 0',
- fontSize: '0.9rem',
- fontWeight: 'bold',
-});
diff --git a/src/pages/pageStyles/CollectionBanner.jsx b/src/pages/pageStyles/CollectionBanner.jsx
deleted file mode 100644
index ee3dd21..0000000
--- a/src/pages/pageStyles/CollectionBanner.jsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import styled from 'styled-components';
-
-const CollectionBanner = styled.div`
- display: flex;
- max-width: 100vw;
- ${'' /* min-width: '100vw'; */}
- justify-content: center;
- margin: 0 auto;
- flex-direction: column;
- align-items: center;
- padding: 20px;
- background-color: #f7f7f7;
-`;
-
-export default CollectionBanner;
diff --git a/src/pages/pageStyles/CollectionTitle.jsx b/src/pages/pageStyles/CollectionTitle.jsx
deleted file mode 100644
index 394e73c..0000000
--- a/src/pages/pageStyles/CollectionTitle.jsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import styled from 'styled-components';
-
-const CollectionTitle = styled.h2`
- color: #333;
- font-size: 1.5rem;
- text-align: center;
- margin-bottom: 20px;
-`;
-
-export default CollectionTitle;
diff --git a/src/pages/pageStyles/DeckBuilderBanner.jsx b/src/pages/pageStyles/DeckBuilderBanner.jsx
deleted file mode 100644
index 4abda8b..0000000
--- a/src/pages/pageStyles/DeckBuilderBanner.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import styled from 'styled-components';
-
-const DeckBuilderBanner = styled.div`
- display: flex;
- flex-direction: column;
- align-items: center;
- background-color: #f9f9f9;
- width: 100%;
- max-width: 1600px;
- margin: auto;
-`;
-
-export default DeckBuilderBanner;
diff --git a/src/pages/pageStyles/DeckBuilderTitle.jsx b/src/pages/pageStyles/DeckBuilderTitle.jsx
deleted file mode 100644
index 0f5c25d..0000000
--- a/src/pages/pageStyles/DeckBuilderTitle.jsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import styled from 'styled-components';
-
-const DeckBuilderTitle = styled.h2`
- color: #333;
- font-size: 1.5rem;
- text-align: center;
- margin-bottom: 20px;
-`;
-
-export default DeckBuilderTitle;
diff --git a/src/pages/pageStyles/Hero.jsx b/src/pages/pageStyles/Hero.jsx
deleted file mode 100644
index 45ca420..0000000
--- a/src/pages/pageStyles/Hero.jsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import React from 'react';
-import { Box, Container, Typography } from '@mui/material';
-import { makeStyles } from '@mui/styles';
-import { Canvas } from '@react-three/fiber';
-import Cube from './Cube';
-
-const useStyles = makeStyles((theme) => ({
- bannerBox: {
- backgroundImage: `linear-gradient(to right, ${theme.palette.primary.light}, ${theme.palette.primary.main})`,
- minHeight: '100vh',
- padding: theme.spacing(4),
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center',
- },
-}));
-
-const Hero = () => {
- const classes = useStyles();
- return (
-
-
-
-
- Buy Amazing Cards
-
-
-
- );
-};
-
-export default Hero;
diff --git a/src/pages/pageStyles/StyledComponents.jsx b/src/pages/pageStyles/StyledComponents.jsx
new file mode 100644
index 0000000..8b3013e
--- /dev/null
+++ b/src/pages/pageStyles/StyledComponents.jsx
@@ -0,0 +1,218 @@
+import { Avatar, Box, Button, IconButton, Typography } from '@mui/material';
+import { styled } from '@mui/styles';
+
+// export const AppContainer = styled.div`
+export const AppContainer = styled('div')(({ theme }) => ({
+ display: 'flex',
+ flexDirection: 'column',
+ height: '100vh',
+}));
+export const MainContainer = styled('div')(({ theme }) => ({
+ background: '#222', // Dark background
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ maxHeight: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+}));
+export const MainContainer2 = styled('div')(({ theme }) => ({
+ background: '#333', // Dark background
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ maxHeight: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+}));
+export const MainContainer3 = styled('div')(({ theme }) => ({
+ background: '#444', // Dark background
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ maxHeight: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+}));
+export const SecondaryContainer = styled('div')(({ theme }) => ({
+ background: '#b7ebde',
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ maxHeight: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+}));
+export const TertiaryContainer = styled('div')(({ theme }) => ({
+ padding: 3,
+ borderRadius: 2,
+ background: theme.palette.success.main,
+ boxShadow: theme.shadows[10],
+ mb: 4,
+}));
+export const MainPaperContainer = styled('div')(({ theme }) => ({
+ elevation: 3,
+ borderRadius: 2,
+ margin: 0,
+ marginBottom: theme.spacing(2),
+ background: theme.palette.background.main,
+ width: '100%',
+ padding: theme.spacing(2),
+}));
+
+export const SecondaryPaperContainer = styled('div')(({ theme }) => ({
+ elevation: 3,
+ borderRadius: 2,
+ margin: 0,
+ marginBottom: theme.spacing(2),
+ background: '#70d8bd',
+ width: '100%',
+ padding: theme.spacing(2),
+}));
+
+export const DeckBuilderBanner = styled(Box)(({ theme }) => ({
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ backgroundColor: theme.palette.background.paper,
+ width: '100%',
+ maxWidth: '1600px',
+ margin: 'auto',
+ padding: theme.spacing(6, 2),
+ boxShadow: theme.shadows[4],
+ textAlign: 'center',
+}));
+// export const DeckBuilderBanner = styled(Box)(({ theme }) => ({
+// backgroundColor: theme.palette.background.paper,
+// padding: theme.spacing(6, 2),
+// boxShadow: theme.shadows[4],
+// textAlign: 'center',
+// }));
+// export const DeckBuilderBanner = styled.div`
+// display: flex;
+// flex-direction: column;
+// align-items: center;
+// background-color: #f9f9f9;
+// width: 100%;
+// max-width: 1600px;
+// margin: auto;
+// `;
+export const AvatarStyled = styled(Avatar)({
+ width: 60,
+ height: 60,
+ marginBottom: 15,
+});
+
+export const TypographyStyled = styled(Typography)({
+ marginBottom: 15,
+});
+
+export const IconButtonStyled = styled(IconButton)({
+ marginBottom: 20,
+});
+
+export const DataBoxStyled = styled(Box)({
+ margin: '10px 0',
+ padding: '10px',
+ border: '1px solid #ddd',
+ borderRadius: '8px',
+ textAlign: 'center',
+ width: '100%',
+});
+
+export const ButtonStyled = styled(Button)({
+ margin: '15px 0',
+ padding: '10px',
+ color: '#fff',
+ backgroundColor: '#3f51b5',
+ '&:hover': {
+ backgroundColor: '#303f9f',
+ },
+});
+
+export const DataTextStyled = styled(Typography)({
+ margin: '5px 0',
+ fontSize: '0.9rem',
+});
+
+export const DataTextBoldStyled = styled(Typography)({
+ margin: '5px 0',
+ fontSize: '0.9rem',
+ fontWeight: 'bold',
+});
+
+export const DeckBuilderTitle = styled(Typography)(({ theme }) => ({
+ color: '#333',
+ fontSize: '1.5rem',
+ textAlign: 'center',
+ marginBottom: theme.spacing(2.5),
+}));
+
+export const CollectionTitle = styled(Typography)(({ theme }) => ({
+ color: '#333',
+ fontSize: '1.5rem',
+ textAlign: 'center',
+ marginBottom: theme.spacing(2.5),
+}));
+
+export const CollectionBanner = styled(Box)(({ theme }) => ({
+ display: 'flex',
+ justifyContent: 'center',
+ margin: '0 auto',
+ flexDirection: 'column',
+ alignItems: 'center',
+ padding: theme.spacing(2.5),
+ backgroundColor: '#f7f7f7',
+}));
+
+export const StoreBanner = styled(Box)(({ theme }) => ({
+ display: 'flex',
+ maxWidth: '100%',
+ justifyContent: 'center',
+ margin: '0 auto',
+ flexDirection: 'column',
+ alignItems: 'center',
+ padding: theme.spacing(2.5),
+ backgroundColor: '#f7f7f7',
+}));
+
+export const StoreTitle = styled(Typography)(({ theme }) => ({
+ color: '#333',
+ fontSize: '1.5rem',
+ textAlign: 'center',
+ marginBottom: theme.spacing(2.5),
+}));
+
+export const CustomButton = styled(Button)({
+ margin: '10px',
+ width: '100%',
+ padding: '10px 0',
+ fontSize: '16px',
+});
+
+export const ButtonsContainer = styled(Box)({
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ padding: '20px',
+ margin: '10px 0',
+});
+
+export const ProfileFormContainer = styled(Box)({
+ marginTop: '20px',
+ padding: '20px',
+ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
+ borderRadius: '8px',
+});
diff --git a/src/pages/styles.jsx b/src/pages/pageStyles/styles.jsx
similarity index 67%
rename from src/pages/styles.jsx
rename to src/pages/pageStyles/styles.jsx
index 330a361..91c27ca 100644
--- a/src/pages/styles.jsx
+++ b/src/pages/pageStyles/styles.jsx
@@ -1,6 +1,52 @@
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles((theme) => ({
+ mainContainer: {
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ background: '#222', // Dark background
+ // background: theme.palette.primary.light,
+ maxHeight: '100%', // Set the container height to 25vh
+ width: '100%', // Set the container width to 100%
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+ },
+ secondaryContainer: {
+ padding: theme.spacing(2),
+ marginBottom: theme.spacing(2),
+ // background: '#222', // Dark background
+ background: '#b7ebde',
+ // background: theme.palette.primary.light,
+ maxHeight: '100%', // Set the container height to 25vh
+ width: '100%', // Set the container width to 100%
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ boxShadow: theme.shadows[3],
+ borderRadius: theme.shape.borderRadius,
+ },
+ mainPaperContainer: {
+ elevation: 3,
+ borderRadius: 2,
+ margin: 0,
+ marginBottom: theme.spacing(2),
+ background: theme.palette.background.main,
+ width: '100%', // Set the container width to 100%
+ padding: theme.spacing(2),
+ },
+ secondaryPaperContainer: {
+ elevation: 3,
+ borderRadius: 2,
+ margin: 0,
+ marginBottom: theme.spacing(2),
+ // background: theme.palette.background.main,
+ background: '#70d8bd',
+ width: '100%', // Set the container width to 100%
+ padding: theme.spacing(2),
+ },
// return {
banner: {
backgroundImage: `linear-gradient(to right, ${theme.palette.primary.light}, ${theme.palette.secondary.main})`,
@@ -110,6 +156,17 @@ const useStyles = makeStyles((theme) => ({
paddingBottom: '30px',
fontSize: '18px',
},
+ cardHoverEffect: {
+ '&:hover': {
+ transform: 'scale(1.05)', // Enlarge card on hover
+ transition: 'transform 0.3s ease-in-out', // Smooth transition for the hover effect
+ },
+ },
+ // carouselContainer: {
+ // '& .carousel .slide': {
+ // backgroundColor: (theme) => theme.palette.background.paper,
+ // },
+ // },
title: {
paddingBottom: '15px',
},
diff --git a/src/pages/pages.json b/src/pages/pages.json
new file mode 100644
index 0000000..eedc150
--- /dev/null
+++ b/src/pages/pages.json
@@ -0,0 +1,49 @@
+{
+ "carouselImages": [
+ { "image": "/images/yugioh.jpeg", "caption": "Yu-Gi-Oh!" },
+ { "image": "/images/pokemon.jpeg", "caption": "Pokemon" },
+ {
+ "image": "/images/magic-the-gathering.jpeg",
+ "caption": "Magic: The Gathering"
+ }
+ ],
+ "tiers": [
+ {
+ "title": "Deck Builder",
+ "price": "0",
+ "description": [
+ "10 users included",
+ "2 GB of storage",
+ "Help center access",
+ "Email support"
+ ],
+ "buttonText": "Sign up for free",
+ "buttonVariant": "outlined"
+ },
+ {
+ "title": "Store",
+ "subheader": "Most popular",
+ "price": "15",
+ "description": [
+ "20 users included",
+ "10 GB of storage",
+ "Help center access",
+ "Priority email support"
+ ],
+ "buttonText": "Get started",
+ "buttonVariant": "contained"
+ },
+ {
+ "title": "Collection Tracker",
+ "price": "30",
+ "description": [
+ "50 users included",
+ "30 GB of storage",
+ "Help center access",
+ "Phone & email support"
+ ],
+ "buttonText": "Contact us",
+ "buttonVariant": "outlined"
+ }
+ ]
+}
diff --git a/src/setupProxy.js b/src/setupProxy.js
new file mode 100644
index 0000000..9f0c65b
--- /dev/null
+++ b/src/setupProxy.js
@@ -0,0 +1,18 @@
+// // eslint-disable-next-line @typescript-eslint/no-var-requires
+// const { createProxyMiddleware } = require('http-proxy-middleware');
+
+// module.exports = function (app) {
+// app.use(
+// '/api',
+// createProxyMiddleware({
+// target: 'https://images.ygoprodeck.com',
+// headers: {
+// // 'Access-Control-Allow-Origin': '*',
+// crossorigin: 'anonymous',
+// // 'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE,PATCH,OPTIONS',
+// },
+// changeOrigin: true,
+// pathRewrite: { '^/api': '' },
+// })
+// );
+// };