Skip to content

Commit

Permalink
improve mobile styling
Browse files Browse the repository at this point in the history
  • Loading branch information
NwinNwin committed Aug 14, 2023
1 parent 25c44ec commit e0b0c9f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>ZotnFound</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateModal/CreateModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function CreateModal({
<>
{isCreate ? (
<Button
h={{ base: "8vh", md: "7vh" }}
h={{ base: "10vh", md: "7vh" }}
w={{ base: "40vw", md: "8vw" }}
_hover={{ bg: "#b4dbd9" }}
backgroundColor="#61b895"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export default function Home() {
<Box
display={{ base: "block", md: "none" }}
position="fixed"
bottom="5%"
bottom="2.5%"
width="100vw"
>
<CreateModal
Expand Down
6 changes: 2 additions & 4 deletions src/components/InfoModal/InfoModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ export default function InfoModal({ setData, isOpen, onClose, props }) {
onClose();
setLoading(false);
axios
.delete(
`${process.env.REACT_APP_AWS_BACKEND_URL}/items/${props.id}`
)
.delete(`${process.env.REACT_APP_AWS_BACKEND_URL}/items/${props.id}`)
.then(() => console.log("Success"))
.catch((err) => console.log(err));
setData((prevItems) => {
Expand All @@ -54,7 +52,7 @@ export default function InfoModal({ setData, isOpen, onClose, props }) {
const formattedDate = formatDate(new Date(props.date));

return (
<Modal isOpen={isOpen} onClose={onClose}>
<Modal isOpen={isOpen} onClose={onClose} size={{ base: "full", md: "md" }}>
<ModalOverlay />
<ModalContent>
<ModalCloseButton size="lg" />
Expand Down
3 changes: 1 addition & 2 deletions src/components/Map/Map.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

@media only screen and (max-width: 600px) {
.map-container {
height: 70vh;
height: 79vh;
width: 95vw;
border-radius: 30px;
z-index: 0;
}
}
1 change: 1 addition & 0 deletions src/components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export default function Map({
center={centerPosition}
zoom={17}
zoomControl={false}
attributionControl={false}
>
<TileLayer
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
Expand Down
22 changes: 11 additions & 11 deletions src/components/Map/MapIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,57 +19,57 @@ import fly_img from "../../assets/images/fly_img.png";

const headphoneLost = L.icon({
iconUrl: headphone_red,
iconSize: [50, 50],
iconSize: [40, 40],
});

const headphoneFound = L.icon({
iconUrl: headphone_green,
iconSize: [50, 50],
iconSize: [40, 40],
});

const phoneLost = L.icon({
iconUrl: phone_red,
iconSize: [50, 50],
iconSize: [40, 40],
});

const phoneFound = L.icon({
iconUrl: phone_green,
iconSize: [50, 50],
iconSize: [40, 40],
});

const keyLost = L.icon({
iconUrl: key_red,
iconSize: [50, 50],
iconSize: [40, 40],
});

const keyFound = L.icon({
iconUrl: key_green,
iconSize: [50, 50],
iconSize: [40, 40],
});

const walletLost = L.icon({
iconUrl: wallet_red,
iconSize: [50, 50],
iconSize: [40, 40],
});

const walletFound = L.icon({
iconUrl: wallet_green,
iconSize: [50, 50],
iconSize: [40, 40],
});

const othersLost = L.icon({
iconUrl: others_red,
iconSize: [50, 50],
iconSize: [40, 40],
});

const othersFound = L.icon({
iconUrl: others_green,
iconSize: [50, 50],
iconSize: [40, 40],
});

export const othersDrag = L.icon({
iconUrl: others_black,
iconSize: [50, 50],
iconSize: [40, 40],
});

export const flyImg = L.icon({
Expand Down

0 comments on commit e0b0c9f

Please sign in to comment.