Skip to content

Commit d4e6d7c

Browse files
committed
added new section for scroll-button
1 parent 8c84a3d commit d4e6d7c

File tree

2 files changed

+59
-29
lines changed

2 files changed

+59
-29
lines changed
Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
11
{{/*
2-
Licensed to the Apache Software Foundation (ASF) under one
3-
or more contributor license agreements. See the NOTICE file
4-
distributed with this work for additional information
5-
regarding copyright ownership. The ASF licenses this file
6-
to you under the Apache License, Version 2.0 (the
7-
"License"); you may not use this file except in compliance
8-
with the License. You may obtain a copy of the License at
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
99

10-
http://www.apache.org/licenses/LICENSE-2.0
10+
http://www.apache.org/licenses/LICENSE-2.0
1111

12-
Unless required by applicable law or agreed to in writing,
13-
software distributed under the License is distributed on an
14-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
KIND, either express or implied. See the License for the
16-
specific language governing permissions and limitations
17-
under the License.
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
1818
*/}}
1919

2020
<!doctype html>
2121
<html lang="{{ .Site.Language.Lang }}" class="no-js">
22+
2223
<head>
2324
{{ partial "head.html" . }}
2425
</head>
26+
2527
<body class="td-{{ .Kind }}">
26-
<header>
27-
{{ partial "navbar.html" . }}
28-
</header>
29-
<div class="container-fluid td-default">
30-
{{ block "animation-header" . }}{{ end }}
31-
<div class="home-page-layout base-layout">
32-
<main role="main" class="td-main container">
33-
{{ block "main" . }}{{ end }}
34-
</main>
35-
{{ partial "suggest-change" . }}
28+
<header>
29+
{{ partial "navbar.html" . }}
30+
</header>
31+
<div class="container-fluid td-default">
32+
{{ block "animation-header" . }}{{ end }}
33+
<div class="home-page-layout base-layout">
34+
<main role="main" class="td-main container">
35+
{{ block "main" . }}{{ end }}
36+
</main>
37+
{{ partial "suggest-change" . }}
38+
{{ partial "page-scroll-button.html" . }}
39+
</div>
3640
</div>
37-
</div>
38-
{{ partialCached "footer.html" . }}
39-
{{ partial "scripts.html" . }}
41+
{{ partialCached "footer.html" . }}
42+
{{ partial "scripts.html" . }}
4043
</body>
4144
{{ with .Site.Data.webpack }}
42-
<script src="{{ relURL .main.js }}"></script>
45+
<script src="{{ relURL .main.js }}"></script>
4346
{{ end }}
44-
</html>
47+
48+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/}}
19+
20+
<button id="scrollToTopBtn" title="Go to top" style="display: none;">
21+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
22+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up">
23+
<line x1="12" y1="19" x2="12" y2="5"></line>
24+
<polyline points="5 12 12 5 19 12"></polyline>
25+
</svg>
26+
</button>

0 commit comments

Comments
 (0)