Skip to content

Commit

Permalink
change navbar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
0adiy committed Jun 11, 2024
1 parent a61ca5f commit 0d617c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ fork = "0.1.23"
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

[profile.dev]
incremental = true # Compile your binary in smaller steps.

[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one at a time
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function SearchBox() {
}, []);

return (
<form className='flex items-center gap-2 flex-1'>
<form>
<label className='input input-bordered flex items-center gap-2 bg-base-300 w-80'>
<input
ref={inputRef}
Expand Down
6 changes: 4 additions & 2 deletions src/layouts/About.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { Cog8ToothIcon } from "@heroicons/react/24/outline";
import { usePreferenceStore } from "../store/usePreferenceStore.js";

const About = () => {
const { theme, setTheme } = usePreferenceStore();
return (
<>
<button
className='btn btn-ghost normal-case text-xl ml-2'
className='btn normal-case text-xl ml-2'
onClick={() => document.getElementById("about_modal").showModal()}
>
<img src='/icon.png' className='size-8' />
<Cog8ToothIcon className='size-6' />
</button>
<dialog id='about_modal' className='modal'>
<div className='modal-box'>
<h3 className='font-bold text-lg'>About</h3>
<img src='/icon.png' className='size-40 mx-auto' />
<p className='py-4'>
A beautiful meme manager developed by an equally beautiful
developer. Focusing on performance and UI with Rust and Tauri. Made
Expand Down
8 changes: 6 additions & 2 deletions src/layouts/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export default function Navbar() {
const { viewMode, setListMode, setGridMode } = usePreferenceStore();
return (
<div className='navbar bg-base-100 sticky top-0 z-10'>
<SearchBox />
<img src='/icon.png' className='size-9' />
<p className='hidden md:block text-xl font-bold mx-4'>Meme Manager</p>
<div className='mx-auto'>
<SearchBox />
</div>
<MemeForm />
<div className='join'>
<button
Expand All @@ -24,7 +28,7 @@ export default function Navbar() {
>
<TableCellsIcon className='size-6' />
</button>
</div>
</div>{" "}
<About />
</div>
);
Expand Down

0 comments on commit 0d617c0

Please sign in to comment.