Archived
Merge branch 'master' of https://github.com/makoteq/eco-hack
This commit is contained in:
commit
5e7c3a422f
3 files changed
+8
-4
No files matched your search
@@ -34,10 +34,14 @@ const getTime = (time) =>{
|
|||||||
<div className={styles.item}>
|
<div className={styles.item}>
|
||||||
<span className={styles.location}>{props.name ?? "Event name"}</span>{" "}
|
<span className={styles.location}>{props.name ?? "Event name"}</span>{" "}
|
||||||
<br></br>
|
<br></br>
|
||||||
|
<div className="d-flex justify-content-between align-items-center ">
|
||||||
<span className={styles.time}>
|
<span className={styles.time}>
|
||||||
<BIcon icon="calendar" /> {`${getDate(props.time)} ${getTime(props.time)}` ?? ""}
|
<BIcon icon="calendar" /> {`${getDate(props.time)} ${getTime(props.time)}` ?? ""}
|
||||||
</span>{" "}
|
</span>
|
||||||
<br></br>
|
<span className={styles.time}>
|
||||||
|
<BIcon icon="geo-alt-fill" /> miejsce, miasto ,kraj
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div className="d-flex justify-content-between align-items-center ">
|
<div className="d-flex justify-content-between align-items-center ">
|
||||||
<div style={{ background: color }} className={styles.block}>
|
<div style={{ background: color }} className={styles.block}>
|
||||||
{label}
|
{label}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@
|
|||||||
max-width:150px;
|
max-width:150px;
|
||||||
padding:5px;
|
padding:5px;
|
||||||
height:30px;
|
height:30px;
|
||||||
border-radius:10px;
|
border-radius:7px;
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ export const Home = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
{list.map((e, i) => {
|
{list.map((e, i) => {
|
||||||
return <EventPreview name={e.name} type={e.type} createdTime={e.created.time} time={e.time} id={e._id} key={i} />;
|
return <EventPreview name={e.name} type={e.type} lon={e.lon} lat={e.lat} createdTime={e.created.time} time={e.time} id={e._id} key={i} />;
|
||||||
})}
|
})}
|
||||||
</Stack>
|
</Stack>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user