From 27bbe3f7a6caccbee39a394919cd5f37b2e507b6 Mon Sep 17 00:00:00 2001 From: HuyNVN Date: Wed, 25 Sep 2024 13:30:05 +0700 Subject: [PATCH] fix: handle logic change language with icon --- src/app/components/app/app.component.css | 17 ++++++ src/app/components/app/app.component.html | 60 ++++++++++++++++++++-- src/app/components/app/app.component.ts | 27 ++++++++++ src/assets/img/english-icon.png | Bin 0 -> 882 bytes src/assets/img/taiwan-icon.svg | 14 +++++ src/styles.css | 6 +-- 6 files changed, 118 insertions(+), 6 deletions(-) create mode 100644 src/assets/img/english-icon.png create mode 100644 src/assets/img/taiwan-icon.svg diff --git a/src/app/components/app/app.component.css b/src/app/components/app/app.component.css index 2bc3c84..39ce72f 100644 --- a/src/app/components/app/app.component.css +++ b/src/app/components/app/app.component.css @@ -5,6 +5,7 @@ div.img-container{ .navbar-custom { padding-left: 10%; padding-right: 10%; + border-bottom: 1px solid rgba(225, 228, 229, 1); } .active { @@ -30,9 +31,25 @@ div.img-container{ .custom-dropdown-menu-header { box-shadow: 0px 0px 6px 2px rgba(2, 42, 166, 0.15); border-radius: 10px; + min-width: 180px; } .avatar-small { width: 24px; height: 24px; +} + +.button-language { + height: 24px; + width: 50px; + border-radius: 24px; + justify-content: space-between; + background-color: rgba(249, 250, 252, 1); + padding: 0px 0px; + padding-right: 5px; + margin-right: 25px; +} + +.button-language:hover { + background-color: unset; } \ No newline at end of file diff --git a/src/app/components/app/app.component.html b/src/app/components/app/app.component.html index 8603a86..9588cb6 100644 --- a/src/app/components/app/app.component.html +++ b/src/app/components/app/app.component.html @@ -63,6 +63,60 @@
+
+ + + +
+
{{ getId() }}