File tree Expand file tree Collapse file tree 4 files changed +81
-0
lines changed
plugins/docusaurus-tailwindcss-loader Expand file tree Collapse file tree 4 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "name" : " docusaurus-tailwindcss-loader" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " A Docusaurus plugin to load TailwindCSS" ,
5+ "main" : " index.js" ,
6+ "peerDependencies" : {
7+ "postcss-import" : " ^14.0.2" ,
8+ "tailwindcss" : " ^3.0.1" ,
9+ "postcss-preset-env" : " ^7.4.1"
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import error from "../../static/img/error404.png" ;
3+
4+ const NotFoundPage = ( ) => {
5+ return (
6+ // `notfound-wrapper` ensures the page takes up enough vertical space
7+ // so the footer (and social icons) remain in place and are not pushed down.
8+ < main className = "notfound-wrapper margin-vert--xl container" >
9+ < div className = "row" >
10+ < div className = "col col--6 col--offset-3" >
11+ < div className = "text-center" >
12+ < img
13+ src = { error }
14+ width = { 300 }
15+ height = { 300 }
16+ alt = "404 Error"
17+ style = { { margin : "0 auto" } }
18+ />
19+ < h1 className = "hero__title" > 🐰 Oops! 🐰</ h1 >
20+ < p className = "hero__subtitle margin-vert--md" > 404 - Page Not Found</ p >
21+ < div className = "margin-vert--lg" >
22+ < div className = "loading-dots" >
23+ < span > Redirecting to documentation</ span >
24+ < span className = "dot" > .</ span >
25+ < span className = "dot" > .</ span >
26+ < span className = "dot" > .</ span >
27+ </ div >
28+ </ div >
29+ </ div >
30+ </ div >
31+ </ div >
32+ </ main >
33+ ) ;
34+ } ;
35+
36+ export default NotFoundPage ;
Original file line number Diff line number Diff line change 1+ /* Loading dots animation */
2+ .loading-dots {
3+ display : flex;
4+ align-items : center;
5+ justify-content : center;
6+ gap : 4px ;
7+ font-size : 1.1rem ;
8+ color : var (--ifm-color-primary );
9+ }
10+
11+ .dot {
12+ animation : dotPulse 1.5s infinite;
13+ opacity : 0 ;
14+ }
15+
16+ .dot : nth-child (2 ) {
17+ animation-delay : 0.5s ;
18+ }
19+
20+ .dot : nth-child (3 ) {
21+ animation-delay : 1s ;
22+ }
23+
24+ @keyframes dotPulse {
25+ 0% {
26+ opacity : 0 ;
27+ }
28+ 50% {
29+ opacity : 1 ;
30+ }
31+ 100% {
32+ opacity : 0 ;
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments