-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added browser db, made dark mode the default, changed homepage ui, an…
…d a few bugfixes and improvements here and there
- Loading branch information
Showing
13 changed files
with
442 additions
and
180 deletions.
There are no files selected for viewing
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,59 @@ | ||
#left-pane div[data-path="%2Fa%2F%5B0%5D"], | ||
#left-pane div[data-path="%2Fa"], | ||
#left-pane div[data-path="%2Fa%2F%5B1%5D"], | ||
#left-pane div[data-path="%2Fb%2Fc%2Fd"], | ||
#left-pane div[data-path="%2Fb%2Fc"], | ||
#left-pane div[data-path="%2Fb"] { | ||
--background-color-custom: #F6D283 | ||
} | ||
|
||
#left-pane div[data-path="%2Fa%2F%5B0%5D"]>div:first-child>div, | ||
#left-pane div[data-path="%2Fa"]>div:first-child>div, | ||
#left-pane div[data-path="%2Fa%2F%5B1%5D"]>div:first-child>div, | ||
#left-pane div[data-path="%2Fb%2Fc%2Fd"]>div:first-child>div, | ||
#left-pane div[data-path="%2Fb%2Fc"]>div:first-child>div, | ||
#left-pane div[data-path="%2Fb"]>div:first-child>div { | ||
color: #292D1C !important; | ||
--jse-key-color: #292D1C !important; | ||
background-color: var(--background-color-custom) !important | ||
} | ||
|
||
#left-pane div[data-path="%2Fa%2F%5B0%5D"]:first-child, | ||
#left-pane div[data-path="%2Fa"]:first-child, | ||
#left-pane div[data-path="%2Fa%2F%5B1%5D"]:first-child, | ||
#left-pane div[data-path="%2Fb%2Fc%2Fd"]:first-child, | ||
#left-pane div[data-path="%2Fb%2Fc"]:first-child, | ||
#left-pane div[data-path="%2Fb"]:first-child { | ||
color: #292D1C !important; | ||
--jse-selection-background-inactive-color: var(--background-color-custom) !important | ||
} | ||
|
||
#right-pane div[data-path="%2Fa%2F%5B0%5D"], | ||
#right-pane div[data-path="%2Fa"], | ||
#right-pane div[data-path="%2Fa%2F%5B1%5D"], | ||
#right-pane div[data-path="%2Fb%2Fc%2Fd"], | ||
#right-pane div[data-path="%2Fb%2Fc"], | ||
#right-pane div[data-path="%2Fb"] { | ||
--background-color-custom: #F6D283 | ||
} | ||
|
||
#right-pane div[data-path="%2Fa%2F%5B0%5D"]>div:first-child>div, | ||
#right-pane div[data-path="%2Fa"]>div:first-child>div, | ||
#right-pane div[data-path="%2Fa%2F%5B1%5D"]>div:first-child>div, | ||
#right-pane div[data-path="%2Fb%2Fc%2Fd"]>div:first-child>div, | ||
#right-pane div[data-path="%2Fb%2Fc"]>div:first-child>div, | ||
#right-pane div[data-path="%2Fb"]>div:first-child>div { | ||
color: #292D1C !important; | ||
--jse-key-color: #292D1C !important; | ||
background-color: var(--background-color-custom) !important | ||
} | ||
|
||
#right-pane div[data-path="%2Fa%2F%5B0%5D"]:first-child, | ||
#right-pane div[data-path="%2Fa"]:first-child, | ||
#right-pane div[data-path="%2Fa%2F%5B1%5D"]:first-child, | ||
#right-pane div[data-path="%2Fb%2Fc%2Fd"]:first-child, | ||
#right-pane div[data-path="%2Fb%2Fc"]:first-child, | ||
#right-pane div[data-path="%2Fb"]:first-child { | ||
color: #292D1C !important; | ||
--jse-selection-background-inactive-color: var(--background-color-custom) !important | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,32 @@ | ||
import { Card, Container, Text } from "@nextui-org/react"; | ||
import { ComparisonMetaData } from "../../context/AppContext"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
export interface ComparsionCardProps { | ||
metadata?: ComparisonMetaData; | ||
}; | ||
|
||
export default function ComparisonCard(props: ComparsionCardProps) { | ||
const navigate = useNavigate(); | ||
|
||
function onClick() { | ||
if (props.metadata) { | ||
navigate(`compare/${props.metadata.id}`) | ||
} | ||
else { | ||
navigate("compare/new"); | ||
} | ||
} | ||
|
||
return ( | ||
<Container> | ||
<Card onClick={onClick} isPressable css={{ w: "inherit", h: "inherit", $$cardColor: props.metadata ? '$colors$primary' : '$colors$secondary' }}> | ||
<Card.Body> | ||
<Container css={{ display: "flex", w: "$50", h: "$50", maxH: "$100", maxW: "$100", wordWrap: "break-word" }}> | ||
<Text color="white" h4>{props.metadata?.title || "New Comparison"}</Text> | ||
</Container> | ||
</Card.Body> | ||
</Card> | ||
</Container> | ||
); | ||
} |
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,9 @@ | ||
.card { | ||
width: 100px; | ||
height: 100px; | ||
margin: auto; | ||
border-radius: 10px; | ||
background: #212121; | ||
box-shadow: 1.5px 1.5px 3px rgb(25, 25, 25), | ||
-1.5px -1.5px 3px rgb(60, 60, 60); | ||
} |
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
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
Oops, something went wrong.