Joey889 commited on
Commit
15d69ef
·
verified ·
1 Parent(s): 0135b4e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +70 -19
index.html CHANGED
@@ -70,29 +70,68 @@
70
  color: var(--secondary-color);
71
  }
72
 
73
- /* Hero Section */
74
  #home {
75
- height: 100vh;
76
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
77
  display: flex;
78
  align-items: center;
79
  justify-content: center;
80
- text-align: center;
81
- padding-top: 60px;
 
 
 
 
 
 
 
 
 
82
  }
83
 
84
- .hero-content h1 {
 
 
 
 
 
85
  font-size: 3.5rem;
86
  margin-bottom: 1rem;
87
  color: var(--dark-bg);
 
88
  }
89
 
90
- .hero-content p {
91
  font-size: 1.5rem;
92
  color: #666;
93
  margin-bottom: 2rem;
94
  }
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  .btn {
97
  display: inline-block;
98
  background-color: var(--primary-color);
@@ -218,29 +257,36 @@
218
 
219
  /* Responsive */
220
  @media (max-width: 768px) {
221
- .hero-content h1 {
222
  font-size: 2.5rem;
223
  }
224
  .nav-links {
225
  display: none;
226
  }
227
- /* Add a simple hamburger menu logic if needed, omitted for single file simplicity */
 
 
 
 
 
 
 
 
 
 
228
  }
229
  </style>
230
  </head>
231
  <body>
232
 
233
- <!-- Navigation -->
234
  <nav>
235
  <div class="container nav-container">
236
- <!-- 修改開始:將圖片放進連結內,並加上 flex 樣式讓它們並排 -->
237
  <a href="#" class="logo" style="display: flex; align-items: center; gap: 10px;">
238
  <img src="robot1.jpg"
239
  alt="Logo"
240
  style="height: 50px; width: auto; border-radius: 8px;">
241
  <span>酷比克機器人</span>
242
  </a>
243
- <!-- 修改結束 -->
244
 
245
  <div class="nav-links">
246
  <a href="#home">首頁</a>
@@ -252,16 +298,24 @@
252
  </div>
253
  </nav>
254
 
255
- <!-- Hero Section -->
256
  <section id="home">
257
  <div class="container hero-content">
258
- <h1>啟動未來的鑰匙<br>酷比克機器人</h1>
259
- <p>結合 ScratchPi 與 電子積木,讓孩子在玩樂中學習 AI 與 IoT</p>
260
- <a href="#contact" class="btn">立即洽詢</a>
 
 
 
 
 
 
 
 
 
 
261
  </div>
262
  </section>
263
 
264
- <!-- Features Section -->
265
  <section id="features">
266
  <div class="container">
267
  <h2 class="section-title">為什麼選擇酷比克?</h2>
@@ -285,7 +339,6 @@
285
  </div>
286
  </section>
287
 
288
- <!-- About Section -->
289
  <section id="about">
290
  <div class="container">
291
  <h2 class="section-title">關於蘋果樹發想科技</h2>
@@ -304,7 +357,6 @@
304
  </div>
305
  </section>
306
 
307
- <!-- Contact Section -->
308
  <section id="contact">
309
  <div class="container">
310
  <h2 class="section-title">聯絡我們</h2>
@@ -329,7 +381,6 @@
329
  </div>
330
  </section>
331
 
332
- <!-- Footer -->
333
  <footer>
334
  <p>&copy; 2024 蘋果樹發想科技有限公司 All Rights Reserved.</p>
335
  </footer>
 
70
  color: var(--secondary-color);
71
  }
72
 
73
+ /* Hero Section (修改重點區域) */
74
  #home {
75
+ min-height: 100vh; /* 改為 min-height 以適應內容 */
76
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
77
  display: flex;
78
  align-items: center;
79
  justify-content: center;
80
+ padding-top: 80px; /* 增加一點頂部空間 */
81
+ padding-bottom: 40px;
82
+ }
83
+
84
+ /* 新增:Hero 區域改為左右排版 */
85
+ .hero-content {
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: space-between;
89
+ gap: 40px; /* 文字與圖片的間距 */
90
+ text-align: left; /* 文字靠左對齊 */
91
  }
92
 
93
+ /* 新增:左側文字區塊 */
94
+ .hero-text {
95
+ flex: 1; /* 佔據一半空間 */
96
+ }
97
+
98
+ .hero-text h1 {
99
  font-size: 3.5rem;
100
  margin-bottom: 1rem;
101
  color: var(--dark-bg);
102
+ line-height: 1.2;
103
  }
104
 
105
+ .hero-text p {
106
  font-size: 1.5rem;
107
  color: #666;
108
  margin-bottom: 2rem;
109
  }
110
 
111
+ /* 新增:右側圖片區塊 */
112
+ .hero-image {
113
+ flex: 1; /* 佔據另一半空間 */
114
+ display: flex;
115
+ justify-content: center;
116
+ position: relative;
117
+ }
118
+
119
+ /* 新增:右側圖片樣式 */
120
+ .hero-image img {
121
+ max-width: 100%;
122
+ height: auto;
123
+ border-radius: 15px;
124
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
125
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
126
+ cursor: pointer; /* 讓滑鼠游標變成手指形狀 */
127
+ }
128
+
129
+ /* 新增:圖片互動效果 */
130
+ .hero-image img:hover {
131
+ transform: translateY(-5px);
132
+ box-shadow: 0 15px 30px rgba(0,0,0,0.15);
133
+ }
134
+
135
  .btn {
136
  display: inline-block;
137
  background-color: var(--primary-color);
 
257
 
258
  /* Responsive */
259
  @media (max-width: 768px) {
260
+ .hero-text h1 {
261
  font-size: 2.5rem;
262
  }
263
  .nav-links {
264
  display: none;
265
  }
266
+
267
+ /* 新增:手機版讓 Hero 區塊變成上下排列 */
268
+ .hero-content {
269
+ flex-direction: column;
270
+ text-align: center;
271
+ }
272
+
273
+ .hero-image {
274
+ margin-top: 30px;
275
+ width: 80%; /* 手機上圖片寬度稍微縮小 */
276
+ }
277
  }
278
  </style>
279
  </head>
280
  <body>
281
 
 
282
  <nav>
283
  <div class="container nav-container">
 
284
  <a href="#" class="logo" style="display: flex; align-items: center; gap: 10px;">
285
  <img src="robot1.jpg"
286
  alt="Logo"
287
  style="height: 50px; width: auto; border-radius: 8px;">
288
  <span>酷比克機器人</span>
289
  </a>
 
290
 
291
  <div class="nav-links">
292
  <a href="#home">首頁</a>
 
298
  </div>
299
  </nav>
300
 
 
301
  <section id="home">
302
  <div class="container hero-content">
303
+
304
+ <div class="hero-text">
305
+ <h1>啟動未來的鑰匙<br>酷比克機器人</h1>
306
+ <p>結合 ScratchPi 與 電子積木,讓孩子在玩樂中學習 AI 與 IoT</p>
307
+ <a href="#contact" class="btn">立即洽詢</a>
308
+ </div>
309
+
310
+ <div class="hero-image">
311
+ <a href="https://bettertree-scratch-pi-appletree.webnode.tw/" target="_blank">
312
+ <img src="robot2.jpg" alt="酷比克機器人展示">
313
+ </a>
314
+ </div>
315
+
316
  </div>
317
  </section>
318
 
 
319
  <section id="features">
320
  <div class="container">
321
  <h2 class="section-title">為什麼選擇酷比克?</h2>
 
339
  </div>
340
  </section>
341
 
 
342
  <section id="about">
343
  <div class="container">
344
  <h2 class="section-title">關於蘋果樹發想科技</h2>
 
357
  </div>
358
  </section>
359
 
 
360
  <section id="contact">
361
  <div class="container">
362
  <h2 class="section-title">聯絡我們</h2>
 
381
  </div>
382
  </section>
383
 
 
384
  <footer>
385
  <p>&copy; 2024 蘋果樹發想科技有限公司 All Rights Reserved.</p>
386
  </footer>