diff --git a/Laravel/app/Http/Controllers/ViewController.php b/Laravel/app/Http/Controllers/ViewController.php index ca4dd18..37f9019 100644 --- a/Laravel/app/Http/Controllers/ViewController.php +++ b/Laravel/app/Http/Controllers/ViewController.php @@ -33,8 +33,16 @@ class ViewController extends Controller foreach ($combos as $combo) { $combo->tags_arr = json_decode($combo->tags, true); } + $hospital_list = DB::table('hospital') + ->whereIn('id', $hospital_ids) + ->limit(8) + ->get(); + foreach ($hospital_list as $hospital) { + $hospital->tags_arr = json_decode($hospital->tags, true); + } return view('home.home', [ - 'combos' => $combos + 'combos' => $combos, + 'hospitals' => $hospital_list, ]); } diff --git a/Laravel/public/assets/css/layout.css b/Laravel/public/assets/css/layout.css index 1192f22..24a0af0 100644 --- a/Laravel/public/assets/css/layout.css +++ b/Laravel/public/assets/css/layout.css @@ -3,3 +3,159 @@ --style-color-2: #d35050; --style-color-3: #aee3ab; } + +.header_info_wrapper { + display: flex; + align-items: center; + margin-left: 50px; +} + +.header_info_chat_wrapper { + margin-left: 50px; +} + +.header_info_tel_number_wrapper, +.header_info_chat_number_wrapper { + font-size: 26px; +} + +.header_info_tel_tip_wrapper, +.header_info_chat_tip_wrapper { + font-size: 16px; + color: #8c939d; + margin-top: 5px; +} + +.header_search_input_input_wrapper { + width: 700px; + height: 100%; + line-height: 50px; + padding: 0 20px; +} + +.header_search_input_icon_wrapper { + width: 100px; + height: 100%; + background: var(--style-color-1); + color: #ffffff; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; +} + +.header_search_tags_wrapper { + display: flex; + align-items: center; + flex-wrap: wrap; + margin-top: 10px; +} + +.header_search_tag_wrapper { + padding: 5px 10px; + color: #737373; + background: #f7f7f7; + border-radius: 6px; + margin-right: 10px; + cursor: pointer; +} + +.header_search_wrapper { + margin-left: 30px; +} + +.header_search_input_wrapper { + display: flex; + align-items: center; + border: 1px solid var(--style-color-1); + height: 50px; + width: 800px; +} + +.header_top_wrapper { + display: none; + height: 40px; + /*display: flex;*/ + justify-content: space-between; + align-items: center; + padding: 0 20px; + font-size: 14px; + color: #888888; + background: #f5f5f5; +} + +.header_space_wrapper { + display: flex; + align-items: center; +} + +.header_top_nav_wrapper { + margin: 0 5px; + cursor: pointer; +} + +.header_user_wrapper { + display: flex; + align-items: center; + cursor: pointer; +} + +.header_login_wrapper:hover { + font-weight: bold; + color: #333333; +} + +.header_box_wrapper { + display: flex; + align-items: center; + justify-content: center; + width: calc(100% - 40px); + margin: 20px auto 0; +} + +.header_logo_wrapper { + width: 200px; + height: 100px; + text-align: center; + line-height: 100px; + font-size: 30px; +} + +.header_top_nav_wrapper:hover { + font-weight: bold; + color: #333333; +} + +.header_login_text_wrapper { + margin-left: 5px; + margin-right: 20px; +} + +.header_login_wrapper { + display: flex; + align-items: center; +} + +.header_space_icon_wrapper { + color: var(--style-color-1); +} + +.header_space_text_wrapper { + margin-left: 5px; +} + +.header_change_space_wrapper { + display: flex; + align-items: center; + margin-left: 20px; + cursor: pointer; +} + +.header_change_space_wrapper:hover { + font-weight: bold; + color: #333333; +} + +.header_change_space_icon_wrapper { + margin-left: 5px; +} diff --git a/Laravel/public/assets/images/ad1.png b/Laravel/public/assets/images/ad1.png new file mode 100644 index 0000000..9c69b20 Binary files /dev/null and b/Laravel/public/assets/images/ad1.png differ diff --git a/Laravel/public/assets/images/ad2.png b/Laravel/public/assets/images/ad2.png new file mode 100644 index 0000000..865f67e Binary files /dev/null and b/Laravel/public/assets/images/ad2.png differ diff --git a/Laravel/public/assets/images/ad3.png b/Laravel/public/assets/images/ad3.png new file mode 100644 index 0000000..ceaa921 Binary files /dev/null and b/Laravel/public/assets/images/ad3.png differ diff --git a/Laravel/public/assets/images/banner.png b/Laravel/public/assets/images/banner.png new file mode 100644 index 0000000..4f451c6 Binary files /dev/null and b/Laravel/public/assets/images/banner.png differ diff --git a/Laravel/resources/views/components/header.blade.php b/Laravel/resources/views/components/header.blade.php index b2e2855..130f277 100644 --- a/Laravel/resources/views/components/header.blade.php +++ b/Laravel/resources/views/components/header.blade.php @@ -1,3 +1,51 @@
+
+
+