Test date element with hard-coded struct info
This commit is contained in:
1 parent
e3ea13d07d
commit
d43a6ed153
1 file changed
+16
-15
+16
-15
@@ -1,3 +1,4 @@
|
|||||||
|
use crate::common::DateInfo;
|
||||||
use crate::components::{DashboardButton, Date};
|
use crate::components::{DashboardButton, Date};
|
||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
|
|
||||||
@@ -31,30 +32,30 @@ pub fn TestPage() -> impl IntoView {
|
|||||||
<div class="rounded-lg shadow-lg overflow-hidden">
|
<div class="rounded-lg shadow-lg overflow-hidden">
|
||||||
<div class="bg-red-900 text-white px-4 py-3 shadow-lg \
|
<div class="bg-red-900 text-white px-4 py-3 shadow-lg \
|
||||||
shadow-[inset_0_2px_4px_0_rgba(0,0,0,0.3)">
|
shadow-[inset_0_2px_4px_0_rgba(0,0,0,0.3)">
|
||||||
<h3 class="text-white font-bold">Calendar</h3>
|
<h3 class="text-white font-bold">Important Dates</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-6 space-y-6">
|
<div class="p-6 space-y-6">
|
||||||
<div class="bg-white rounded-md p-3 space-y-2">
|
<div class="bg-white rounded-md p-3 space-y-2">
|
||||||
<Date
|
<Date
|
||||||
title="Form opens"
|
important_dates=vec!{
|
||||||
date="November 15, 2025"
|
DateInfo {
|
||||||
description="Edit user profile"
|
title: "Title".to_string(),
|
||||||
|
date: "Nov 4".to_string(),
|
||||||
|
description: "This is a test".to_string(),
|
||||||
|
}
|
||||||
|
}
|
||||||
icon="/Check_Style2.png"
|
icon="/Check_Style2.png"
|
||||||
status="Open"
|
status="Open"
|
||||||
/>
|
/>
|
||||||
<Date
|
<Date
|
||||||
title="Form closes"
|
important_dates=vec!{
|
||||||
date="November 15, 2025"
|
DateInfo {
|
||||||
description="Edit user profile"
|
title: "Scholarships Due".to_string(),
|
||||||
|
date: "Nov 4".to_string(),
|
||||||
|
description: "This is a test".to_string(),
|
||||||
|
}
|
||||||
|
}
|
||||||
icon="/Warning_Style2.png"
|
icon="/Warning_Style2.png"
|
||||||
status="Deadline"
|
|
||||||
|
|
||||||
/>
|
|
||||||
<Date
|
|
||||||
title="Students apply"
|
|
||||||
date="November 15, 2025"
|
|
||||||
description="Edit user profile"
|
|
||||||
icon="/Calendar.png"
|
|
||||||
status="Upcoming"
|
status="Upcoming"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user