File tree Expand file tree Collapse file tree 2 files changed +81
-0
lines changed
Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import styles from "./Footer.module.css" ;
3+ import FooterLayout from "@theme-original/Footer" ;
4+ import { useLocation } from "@docusaurus/router" ;
5+
6+ const Footer = ( ) => {
7+ const location = useLocation ( ) ;
8+ const isHomePage = location . pathname === "/" ;
9+ return (
10+ < div >
11+ < FooterLayout />
12+ { isHomePage && (
13+ < div className = { styles . animatedFooterContainer } >
14+ < div className = { styles . footer_bg } >
15+ < div className = { styles . footer_bg_one } > </ div >
16+ < div className = { styles . footer_bg_two } > </ div >
17+ </ div >
18+ </ div >
19+ ) }
20+ </ div >
21+ ) ;
22+ } ;
23+
24+ export default Footer ;
Original file line number Diff line number Diff line change 1+
2+ html , body {
3+ overflow-x : hidden;
4+ }
5+
6+ .animatedFooterContainer {
7+ position : relative;
8+ margin-top : 0px ;
9+ padding-top : 50px ;
10+
11+ }
12+
13+ html [data-theme = "light" ] .animatedFooterContainer {
14+ background-color : # f5f6f7 ;
15+ }
16+
17+ .footer_bg {
18+ width : 100% ;
19+ height : 266px ;
20+ background : url ("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigB8iI5tb8WSVBuVUGc9UjjB8O0708X7Fdic_4O1LT4CmLHoiwhanLXiRhe82yw0R7LgACQ2IhZaTY0hhmGi0gYp_Ynb49CVzfmXtYHUVKgXXpWvJ_oYT8cB4vzsnJLe3iCwuzj-w6PeYq_JaHmy_CoGoa6nw0FBo-2xLdOPvsLTh_fmYH2xhkaZ-OGQ/s16000/footer_bg.png" )
21+ no-repeat center;
22+ background-size : cover;
23+ }
24+
25+ .footer_bg_one {
26+ background : url ("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia0PYPxwT5ifToyP3SNZeQWfJEWrUENYA5IXM6sN5vLwAKvaJS1pQVu8mOFFUa_ET4JuHNTFAxKURFerJYHDUWXLXl1vDofYXuij45JZelYOjEFoCOn7E6Vxu0fwV7ACPzArcno1rYuVxGB7JY6G7__e4_KZW4lTYIaHSLVaVLzklZBLZnQw047oq5-Q/s16000/volks.gif" )
27+ no-repeat center;
28+ background-size : contain;
29+ width : 330px ;
30+ height : 105px ;
31+ position : absolute;
32+ bottom : 0 ;
33+ animation : carMove 22s linear infinite;
34+ }
35+
36+ .footer_bg_two {
37+ background : url ("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyLGwEUVwPK6Vi8xXMymsc-ZXVwLWyXhogZxbcXQYSY55REw_0D4VTQnsVzCrL7nsyjd0P7RVOI5NKJbQ75koZIalD8mqbMquP20fL3DxsWngKkOLOzoOf9sMuxlbyfkIBTsDw5WFUj-YJiI50yzgVjF8cZPHhEjkOP_PRTQXDHEq8AyWpBiJdN9SfQA/s16000/cyclist.gif" )
38+ no-repeat center;
39+ background-size : contain;
40+ width : 88px ;
41+ height : 100px ;
42+ position : absolute;
43+ bottom : 0 ;
44+ animation : cyclistMove 30s linear infinite;
45+ }
46+
47+
48+ @keyframes carMove {
49+ 0% { left : -25% ; }
50+ 100% { left : 100% ; }
51+ }
52+
53+ @keyframes cyclistMove {
54+ 0% { left : -25% ; }
55+ 100% { left : 100% ; }
56+ }
57+
You can’t perform that action at this time.
0 commit comments