update 5 files

master
mahdi 3 years ago
parent 2e4c131c71
commit 4eb08dcdd4
  1. 4
      src/App.js
  2. 2
      src/components/CurrentDateShamsi/index.js
  3. 6
      src/components/DateTime/index.js
  4. 2
      src/components/DistributedData/index.js
  5. 4
      src/components/UserProfileInfo/index.js

@ -140,8 +140,8 @@ function App() {
{/* <PopupCard /> */} {/* <PopupCard /> */}
{/* <TimeLineComponent /> */} {/* <TimeLineComponent /> */}
{/* <CardTrelloDesign /> */} {/* <CardTrelloDesign /> */}
<ReligiousTimes /> {/* <ReligiousTimes /> */}
<DistributedData /> {/* <DistributedData /> */}
{/* <CardDesign1 /> */} {/* <CardDesign1 /> */}
{/* <CardDesign2 /> */} {/* <CardDesign2 /> */}
{/* <LeafletMap /> */} {/* <LeafletMap /> */}

@ -5,7 +5,7 @@ const CurrentDateShamsi = ({ color, fontSize }) => {
const option = { const option = {
weekday: "long", weekday: "long",
year: "numeric", year: "numeric",
month: "long", month: "numeric",
day: "numeric", day: "numeric",
}; };
const todayDate = date.toLocaleDateString("fa-IR", option); const todayDate = date.toLocaleDateString("fa-IR", option);

@ -8,11 +8,11 @@ const DateTime = () => {
<div className="flex flex-col"> <div className="flex flex-col">
{/* ? time */} {/* ? time */}
<div className="flex flex-row items-center mb-2"> <div className="flex flex-row items-center mb-2">
<span className="text-xs ml-2 text-[#0F0543] ">ساعت</span> <span className="text-sm ml-2 text-[#0F0543] ">ساعت</span>
<CurrentTime color={"text-[#2A527A]"} fontSize={"text-xs"} /> <CurrentTime color={"text-[#2A527A]"} fontSize={"text-sm"} />
</div> </div>
{/* ? date */} {/* ? date */}
<CurrentDateShamsi color={"text-[#2A527A]"} fontSize={"text-xs"} /> <CurrentDateShamsi color={"text-[#2A527A]"} fontSize={"text-sm"} />
</div> </div>
); );
}; };

@ -2,7 +2,7 @@ import React from "react";
const DistributedData = ({ items }) => { const DistributedData = ({ items }) => {
return ( return (
<div className="mt-20 flex flex-col items-center gap-y-4 max-w-[550px] mx-auto bg-white shadow-sm rounded-lg pt-3"> <div className="mt-20 flex flex-col items-center gap-y-4 max-w-[750px] mx-auto bg-white shadow-sm rounded-lg pt-3">
{items.map((row, index) => ( {items.map((row, index) => (
<div <div
className={`flex flex-row items-center justify-around w-full border-[#9DACD344] pb-3 ${ className={`flex flex-row items-center justify-around w-full border-[#9DACD344] pb-3 ${

@ -6,10 +6,10 @@ import DateTime from "../DateTime";
const UserProfileInfo = () => { const UserProfileInfo = () => {
return ( return (
<div className="flex flex-row items-center bg-red-50 w-fit"> <div className="flex flex-row items-center w-fit">
<DateTime />{" "} <DateTime />{" "}
<div <div
className="w-0.5 bg-[#9DACD344] mx-2" className="w-0.5 bg-[#9DACD344] mx-4"
style={{ height: "54px" }} style={{ height: "54px" }}
></div> ></div>
<ProfileInfo /> <ProfileInfo />

Loading…
Cancel
Save