From 9a5b4259808d719a531eca18dff993eeeff71bc1 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 23 Apr 2023 12:19:07 -0600 Subject: Simplificada interfaz --- src/components/layout.tsx | 2 +- src/components/navbar.tsx | 111 +++++++++++-------------------- src/components/search_bar.tsx | 32 +++++++++ src/components/stylesheets/navbar.css | 10 +-- src/components/stylesheets/searchbar.css | 3 + src/routes/products/products.tsx | 6 +- tailwind.config.js | 8 ++- 7 files changed, 90 insertions(+), 82 deletions(-) create mode 100644 src/components/search_bar.tsx create mode 100644 src/components/stylesheets/searchbar.css diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 50d335e..4988ecc 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -10,7 +10,7 @@ export default function Layout(props: Props) { return( <> -
+
{ props.children }
diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index b7c04ee..2fd650d 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -5,85 +5,50 @@ import "./stylesheets/shared.css"; export default function Navbar() { return( <> - + ); } \ No newline at end of file diff --git a/src/components/search_bar.tsx b/src/components/search_bar.tsx new file mode 100644 index 0000000..5f1f438 --- /dev/null +++ b/src/components/search_bar.tsx @@ -0,0 +1,32 @@ +import "./stylesheets/searchbar.css" + +export default function SearchBar({ path }) { + return( +
+
+
+
+ +
+ +
+ +
+
+
+
+ ); +} \ No newline at end of file diff --git a/src/components/stylesheets/navbar.css b/src/components/stylesheets/navbar.css index eefb764..75748a6 100644 --- a/src/components/stylesheets/navbar.css +++ b/src/components/stylesheets/navbar.css @@ -1,8 +1,10 @@ .navbar { overflow: hidden; - position: fixed; + margin-bottom: 5px; + /*position: fixed;*/ top: 0; width: 100%; + border-bottom: solid 5px #394490; } .navbar-elements-text { @@ -12,10 +14,10 @@ .avatar { height: 25px; - width: 25px + width: 25px; } -.image { - height: 30px; +.logo { + height: 35px; width: auto; } \ No newline at end of file diff --git a/src/components/stylesheets/searchbar.css b/src/components/stylesheets/searchbar.css new file mode 100644 index 0000000..99d3f28 --- /dev/null +++ b/src/components/stylesheets/searchbar.css @@ -0,0 +1,3 @@ +.searchbar { + display: flex; +} \ No newline at end of file diff --git a/src/routes/products/products.tsx b/src/routes/products/products.tsx index c17a051..6b24269 100644 --- a/src/routes/products/products.tsx +++ b/src/routes/products/products.tsx @@ -1,9 +1,9 @@ +import SearchBar from "../../components/search_bar"; + export default function Products() { return( <> -

- Hello! -

+ ); } \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 0599c62..d36f1b1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -6,7 +6,13 @@ export default { "./node_modules/tw-elements/dist/js/**/*.js" ], theme: { - extend: {}, + extend: { + colors: { + blue: { + 600: "#394490" + } + } + }, }, plugins: [require("tw-elements/dist/plugin.cjs")], } -- cgit v1.2.3