diff --git a/ZhiKongTaiWeb/src/assets/welcome_banner.png b/ZhiKongTaiWeb/src/assets/welcome_banner.png new file mode 100644 index 000000000..230ad5e74 Binary files /dev/null and b/ZhiKongTaiWeb/src/assets/welcome_banner.png differ diff --git a/ZhiKongTaiWeb/src/components/DeviceCard.vue b/ZhiKongTaiWeb/src/components/DeviceCard.vue index 6ac439a04..863dcb5b2 100644 --- a/ZhiKongTaiWeb/src/components/DeviceCard.vue +++ b/ZhiKongTaiWeb/src/components/DeviceCard.vue @@ -1,34 +1,46 @@ + + + + + - \ No newline at end of file + +@media (max-width: 768px) { + .header { + flex-wrap: wrap; + } + + .search-container { + order: 3; + width: 100%; + margin: 1rem 0 0; + max-width: none; + } + + .device-grid { + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + } + + .welcome-text h1 { + font-size: 1.5rem; + } + + .welcome-text h2 { + font-size: 1.7rem; + } +} + +@media (max-width: 576px) { + .header { + padding: 0.5rem; + } + + .logo-text { + display: none; + } + + .nav-button { + padding: 0.4rem 0.8rem; + font-size: 0.8rem; + } + + .tab-container { + display: none; + } + + .user-notification, .user-balance { + padding: 0.2rem 0.5rem; + font-size: 0.7rem; + } + + .welcome-text { + padding: 1.5rem; + } + + .device-grid { + grid-template-columns: 1fr; + } +} + + +