Skip to content

Commit

Permalink
updates crate description & fix btn styles (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Automated Release Test <[email protected]>
  • Loading branch information
arya2 and Automated Release Test authored Mar 12, 2024
1 parent 27d5b6a commit c14b7bf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zebra-app"
version = "0.0.0-alpha.0"
description = "A Tauri App"
description = "Zebra App"
authors = ["you"]
edition = "2021"

Expand Down
81 changes: 39 additions & 42 deletions src/pages/Configure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ const FloatingButtonContainer = styled("div")`
padding: 6px 8px 0 0;
border-radius: 8px;
box-shadow: #1c1c1c 0 0 6px 2px, #1c1c1c 0 0 12px 2px, #1c1c1c 0 0 24px 2px;
> button {
outline: none;
border: solid 2px white;
color: white;
padding: 8px 14px;
margin: 12px;
border-radius: 8px;
font-size: 14px;
text-transform: uppercase;
cursor: pointer;
letter-spacing: 1px;
background: transparent;
}
`;

const Button = styled("button")`
outline: none;
border: solid 2px white;
color: white;
padding: 8px 14px;
margin: 12px;
border-radius: 8px;
font-size: 14px;
text-transform: uppercase;
cursor: pointer;
letter-spacing: 1px;
background: transparent;
&:hover {
color: #aaa;
border-color: #aaa;
Expand Down Expand Up @@ -114,38 +116,33 @@ const Configuration = () => {
<h1>Configuration</h1>

{is_editable() ? (
<>
<ConfigTextArea
value={edited_config() || ""}
onChange={({ currentTarget: { value } }) =>
set_edited_config(value)
}
/>
<FloatingButtonContainer>
<Button onClick={discard_changes}>Discard Changes</Button>
<Button onClick={save_and_apply}>Save & Apply</Button>
</FloatingButtonContainer>
</>
<ConfigTextArea
value={edited_config() || ""}
onChange={({ currentTarget: { value } }) => set_edited_config(value)}
/>
) : (
<>
<ConfigDisplay>{config_contents}</ConfigDisplay>
<FloatingButtonContainer>
{is_saving() ? (
<span
style={{
padding: "16px",
"margin-top": "16px",
display: "inline-block",
}}
>
Saving and restarting Zebra ...
</span>
) : (
<Button onClick={start_editing}>Edit</Button>
)}
</FloatingButtonContainer>
</>
<ConfigDisplay>{config_contents}</ConfigDisplay>
)}
<FloatingButtonContainer>
{is_editable() ? (
<>
<Button onClick={discard_changes}>Discard Changes</Button>
<Button onClick={save_and_apply}>Save & Apply</Button>
</>
) : is_saving() ? (
<span
style={{
padding: "16px",
"margin-top": "16px",
display: "inline-block",
}}
>
Saving and restarting Zebra ...
</span>
) : (
<Button onClick={start_editing}>Edit</Button>
)}
</FloatingButtonContainer>
</PageContainer>
);
};
Expand Down

0 comments on commit c14b7bf

Please sign in to comment.