Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 54 additions & 8 deletions preview/assets/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 50px;
margin: 0;
height: calc(100vh - 4rem);
}

#hero > h1,
Expand All @@ -14,6 +14,7 @@
font-family: Arial, Helvetica, sans-serif;
font-size: 1.5rem;
font-weight: 500;
text-align: center;
}

#hero > h1 {
Expand All @@ -31,9 +32,37 @@
margin-bottom: 50px;
}

#scroll-down-icon {
position: absolute;
top: 95%;
left: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
fill: none;
stroke: var(--secondary-color-4);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
animation: scroll-down-icon-animation 3000ms ease-in-out infinite;
}

@keyframes scroll-down-icon-animation {
0% {
transform: translateY(0);
}
50% {
transform: translateY(10px);
}
100% {
transform: translateY(0);
}
}

#hero-search-container {
display: flex;
width: 100%;
width: 80%;
padding: 10px;
max-width: 800px;
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -72,14 +101,31 @@
background-color: var(--primary-color-3);
}

#version-compatibility-notice {
.explaination {
margin-bottom: 1rem;
padding-left: 5vw;
padding-right: 5vw;
min-width: 50vw;
text-align: center;
}

.explaination-box h3 {
margin-top: 0;
margin-bottom: 0.5rem;
}

.explaination-box {
display: flex;
flex-direction: row;
max-width: 30vw;
width: 10rem;
min-height: 10rem;
box-sizing: border-box;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.5em 1em;
padding: 1rem;
border: 1px solid var(--primary-color-6);
border-radius: 0.5rem;
margin: 1em auto;
background: var(--primary-warning-color);
gap: 1em;
margin: 0.5rem;
background-color: var(--primary-color-2);
}
7 changes: 4 additions & 3 deletions preview/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ body {
}

.code-block[data-collapsed="true"] {
height: 10em;
height: 20em;
backdrop-filter: blur(1px);
mask: linear-gradient(
to bottom,
Expand Down Expand Up @@ -155,7 +155,7 @@ body {
.component-preview-frame {
display: flex;
width: 100%;
min-height: 25vh;
min-height: 20rem;
max-height: 100%;
box-sizing: border-box;
flex-direction: column;
Expand Down Expand Up @@ -191,6 +191,7 @@ body {
margin-right: 5vw;
font-size: 1em;
overflow-x: scroll;
max-width: 90vw;
}

.component-installation {
Expand All @@ -211,7 +212,7 @@ body {
.component-code {
display: flex;
width: 100%;
min-height: 25vh;
min-height: 20rem;
max-height: 100%;
box-sizing: border-box;
flex-direction: column;
Expand Down
15 changes: 4 additions & 11 deletions preview/src/components/date_picker/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ pub fn DatePicker(props: DatePickerProps) -> Element {
disabled: props.disabled,
read_only: props.read_only,
attributes: props.attributes,
date_picker::DatePickerPopover {
popover_root: PopoverRoot,
{props.children}
}
date_picker::DatePickerPopover { popover_root: PopoverRoot, {props.children} }
}
}
}
Expand All @@ -40,10 +37,8 @@ pub fn DatePickerInput(props: DatePickerInputProps) -> Element {
attributes: props.attributes,
{props.children}
DatePickerPopoverTrigger {}
DatePickerPopoverContent {
align: ContentAlign::Center,
date_picker::DatePickerCalendar {
calendar: Calendar,
DatePickerPopoverContent { align: ContentAlign::Center,
date_picker::DatePickerCalendar { calendar: Calendar,
CalendarHeader {
CalendarNavigation {
CalendarPreviousMonthButton {}
Expand All @@ -62,9 +57,7 @@ pub fn DatePickerInput(props: DatePickerInputProps) -> Element {
#[component]
pub fn DatePickerPopoverTrigger(props: PopoverTriggerProps) -> Element {
rsx! {
PopoverTrigger {
aria_label: "Show Calendar",
attributes: props.attributes,
PopoverTrigger { aria_label: "Show Calendar", attributes: props.attributes,
svg {
class: "date-picker-expand-icon",
view_box: "0 0 24 24",
Expand Down
5 changes: 1 addition & 4 deletions preview/src/components/input/variants/main/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ pub fn Demo() -> Element {
value: name,
}
if !name.read().is_empty() {
p {
id: "input-greeting",
"Hello, {name}!"
}
p { id: "input-greeting", "Hello, {name}!" }
}
}
}
Loading
Loading