diff --git a/src/app.css b/src/app.css index 441d105..99f19f0 100644 --- a/src/app.css +++ b/src/app.css @@ -1,137 +1,16 @@ +@tailwind components; + /* #app { } */ -@media screen and (max-width: 768px) { - a.navLink { - font-size: 12px; - padding: 0px 20px; - } -} - -@media screen and (max-width: 488px) { - a.navLink{ - /* display: none; */ - margin-top: 10px; - width: 100%; - padding: 0; - border-bottom: 1px solid white; - padding: 10px 0 - } - - div.nav-container { - padding: 0 20px; - height: 100vh; - /* align-items: start; */ - justify-content: start; - flex-direction: column; - } - - div.nav-container-disabled { - padding: 4px; - height: 0; - } - - a.navLink-disabled { - display: none; - } - - form.search-input { - display: none; - margin-left: 0; - } - - button.dropdown-menu { - display: block; - } - - .search-input-dropdown { - margin-right: 10px; - display: block !important; - } - - h1.title-dropdown { - display: none; - } - - a.navLink:hover{ - border-bottom-width: 1px; - margin-bottom: 0px; - } -} - -@media screen and (max-width: 390px){ - input.text-input-search { - width: 230px; - } -} - -.dropdown-menu { - display: none; -} - -.search-input { - margin-left: auto; -} - -label { - position: relative; -} - -label:before { - content: ""; - position: absolute; - left: 10px; - top: 0; - bottom: 0; - width: 18px; - background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='18' height='18' viewBox='0 0 25 25' fill-rule='evenodd'%3E%3Cpath d='M16.036 18.455l2.404-2.405 5.586 5.587-2.404 2.404zM8.5 2C12.1 2 15 4.9 15 8.5S12.1 15 8.5 15 2 12.1 2 8.5 4.9 2 8.5 2zm0-2C3.8 0 0 3.8 0 8.5S3.8 17 8.5 17 17 13.2 17 8.5 13.2 0 8.5 0zM15 16a1 1 0 1 1 2 0 1 1 0 1 1-2 0'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat; -} - -.text-input-search { - padding: 12px 20px 12px 40px; - border-radius: 12px; - width: 325px; - font-size: 1em; - background-color: #4b4b4b; -} - -.title { - font-size: 32px; -} - .content { - max-width: 1280px; + max-width: 1440px; margin: 0 auto; padding: 1rem; text-align: center; } -.navLink { - padding: 0px 30px; - font-size: 14px; -} - - -.nav-container { - background-color: #4b4b4b; - padding: 10px 0; - width: 100%; - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - /* display: 'inline-block'; - max-width: '100%'; - text-align: 'center'; */ -} - -.navLink:hover{ - border-bottom-width: 2px; - margin-bottom: -2px; -} - - .logo { height: 6em; padding: 1.5em; @@ -150,3 +29,9 @@ label:before { .read-the-docs { color: #888; } + +@layer components { + .text-prime { + @apply text-secondary + } +} diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 2039d97..5d3a5c8 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -1,5 +1,6 @@ import React from "preact/compat"; import { useState } from "preact/hooks"; +import './style.css'; function Header() { @@ -20,7 +21,8 @@ function Header() { document.body.style.overflow = "hidden" if(dropdown) { - document.body.style.overflow = "scroll"; + document.body.style.overflowX = "hidden"; + document.body.style.overflowY = "scroll"; } setDropdown(!dropdown) } @@ -51,10 +53,10 @@ function Header() { Best places Discover Trending Places - Lists Stories - News + News / Events Forum + Sign in ) diff --git a/src/components/Header/style.css b/src/components/Header/style.css new file mode 100644 index 0000000..be29f71 --- /dev/null +++ b/src/components/Header/style.css @@ -0,0 +1,122 @@ +@media screen and (max-width: 768px) { + a.navLink { + font-size: 12px; + padding: 0px 20px; + } +} + +@media screen and (max-width: 488px) { + a.navLink{ + /* display: none; */ + margin-top: 10px; + width: 100%; + padding: 0; + border-bottom: 1px solid white; + padding: 10px 0 + } + + div.nav-container { + padding: 0 20px; + height: 100vh; + /* align-items: start; */ + justify-content: start; + flex-direction: column; + } + + div.nav-container-disabled { + padding: 4px; + height: 0; + } + + a.navLink-disabled { + display: none; + } + + form.search-input { + display: none; + margin-left: 0; + } + + button.dropdown-menu { + display: block; + } + + .search-input-dropdown { + margin-right: 10px; + display: block !important; + } + + h1.title-dropdown { + display: none; + } + + a.navLink:hover{ + border-bottom-width: 1px; + margin-bottom: 0px; + } +} + +@media screen and (max-width: 390px){ + input.text-input-search { + width: 230px; + } +} + +.dropdown-menu { + display: none; +} + +.search-input { + margin-left: auto; +} + +label { + position: relative; +} + +label:before { + content: ""; + position: absolute; + left: 10px; + top: 0; + bottom: 0; + width: 18px; + background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='18' height='18' viewBox='0 0 25 25' fill-rule='evenodd'%3E%3Cpath d='M16.036 18.455l2.404-2.405 5.586 5.587-2.404 2.404zM8.5 2C12.1 2 15 4.9 15 8.5S12.1 15 8.5 15 2 12.1 2 8.5 4.9 2 8.5 2zm0-2C3.8 0 0 3.8 0 8.5S3.8 17 8.5 17 17 13.2 17 8.5 13.2 0 8.5 0zM15 16a1 1 0 1 1 2 0 1 1 0 1 1-2 0'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat; +} + +.text-input-search { + padding: 12px 20px 12px 40px; + border-radius: 12px; + width: 325px; + font-size: 1em; + text-transform: lowercase; + background-color: #4b4b4b; +} + +.title { + font-size: 32px; +} + +.navLink { + padding: 0px 30px; + font-size: 14px; +} + + +.nav-container { + background-color: #4b4b4b; + padding: 10px 0; + width: 100%; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + /* display: 'inline-block'; + max-width: '100%'; + text-align: 'center'; */ +} + +.navLink:hover{ + border-bottom-width: 2px; + margin-bottom: -2px; +} \ No newline at end of file diff --git a/src/components/Separator/WithAnchor/index.tsx b/src/components/Separator/WithAnchor/index.tsx new file mode 100644 index 0000000..89baf15 --- /dev/null +++ b/src/components/Separator/WithAnchor/index.tsx @@ -0,0 +1,20 @@ +import './style.css'; + +type SeparatorProps = { + pageName: String, + pageLink: string, + secondLink: string +} + +function SeparatorWithAnchor(props: SeparatorProps) { + return ( +
{x.id}
*/} +{x.name}
+{x.location}
+{x.critic_rating}
+Critic Score ({x.critic_voters})
+{x.user_rating}
+User score ({x.user_voters})
+