|
| 1 | +/* eslint-disable @next/next/no-img-element */ |
| 2 | +import { useState, useEffect } from "react"; |
| 3 | +import { BallTriangle } from "react-loader-spinner"; |
| 4 | +import Link from "next/link"; |
| 5 | + |
| 6 | +const AboutUs = () => { |
| 7 | + const [loading, setloading] = useState(true); |
| 8 | + useEffect(() => { |
| 9 | + setTimeout(() => { |
| 10 | + setloading(false); |
| 11 | + }, 600); |
| 12 | + }, []); |
| 13 | + fetch('https://api.github.com/repos/jsvigneshkanna/tailwind_ui_components/contributors').then(res => res.json()).then(res => { |
| 14 | + if (document.getElementById('contributors').innerHTML == "") { |
| 15 | + for (var xx = 0; xx < res.length; xx++) { |
| 16 | + document.getElementById('contributors').innerHTML += ` <a href="${res[xx].url}" class=" overflow-hidden flex flex-col justify-evenly w-28 m-4"><img class="inline rounded-full" |
| 17 | + src="${res[xx].avatar_url}" |
| 18 | + alt=""/><span |
| 19 | + class="text-white"><div class="w-full text-center">${res[xx].login}</div></span></a>` |
| 20 | + } |
| 21 | + } |
| 22 | + }) |
| 23 | + return ( |
| 24 | + <div> |
| 25 | + {loading ? ( |
| 26 | + <div |
| 27 | + style={{ |
| 28 | + height: "100vh", |
| 29 | + backgroundColor: "rgba(0,0,0,0.99)", |
| 30 | + display: "flex", |
| 31 | + justifyContent: "center", |
| 32 | + }} |
| 33 | + className="banner"> |
| 34 | + <BallTriangle |
| 35 | + height="100" |
| 36 | + width="100" |
| 37 | + color="#e39a09" |
| 38 | + ariaLabel="loading" |
| 39 | + /> |
| 40 | + </div> |
| 41 | + ) : ( |
| 42 | + <div className="banner"> |
| 43 | + <div> |
| 44 | + <div class="w-full flex justify-evenly flex-wrap"> |
| 45 | + <div class="w-5/12 my-5 p-2 m border-white border-2 rounded"> |
| 46 | + <p class="w-full text-xl text-white">Our website motivation</p> |
| 47 | + <hr class="bg-white" /> |
| 48 | + <p class="w-full text-white">We do know tailwind css is an emerging CSS framework which makes |
| 49 | + our website/ app unique without styling compared to |
| 50 | + other market bootstraps.</p> |
| 51 | + |
| 52 | + </div> |
| 53 | + <div class="w-5/12 my-5 p-2 m border-white border-2 rounded"> |
| 54 | + <p class="w-full text-xl text-white">Solution we are providing</p> |
| 55 | + <hr class="bg-white" /> |
| 56 | + <p class="w-full text-white">You can get almost all layouts and components built under Tailwind |
| 57 | + CSS, and the best part is we can play around with them |
| 58 | + in inbuilt code editor and copy the codebase too for your projects.</p> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + <div> |
| 62 | + <div> |
| 63 | + <p class=" mt-8 ml-10 text-xl text-white">Our contributers:</p> |
| 64 | + |
| 65 | + <div class="p-6 px-5 overflow-auto "> |
| 66 | + <div id="contributors" class="overflow-auto whitespace-nowrap w-auto flex flex-wrap justify-evenly border-white border-2 rounded"> |
| 67 | + |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + )} |
| 75 | + </div> |
| 76 | + ); |
| 77 | +}; |
| 78 | + |
| 79 | +export default AboutUs; |
0 commit comments