style and backend models fix

This commit is contained in:
Maciej Kotowski committed 2021-10-02 21:30:50 +02:00
1 parent bc7cbfe11c
commit 1c768bbdea
6 files changed
+77 -22060

No files matched your search

+23 -3
View File
@@ -2,10 +2,30 @@ const mongoose = require("mongoose");
const schema = mongoose.Schema; const schema = mongoose.Schema;
const eventSchema = new schema({ const eventSchema = new schema({
mess: { name: {
type: String, type: String,
required: false, required: false,
} },
type: {
type: Number,
required: false,
},
date: {
type: String,
required: false,
},
time: {
type: Number,
required: false,
},
lat: {
type: Number,
required: false,
},
lon: {
type: Number,
required: false,
},
}); });
module.exports = mongoose.model("events", eventSchema); module.exports = mongoose.model("events", eventSchema);
+39 -22051
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -2,8 +2,8 @@ import styles from "./index.module.scss";
import leaf from "../../assets/leaf.svg" import leaf from "../../assets/leaf.svg"
export default function logo() { export default function logo() {
return ( return (
<div className="d-flex align-items-center justify-content-center"> <div className={styles.logoCon,"d-flex align-items-center justify-content-center"}>
<span>eco-meet</span> <span className={styles.logo}>eco-meet</span>
<img className={styles.leaf} src={leaf} alt="React Logo" /> <img className={styles.leaf} src={leaf} alt="React Logo" />
</div> </div>
); );
+2 -2
View File
@@ -1,4 +1,4 @@
span{ .logo{
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-weight: bold; font-weight: bold;
font-size:3.2em; font-size:3.2em;
@@ -7,7 +7,7 @@ span{
.leaf{ .leaf{
width:40px; width:40px;
} }
div{ .logoCon{
width:100%; width:100%;
height:10vh; height:10vh;
} }
+2 -1
View File
@@ -25,7 +25,8 @@ export const Home = () => {
{events.map((e, i) => { {events.map((e, i) => {
return ( return (
<div key={i} className={styles.item}> <div key={i} className={styles.item}>
{e.mess} <span className={styles.location}>{e.name}</span> <br></br>
<span>{e.date}</span>
</div> </div>
); );
})} })}
+9 -1
View File
@@ -1,12 +1,20 @@
.item { .item {
border: 1px solid black; border: 1px solid black;
border-radius: 15px;
width: 70vw; width: 70vw;
max-width: 500px; max-width: 500px;
height:10vh;
margin: 0 auto; margin: 0 auto;
padding-left:25px;
padding-top:10px;
} }
.con { .con {
text-align: center;
width: 90%; width: 90%;
height: 80%;
margin: 0 auto; margin: 0 auto;
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
} }
.location {
font-weight: bold;
font-size: 1.7em;
}