Skip to content

Commit 9c657f6

Browse files
committed
增加 go to top 按鈕、將 navbar 設為 fixed-top、調整 h2, h3, h4 的 css、新增 material-icons 字體
1 parent 6ad9a16 commit 9c657f6

File tree

5 files changed

+485
-267
lines changed

5 files changed

+485
-267
lines changed

Contact.html

+29-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
<!doctype html>
22

33
<html lang="en">
4-
54
<head>
6-
<!-- Required meta tags -->
5+
76
<meta charset="utf-8">
87
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
9-
108
<!-- Bootstrap CSS -->
119
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
12-
13-
<!-- main CSS -->
14-
<link rel="stylesheet" href="./css/main.css" type="text/css">
15-
16-
<!-- Title on the tab -->
17-
<title>XXXX OOOO Lab</title>
10+
<!-- Font CDN -->
11+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
12+
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+TC&display=swap" rel="stylesheet">
13+
<!-- main CSS -->
14+
<link rel="stylesheet" href="./css/main.css" type="text/css">
15+
<title>Complex Fluid Theory Laboratory</title>
1816

1917
</head>
20-
2118
<body>
19+
20+
<!-- 因為 fixed-top 的 NavBar 會遮到最上方的內容,故需要將上方留白 -->
21+
<div class="topper"></div>
2222

23+
<!-- NavBar -->
2324
<header>
24-
25-
<nav class="navbar navbar-expand-lg navbar-light navbar-color">
26-
25+
<nav class="navbar navbar-expand-lg navbar-light navbar-color fixed-top">
2726
<a class="navbar-brand">
2827
<img class="d-block" width="250" height="" src="./img/4.png">
2928
</a>
@@ -33,9 +32,7 @@
3332
</button>
3433

3534
<div id="navbarNav" class="collapse navbar-collapse">
36-
3735
<ul class="navbar-nav justify-content-center d-flex fill-flex">
38-
3936
<li class="nav-item">
4037
<a class="nav-link" href="Home.html">Home</a>
4138
</li>
@@ -61,23 +58,24 @@
6158
</li>
6259

6360
</ul>
64-
6561
</div>
66-
6762
</nav>
68-
6963
</header>
7064

7165
<div class="container-fluid margin-block">
7266
<div class="container">
67+
7368
<h1 class="text-uppercase">
7469
Contact
7570
</h1>
71+
7672
<div class="row justify-content-around">
7773
<div class="col-xs-6 col-md-5 col-lg-5 col-xl-4">
74+
7875
<h2>
7976
Prof. Hsiu-Yu Yu
8077
</h2>
78+
8179
<span class="content-wrap">
8280
<h5>Email:</h5>
8381
@@ -91,9 +89,11 @@ <h5>Address:</h5>
9189
No. 1, Sec. 4, Roosevelt Rd.
9290
Taipei 10617, TaiwanfR.O.C.)
9391
</span>
92+
9493
<h2>
9594
Laboratory
9695
</h2>
96+
9797
<span class="content-wrap">
9898
<h5>Lab Phone:</h5>
9999
+886-2-3366-3054
@@ -104,6 +104,7 @@ <h5>Address:</h5>
104104
Taipei 10617, Taiwan(R.O.C-)
105105
</span>
106106
</div>
107+
107108
<div class="col-xs-6 col-md-7 col-lg-7 col-xl-6 margin-items">
108109
<!--Google map-->
109110
<iframe
@@ -120,11 +121,19 @@ <h5>Address:</h5>
120121
</div>
121122
</div>
122123

124+
<!-- "go to top" button-->
125+
<div class="fixed-footer">
126+
<div class="jumptool">
127+
<button class="gotop" type="button" name="button" onclick="window.scroll({ top: 0, left: 0, behavior: 'smooth'});">
128+
<i class="material-icons"></i>
129+
</button>
130+
</div>
131+
</div>
132+
123133
<!-- footer -->
124134
<!-- 若只用 footer 沒有 container-fluid 將會無法水平填滿視窗 -->
125135
<footer class="container-fluid footer-bg">
126136
<div class="footer-container">
127-
128137
<!-- footer 1 -->
129138
<div class="row justify-content-end footer-padding-top">
130139

@@ -174,7 +183,7 @@ <h5>Address:</h5>
174183

175184
<!-- footer 2 -->
176185
<div class="text-center footer-padding-bottom copyright">
177-
Copyright © 2019 XXXX OOOO Lab. All rights reserved
186+
Copyright © 2019 Complex Fluid Theory Laboratory. All rights reserved
178187
</div>
179188
</div>
180189
</footer>

0 commit comments

Comments
 (0)