Archived
style and backend models fix
This commit is contained in:
1 parent
bc7cbfe11c
commit
1c768bbdea
6 files changed
+77
-22060
No files matched your search
@@ -2,10 +2,30 @@ const mongoose = require("mongoose");
|
||||
const schema = mongoose.Schema;
|
||||
|
||||
const eventSchema = new schema({
|
||||
mess: {
|
||||
name: {
|
||||
type: String,
|
||||
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);
|
||||
Generated
+39
-22051
File diff suppressed because it is too large.
Load diff
@@ -2,8 +2,8 @@ import styles from "./index.module.scss";
|
||||
import leaf from "../../assets/leaf.svg"
|
||||
export default function logo() {
|
||||
return (
|
||||
<div className="d-flex align-items-center justify-content-center">
|
||||
<span>eco-meet</span>
|
||||
<div className={styles.logoCon,"d-flex align-items-center justify-content-center"}>
|
||||
<span className={styles.logo}>eco-meet</span>
|
||||
<img className={styles.leaf} src={leaf} alt="React Logo" />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
span{
|
||||
.logo{
|
||||
font-family: 'Poppins', sans-serif;
|
||||
font-weight: bold;
|
||||
font-size:3.2em;
|
||||
@@ -7,7 +7,7 @@ span{
|
||||
.leaf{
|
||||
width:40px;
|
||||
}
|
||||
div{
|
||||
.logoCon{
|
||||
width:100%;
|
||||
height:10vh;
|
||||
}
|
||||
@@ -25,7 +25,8 @@ export const Home = () => {
|
||||
{events.map((e, i) => {
|
||||
return (
|
||||
<div key={i} className={styles.item}>
|
||||
{e.mess}
|
||||
<span className={styles.location}>{e.name}</span> <br></br>
|
||||
<span>{e.date}</span>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
.item {
|
||||
border: 1px solid black;
|
||||
border-radius: 15px;
|
||||
width: 70vw;
|
||||
max-width: 500px;
|
||||
height:10vh;
|
||||
margin: 0 auto;
|
||||
padding-left:25px;
|
||||
padding-top:10px;
|
||||
}
|
||||
.con {
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
height: 80%;
|
||||
margin: 0 auto;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
.location {
|
||||
font-weight: bold;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
Reference in new issue
Block a user