parent
3ca11567e1
commit
681ae1bb7e
14 changed files with 1493 additions and 12 deletions
@ -0,0 +1,16 @@ |
||||
import "../style/calendar/Calendar.scss"; |
||||
// import BigCalendar from './BigCalendar';
|
||||
import BigCalendar2 from "./BigCalendar2"; |
||||
import Events from "./Events"; |
||||
|
||||
const Calendar = () => { |
||||
return ( |
||||
<div className="Calendar"> |
||||
<Events /> |
||||
{/* <BigCalendar/> */} |
||||
<BigCalendar2 /> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default Calendar; |
@ -0,0 +1,171 @@ |
||||
/* @font-face { |
||||
font-family: IRANSansBold; |
||||
src: url(../../../assets/font/IRANSans/IRANSans_Bold.ttf); |
||||
} */ |
||||
|
||||
/* @font-face { |
||||
font-family: IRANSans; |
||||
src: url(../../../assets/font/IRANSans/IRANSans.ttf); |
||||
} */ |
||||
|
||||
*{ |
||||
margin: 0; |
||||
padding: 0; |
||||
box-sizing: border-box; |
||||
} |
||||
|
||||
.date-boxm{ |
||||
width: 100%; |
||||
/* height: 106px; */ |
||||
/* border-radius: 17px; */ |
||||
/* box-shadow: 0 0 38px -15px #ADADAD; */ |
||||
direction: rtl; |
||||
background-color: white; |
||||
padding: 15px 0px; |
||||
} |
||||
|
||||
.date-box-p1m{ |
||||
width: 100%; |
||||
display: inline-flex; |
||||
align-items: center; |
||||
justify-content: space-between; |
||||
margin-top: 10px; |
||||
|
||||
} |
||||
|
||||
.date-box-p1-year-and-monthm{ |
||||
display: flex; |
||||
align-items: center; |
||||
/* font-family: IRANSansBold; */ |
||||
/* font-family: IRANSansX-Bold; */ |
||||
font-size: 19px; |
||||
font-weight: bold; |
||||
color: #df1452; |
||||
|
||||
} |
||||
|
||||
.dbp1-monthm{ |
||||
margin-left: 2px; |
||||
|
||||
} |
||||
|
||||
.dbp1-yearm{ |
||||
margin-right: 2px; |
||||
|
||||
/* font-family: IRANSansXFaNum-Bold; */ |
||||
} |
||||
|
||||
.date-box-p1-timem{ |
||||
display: flex; |
||||
align-items: center; |
||||
/* font-family: IRANSans; */ |
||||
/* font-family: IRANSansX-Regular; */ |
||||
font-size: 12px; |
||||
border-radius: 10px; |
||||
padding: 1.5px 3px; |
||||
background-color: #eac8d5; |
||||
border-radius: 2px; |
||||
color: #df1452 !important; |
||||
} |
||||
|
||||
|
||||
.date-box-p2m{ |
||||
width: 100%; |
||||
margin: 0 auto; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
margin-top: 6px; |
||||
} |
||||
|
||||
.date-box-p2-itemm{ |
||||
text-align: center; |
||||
position: relative; |
||||
cursor: default; |
||||
} |
||||
|
||||
.dbp2i-daynamem{ |
||||
font-size: 11px; |
||||
font-weight: bold; |
||||
/* font-family: IRANSans; */ |
||||
/* font-family: IRANSansX-Regular; */ |
||||
color: #a2b4cb; |
||||
} |
||||
|
||||
.dbp2i-datem{ |
||||
font-size: 15px; |
||||
font-weight: bold; |
||||
margin-top: 10px; |
||||
padding: 2px 4px; |
||||
padding-bottom:0px ; |
||||
color: #4b0017; |
||||
/* font-family: IRANSansXFaNum-Regular; */ |
||||
} |
||||
|
||||
.date-box-p2-item:nth-child(7) .dbp2i-daynamem{ |
||||
color: #FFC491 !important; |
||||
} |
||||
|
||||
.date-box-p2-item:nth-child(7) .dbp2i-datem{ |
||||
color: #F6923B !important; |
||||
} |
||||
|
||||
.dbp2i-have-Examm{ |
||||
color: #E3FC08; |
||||
position: absolute; |
||||
bottom: -15px; |
||||
left: 50%; |
||||
transform: translateX(-50%); |
||||
} |
||||
|
||||
.date-box-p3m{ |
||||
width: 90%; |
||||
margin: 0 auto; |
||||
margin-top: 18px; |
||||
/* font-family: IRANSansX-Regular; */ |
||||
font-size: 13px; |
||||
|
||||
|
||||
} |
||||
|
||||
.date-box-p3-itemm{ |
||||
/* display: none; */ |
||||
max-height: 0px; |
||||
transform: scaleY(0); |
||||
transform-origin: top; |
||||
transition: all 0.5s; |
||||
display: flex; |
||||
} |
||||
|
||||
.date-box-p3-item-itemm{ |
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
|
||||
.date-box-p3-item-item-iconm{ |
||||
font-size: 16px; |
||||
margin-left: 3px; |
||||
} |
||||
|
||||
.date-box-p3-item-activem{ |
||||
/* display: block; */ |
||||
max-height: 200px; |
||||
transform: scaleY(1); |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
/* --------responsive-setting---------------------------------------------------------- */ |
||||
|
||||
@media screen and (max-width: 1270px){ |
||||
.dbp2i-daynamem{ |
||||
font-size: 10px; |
||||
} |
||||
} |
||||
|
||||
@media screen and (max-width: 1160px){ |
||||
.dbp2i-daynamem{ |
||||
font-size: 9px; |
||||
} |
||||
} |
@ -0,0 +1,44 @@ |
||||
import { useSelector } from "react-redux"; |
||||
import "../style/calendar/Events.scss"; |
||||
|
||||
const Events = () => { |
||||
// const [eventList,setEventList] = useState([
|
||||
// {
|
||||
// id:1,
|
||||
// title:"آزمون فلسفه زندگی",
|
||||
// time:'11:00'
|
||||
// },
|
||||
// {
|
||||
// id:2,
|
||||
// title:"آزمون موسیقی شناسی",
|
||||
// time:'18:00'
|
||||
// },
|
||||
// ])
|
||||
|
||||
const state = useSelector((state) => state.default); |
||||
console.log(state.CalendarSelectedDay); |
||||
// const [eventList,setEventList] = useState(state.CalendarEventList);
|
||||
console.log(state.CalendarEventList); |
||||
return ( |
||||
<div className="Events"> |
||||
<div className="Events-title-box"> |
||||
<div className="Events-title-box-date"> |
||||
{state.CalendarSelectedDay.year}/{state.CalendarSelectedDay.month}/ |
||||
{state.CalendarSelectedDay.day} |
||||
</div> |
||||
<div className="Events-title-box-text">رویدادها</div> |
||||
</div> |
||||
<div className="Events-body"> |
||||
{state.CalendarEventList.map((item) => ( |
||||
<div key={item.id} className="Events-body-item"> |
||||
<div className="Events-body-item-name">{item.name}</div> |
||||
<div className="Events-body-item-time">{item.time}</div> |
||||
</div> |
||||
))} |
||||
</div> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default Events; |
||||
|
@ -0,0 +1,21 @@ |
||||
import React from "react"; |
||||
import DateBox from "../../../components/dateBox"; |
||||
import MyExamList from "../../../components/exam/Carousel"; |
||||
import ExamResults from "../../../components/exam/resault"; |
||||
|
||||
const MobileHome = () =>{ |
||||
return( |
||||
<div className="w-full flex flex-col px-4 mt-20 rtl pb-40"> |
||||
<h1 className="font-black text-3xl w-full text-right text-red52">سلام 👋</h1> |
||||
<h1 className="font-black text-2xl pt-1 w-full text-right text-red26 ">سبحان قاسمی</h1> |
||||
|
||||
<div> |
||||
<DateBox /> |
||||
</div> |
||||
<MyExamList /> |
||||
<ExamResults /> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default MobileHome; |
Loading…
Reference in new issue