-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
naheyansheikh
committed
Nov 29, 2024
1 parent
7426b3f
commit 3b719e6
Showing
34 changed files
with
2,239 additions
and
722 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.content-header { | ||
position: absolute; | ||
left: 230px; | ||
top: 18%; | ||
display: flex; | ||
width: 80%; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding-bottom: 4px; /* Add padding to create space above border */ | ||
border-bottom: 1px solid #9AB0E1; | ||
} | ||
|
||
.content-header h2 { | ||
font-size: 24px; | ||
font-weight: 600; | ||
color: #1E1E1E; | ||
} | ||
|
||
.button-group { | ||
display: flex; | ||
gap: 12px; /* Space between buttons */ | ||
align-items: center; | ||
} | ||
|
||
.actions-button { | ||
background: white; | ||
color: #000000; /* SECONDARY_COLOR */ | ||
border-radius: 20px; /* DEFAULT_BORDER_RADIUS */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); | ||
height: 40px; | ||
padding: 0 16px; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
cursor: pointer; | ||
font-size: 15px; | ||
font-weight: 600; | ||
} | ||
|
||
.actions-button:hover { | ||
background: #f0f5ff; | ||
} | ||
|
||
.add-button { | ||
background: #244B94; /* PRIMARY_BACKGROUND_COLOR */ | ||
color: #F7FAFF; /* PRIMARY_COLOR */ | ||
border-radius: 20px; /* DEFAULT_BORDER_RADIUS */ | ||
width: 120px; | ||
height: 40px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 6px; | ||
cursor: pointer; | ||
font-size: 15px; | ||
font-weight: 600; | ||
} | ||
|
||
.add-book-button:hover { | ||
opacity: 0.9; | ||
} | ||
|
||
.plus-icon { | ||
width: 18px; | ||
height: 18px; | ||
} | ||
|
||
.down-icon { | ||
width: 18px; | ||
height: 18px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { useLocation } from "react-router-dom"; | ||
import { PlusIcon, ChevronDownIcon } from "@heroicons/react/24/outline"; | ||
import "./ContentHeader.css"; | ||
|
||
export default function ContentHeader() { | ||
const location = useLocation(); | ||
const isHistory = location.pathname === "/history"; | ||
|
||
return ( | ||
<div className="content-header"> | ||
<h2>{isHistory ? "Log History" : "Logbooks"}</h2> | ||
<div className="button-group"> | ||
<AddButton | ||
variant={isHistory ? "history" : "logbook"} | ||
onClick={() => {}} | ||
/> | ||
<ActionsButton onClick={() => {}} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function AddButton({ variant = "logbook", onClick = () => {} }) { | ||
return ( | ||
<button onClick={onClick} className="add-button"> | ||
{variant === "history" ? "Add Logs" : "Add Book"} | ||
<PlusIcon className="plus-icon" /> | ||
</button> | ||
); | ||
} | ||
|
||
function ActionsButton({ onClick = () => {} }) { | ||
return ( | ||
<button onClick={onClick} className="actions-button"> | ||
<span>Actions</span> | ||
<ChevronDownIcon className="down-icon" /> | ||
</button> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.