diff --git a/src/assets/icon-geolocation-dark.png b/src/assets/icon-geolocation-dark.png new file mode 100644 index 0000000..9e7a298 Binary files /dev/null and b/src/assets/icon-geolocation-dark.png differ diff --git a/src/assets/icon-geolocation-light.png b/src/assets/icon-geolocation-light.png new file mode 100644 index 0000000..646a134 Binary files /dev/null and b/src/assets/icon-geolocation-light.png differ diff --git a/src/assets/icon-location-dark.png b/src/assets/icon-location-dark.png new file mode 100644 index 0000000..8a42daf Binary files /dev/null and b/src/assets/icon-location-dark.png differ diff --git a/src/assets/icon-location-light.png b/src/assets/icon-location-light.png new file mode 100644 index 0000000..b58ab17 Binary files /dev/null and b/src/assets/icon-location-light.png differ diff --git a/src/assets/icon-settings-dark.png b/src/assets/icon-settings-dark.png new file mode 100644 index 0000000..5869c62 Binary files /dev/null and b/src/assets/icon-settings-dark.png differ diff --git a/src/assets/icon-settings-light.png b/src/assets/icon-settings-light.png new file mode 100644 index 0000000..d158146 Binary files /dev/null and b/src/assets/icon-settings-light.png differ diff --git a/src/assets/icon-theme-moon-dark.png b/src/assets/icon-theme-moon-dark.png new file mode 100644 index 0000000..80e3f22 Binary files /dev/null and b/src/assets/icon-theme-moon-dark.png differ diff --git a/src/assets/icon-theme-moon-light.png b/src/assets/icon-theme-moon-light.png new file mode 100644 index 0000000..71d28fc Binary files /dev/null and b/src/assets/icon-theme-moon-light.png differ diff --git a/src/assets/icon-theme-sun-dark.png b/src/assets/icon-theme-sun-dark.png new file mode 100644 index 0000000..d7eb14c Binary files /dev/null and b/src/assets/icon-theme-sun-dark.png differ diff --git a/src/assets/icon-theme-sun-light.png b/src/assets/icon-theme-sun-light.png new file mode 100644 index 0000000..f813737 Binary files /dev/null and b/src/assets/icon-theme-sun-light.png differ diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index f5c739d..28c9b3d 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -2,10 +2,40 @@ import Box from '../Box/Box' import './Navbar.style.scss' +import iconLocationDark from '../../assets/icon-location-dark.png' +// import iconLocationLight from '../../assets/icon-location-light.png' +import iconThemeSun from '../../assets/icon-theme-sun-light.png' +// import iconThemeMoon from '../../assets/icon-theme-moon-dark.png' +import iconSettingDark from '../../assets/icon-settings-dark.png' +// import iconSettingLight from '../../assets/icon-settings-light.png' +import iconGeolocationDark from '../../assets/icon-geolocation-dark.png' +// import iconGeolocationLight from '../../assets/icon-geolocation-light.png' + + export default function Navbar() { + return ( - +
+

WeatherApp

+
+
+ Icon Location Dark + Polska, Przebieczany +
+
+ + Icon Geolocation +
+
+ +
+
+ Icon Settings +
) -} \ No newline at end of file +} diff --git a/src/components/Navbar/Navbar.style.scss b/src/components/Navbar/Navbar.style.scss index 4409714..61db4e3 100644 --- a/src/components/Navbar/Navbar.style.scss +++ b/src/components/Navbar/Navbar.style.scss @@ -2,8 +2,154 @@ @use '../../styles/sizes.scss'; @use '../../styles/fonts.scss'; +.dark { + .navbar { + &__search { + border-color: colors.$border-color-dark; + .search__icon { + background-color: colors.$border-color-dark; + } + } + } +} +.light { + .navbar { + &__search { + border-color: colors.$border-color-light; + } + .search__icon { + background-color: colors.$border-color-light; + } + } +} .navbar { + font-size: 16px; grid-column: 1 / -1; position: sticky; top: 0; + display: flex; + flex-direction: row; + justify-content: space-between; + &__logo { + width: 100px; + display: flex; + align-items: center; + color: colors.$text-supporting-color-blue; + } + &__place { + display: flex; + flex-direction: row; + align-items: center; + font-size: 0.8rem; + } + &__search { + display: flex; + flex-direction: row; + align-items: center; + border-radius: sizes.$border-radius-small; + background-color: transparent; + border-width: 1px; + border-style: solid; + .search__input { + font-size: 0.8rem; + flex: 1; + } + .search__icon { + margin: 0; + height: 100%; + width: 38px; + object-fit: cover; + border-top-right-radius: sizes.$border-radius-small; + border-bottom-right-radius: sizes.$border-radius-small; + } + &:focus-within { + border-color: colors.$text-supporting-color-blue; + } + } + .navbar__theme { + display: flex; + flex-direction: row; + align-items: center; + .theme__button { + font-size: 0.8rem; + } + } + .navbar__settings { + display: flex; + flex-direction: row; + align-items: center; + } +} +.icon { + width: 16px; + height: 16px; + margin: 4px; + &--hover { + width: 32px; + height: 32px; + padding: 8px; + &:hover { + cursor: pointer; + opacity: 0.9; + } + } +} +.button { + display: flex; + align-items: center; + padding: 6px 16px; + border-radius: sizes.$border-radius-small; + border: none; + cursor: pointer; + font-size: 0.9rem; + transition: background-color 0.3s; + &:hover { + opacity: 0.9; + } + &__icon { + width: 16px; + height: 16px; + margin: 4px; + } +} +.dark { + .button { + background-color: colors.$button-background-color-dark; + color: colors.$button-text-color-dark; + } +} +.light { + .button { + background-color: colors.$button-background-color-light; + color: colors.$button-text-color-light; + } +} +.input { + border-width: 0; + background-color: transparent; + color: colors.$text-color-dark; + font-size: 0.9rem; + height: 100%; + padding: 10px 16px; + outline: none; + &::placeholder { + color: colors.$text-color-dark; + opacity: 0.9; + } +} +.dark { + .input { + color: colors.$text-color-dark; + &::placeholder { + color: colors.$text-color-dark; + } + } +} +.light { + .input { + color: colors.$text-color-light; + &::placeholder { + color: colors.$text-color-light; + } + } } \ No newline at end of file diff --git a/src/styles/_colors.scss b/src/styles/_colors.scss index 023ad07..106fa96 100644 --- a/src/styles/_colors.scss +++ b/src/styles/_colors.scss @@ -4,5 +4,16 @@ $background-color-dark:#12192a; $background-box-color-light: #ffffff; $background-box-color-dark: #0b0f1d; -$text-color-light: #000; -$text-color-dark: #fff; +$border-color-light: #f0f1f3; +$border-color-dark: #1f242e; + +$text-color-light: #252f41; +$text-color-dark: #f5f5f5; + +$text-supporting-color-blue: #0d7bfc; + +// Button +$button-background-color-light: #0b0f1d; +$button-background-color-dark: #f5f5f5; +$button-text-color-dark: #0b0f1d; +$button-text-color-light: #ffffff;