New Calender View Design
This commit is contained in:
@@ -211,7 +211,6 @@ export default function CalenderView(p) {
|
||||
flexDirection: "column",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
gap: 15
|
||||
}}>
|
||||
<WeekSelector year={currentYear} startday={currentWeekStartDay} onFunctionLeft={() => onWeekLeft()}
|
||||
onFunctionRight={() => onWeekRight()}/>
|
||||
@@ -223,8 +222,8 @@ export default function CalenderView(p) {
|
||||
gap: 5
|
||||
}}>
|
||||
|
||||
<div style={{border: "5px solid #363636", borderRadius: 10}}>
|
||||
<div style={{backgroundColor: "#363636"}}>
|
||||
<div style={{ borderRadius: 10, padding: 10, backgroundColor: "#f1f1f1"}} className={"box-shadow"}>
|
||||
<div>
|
||||
<div className={"wochen-tag-container"}>
|
||||
<div className={"wochen-tag font-big"}>Montag</div>
|
||||
<div className={"wochen-tag font-big"}>Dienstag</div>
|
||||
@@ -254,9 +253,7 @@ export default function CalenderView(p) {
|
||||
<div></div>
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
<p>Modul</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -279,9 +276,7 @@ export default function CalenderView(p) {
|
||||
<div></div>
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
<p>Modul</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -305,9 +300,7 @@ export default function CalenderView(p) {
|
||||
<div></div>
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
<p>Modul</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -331,8 +324,6 @@ export default function CalenderView(p) {
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -355,9 +346,7 @@ export default function CalenderView(p) {
|
||||
<div></div>
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
<p>Modul</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -380,9 +369,7 @@ export default function CalenderView(p) {
|
||||
<div></div>
|
||||
<div style={{maxHeight: "60%"}} className={"no-pointer-events"}>
|
||||
<p>{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}</p>
|
||||
<p>Moduel etc.</p>
|
||||
<p>Mehr Infos</p>
|
||||
<p>Raum</p>
|
||||
<p>Modul</p>
|
||||
</div>
|
||||
<div className={"resize-grab"} id={"grab"}></div>
|
||||
</div>))}
|
||||
@@ -395,55 +382,66 @@ export default function CalenderView(p) {
|
||||
{temp.map(i => (<div style={{
|
||||
width: "100%",
|
||||
height: cellHeight * 2,
|
||||
borderBottom: "1px solid #363636",
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
justifyContent: "space-around",
|
||||
alignItems: "center",
|
||||
}} className={"no-pointer-events"}>
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
|
||||
<p style={{
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
<p style={{
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
<p style={{
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
<p style={{
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
<p style={{
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
<div style={{
|
||||
borderBottom: "1px solid #363636",
|
||||
}}><p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
<p style={{
|
||||
color: "gray",
|
||||
marginTop: cellHeight - 3,
|
||||
marginRight: 120,
|
||||
fontSize: 12,
|
||||
textAlign: "center"
|
||||
}}>{internal_to_time(i + 1)}</p>
|
||||
}}>{internal_to_time(i + 1)}</p></div>
|
||||
</div>))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function DateElement(p){
|
||||
let endDateString = `${endDate.getDate()}.${endDate.getMonth()+1}.${endDate.getFullYear()}`;
|
||||
return (
|
||||
<>
|
||||
<div className="dateElement round-border">
|
||||
<div className="dateElement round-border box-shadow">
|
||||
<p>{startDateString} - {endDateString}</p>
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import CalenderView from "@/components/CalenderView";
|
||||
import Background from "@/components/Background";
|
||||
import Logout from "@/components/Logout";
|
||||
|
||||
export default function planning(p)
|
||||
{
|
||||
|
||||
return (
|
||||
<>
|
||||
<Logout/>
|
||||
<Background/>
|
||||
<CalenderView/>
|
||||
</>
|
||||
|
||||
@@ -165,19 +165,22 @@ weekSelector
|
||||
|
||||
.dateElement {
|
||||
display: flex;
|
||||
max-width: 250px;
|
||||
width: 250px;
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
height: 50px;
|
||||
width: 200px;
|
||||
padding: 20px 20px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #77932b;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.weekSelector {
|
||||
display: flex;
|
||||
padding: 5px 5px;
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -278,26 +281,24 @@ Calender View
|
||||
width: 1000px;
|
||||
gap: 5px;
|
||||
padding: 0 0 5px 0;
|
||||
background-color: #363636;
|
||||
}
|
||||
|
||||
.calender-view {
|
||||
width: 1000px;
|
||||
height: 2400px;
|
||||
background-color: #363636;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
justify-content: stretch;
|
||||
gap: 5px;
|
||||
user-select: none;
|
||||
padding: 2px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.calender-view .spalte {
|
||||
border-radius: 10px;
|
||||
width: 400px;
|
||||
background-color: white;
|
||||
background-color: #ffffff;
|
||||
display: grid;
|
||||
padding: 0 3px;
|
||||
grid-template-columns: 100%;
|
||||
@@ -332,9 +333,10 @@ Calender View
|
||||
}
|
||||
|
||||
.entry .resize-grab {
|
||||
height: 5px;
|
||||
height: 6px;
|
||||
cursor: ns-resize;
|
||||
width: 100%;
|
||||
background-color: #5a6c20;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user