diff --git a/landing-pages/site/assets/scss/_scroll-to-top.scss b/landing-pages/site/assets/scss/_scroll-to-top.scss new file mode 100644 index 00000000000..24070cc96d1 --- /dev/null +++ b/landing-pages/site/assets/scss/_scroll-to-top.scss @@ -0,0 +1,42 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* Scroll to Top Button Styles */ + +#scrollToTopBtn { + position: fixed; + bottom: 120px; + right: 40px; + background-color: #017cee; + color: white; + border: none; + border-radius: 50%; + width: 50px; + height: 50px; + padding: 0; + font-size: 24px; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + opacity: 0; + transition: opacity 0.3s ease-in-out, background-color 0.3s ease, transform 0.2s ease; + z-index: 1000; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); +} \ No newline at end of file diff --git a/landing-pages/site/assets/scss/main-custom.scss b/landing-pages/site/assets/scss/main-custom.scss index 7073ba2c850..8220613d23d 100644 --- a/landing-pages/site/assets/scss/main-custom.scss +++ b/landing-pages/site/assets/scss/main-custom.scss @@ -57,6 +57,7 @@ @import "survey"; @import "testimonial"; @import "suggest-change"; +@import "scroll-to-top"; /* Blog Snippet Section */ .blog-snippet-list { @@ -101,4 +102,4 @@ .blog-snippet-item time { font-size: 0.8rem; opacity: 0.7; -} +} \ No newline at end of file diff --git a/landing-pages/site/layouts/_default/baseof.html b/landing-pages/site/layouts/_default/baseof.html index 8858e75f7c0..ff8b00531ab 100644 --- a/landing-pages/site/layouts/_default/baseof.html +++ b/landing-pages/site/layouts/_default/baseof.html @@ -19,26 +19,30 @@ +
{{ partial "head.html" . }} + -