diff --git a/app/components/plantIcons.tsx b/app/components/plantIcons.tsx index 7926e03..dcf5fe7 100644 --- a/app/components/plantIcons.tsx +++ b/app/components/plantIcons.tsx @@ -19,28 +19,28 @@ interface PlantIconsProps { const PlantIcons: React.FC = ({plantDetail}) => (
{plantDetail.poisonous_to_humans === 1 && ( - danger + danger )} {plantDetail.drought_tolerant && ( - drought_tolerant + drought_tolerant )} {plantDetail.indoor && ( - indoor + indoor )} {plantDetail.flowers && ( - flowers + flowers )} {plantDetail.leaf && ( - leaf + leaf )} {(plantDetail.edible_fruit || plantDetail.edible_leaf) && ( - edible + edible )} {plantDetail.medicinal && ( - medicinal + medicinal )} {plantDetail.tropical && ( - rare + rare )}
); diff --git a/app/filtering/Filter.css b/app/filtering/Filter.css index 6e247b3..fcc69b2 100644 --- a/app/filtering/Filter.css +++ b/app/filtering/Filter.css @@ -6,7 +6,7 @@ max-height: 100vh; overflow-y: auto; background-color: white; - padding: 200px; + padding: 50px 200px; } .filterPart { @@ -15,7 +15,7 @@ align-items: left; justify-content: right; /* width: 185em; */ - padding: 20px; + padding: 0px 20px; } @@ -24,7 +24,7 @@ background-color: rgb(235, 249, 235); color:black; flex: 1; - font-size: 50px; + font-size: 25px; text-align: left; border:none; padding:0; @@ -51,7 +51,7 @@ padding-top: 20px; overflow: auto; justify-content: center; - font-size: 60px; + font-size: 25px; } .filterBlock { height: 400px; @@ -75,7 +75,7 @@ /* name of filter */ .right-align { text-align: start; - font-size: 35px; + font-size: 25px; } @@ -197,3 +197,61 @@ details { justify-content: space-evenly; } + + + +@media (max-width: 850px) { + .main-filter { + padding: 20px; + margin: 0; + display: flex; + flex-direction: column; + } + + .filterPart { + flex-direction: column; + } + + #full-width { + font-size: 20px; + } + + .filterBlock { + width: 100%; + border-radius: 0; + padding: 20px; + margin: 0; + } + + .scroll-object1 { + width: 100%; + border-radius: 0; + } + + .information { + font-size: 20px; /* Adjust font size for smaller screens */ + padding: 10px; /* Adjust padding for smaller screens */ + margin: 0; + width: 95vw; + + } + + .container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 100%; + } + + .filterBlock { + width: 92vw; + margin: 0; + text-align: center; + } + + #img-b { + width: 92vw; + } +} + diff --git a/app/filtering/filter.jsx b/app/filtering/filter.jsx index 57986d6..2567bff 100644 --- a/app/filtering/filter.jsx +++ b/app/filtering/filter.jsx @@ -133,7 +133,8 @@ export default function Filter(props) {

{props.speciesList.common_name || "No name yet"}

- backup + + backup
@@ -182,7 +183,7 @@ export default function Filter(props) { {props.speciesList["pruning_month"] && ( - The best month to prune the plant is {props.speciesList["pruning_month"]} and + The best month to prune the plant is{" "} {props.speciesList["pruning_month"].join(", ")} and{" "} )} diff --git a/app/globals.css b/app/globals.css index 14a1029..89e63bf 100644 --- a/app/globals.css +++ b/app/globals.css @@ -118,4 +118,11 @@ body > .navbar { } .nav-item:hover .nav-link { background-color:#b9ffb4; - } \ No newline at end of file + } + + +@media (max-width: 600px) { + .navbar-nav .nav-link { + width: 100%; /* Make the navbar links take up the full width */ + } +} \ No newline at end of file