Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 829804d733 |
@@ -6,8 +6,6 @@ import { markers } from "../../../consts/markers";
|
|||||||
import useMarker from "../../../store/useMarker";
|
import useMarker from "../../../store/useMarker";
|
||||||
import ZoomControlls from "./ZoomControlls";
|
import ZoomControlls from "./ZoomControlls";
|
||||||
import { Clouds } from "./Clouds";
|
import { Clouds } from "./Clouds";
|
||||||
import { getWeather } from "../../../api/weather";
|
|
||||||
import { useEffect } from "react";
|
|
||||||
import WeatherWidget from "./WeatherWidget";
|
import WeatherWidget from "./WeatherWidget";
|
||||||
|
|
||||||
const Map = () => {
|
const Map = () => {
|
||||||
@@ -21,12 +19,6 @@ const Map = () => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
getWeather().then((data) => {
|
|
||||||
console.log(data);
|
|
||||||
});
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TransformWrapper
|
<TransformWrapper
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const WeatherWidget = () => {
|
|||||||
const temp = Math.round(data[0].main.temp);
|
const temp = Math.round(data[0].main.temp);
|
||||||
setTemperature(temp);
|
setTemperature(temp);
|
||||||
});
|
});
|
||||||
}, []);
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="absolute top-[73.5px] left-4 bg-black rounded-2xl z-50 text-white bg-opacity-40 w-[144px] pt-4">
|
<div className="absolute top-[73.5px] left-4 bg-black rounded-2xl z-50 text-white bg-opacity-40 w-[144px] pt-4">
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ function FavoritesPage2() {
|
|||||||
/>
|
/>
|
||||||
</button> */}
|
</button> */}
|
||||||
</div>
|
</div>
|
||||||
<div className="pt-4 grid grid-cols-4 gap-4">
|
<div className="pt-4 grid xl:grid-cols-4 tablet:grid-cols-2 grid-cols-1 gap-4">
|
||||||
{favoriteUnits.map((unit) => (
|
{favoriteUnits.map((unit) => (
|
||||||
<div
|
<div
|
||||||
key={unit.id}
|
key={unit.id}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ function UnitTypesPage() {
|
|||||||
<p className="">Unit Types</p>
|
<p className="">Unit Types</p>
|
||||||
<p className="text-[#73787C]">8</p>
|
<p className="text-[#73787C]">8</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-4 gap-4">
|
<div className="grid xl:grid-cols-4 tablet:grid-cols-2 grid-cols-1 xl:gap-4 tablet:gap-[12px] gap-2">
|
||||||
<UnitTypeCard
|
<UnitTypeCard
|
||||||
wing="West Wing"
|
wing="West Wing"
|
||||||
floor="Floor 5-21"
|
floor="Floor 5-21"
|
||||||
|
|||||||
@@ -2,7 +2,11 @@
|
|||||||
export default {
|
export default {
|
||||||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {
|
||||||
|
screens: {
|
||||||
|
tablet: "768px",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user