Skip to content

Commit 68ab3a5

Browse files
chores: merge conflicts resolved
2 parents 4b8a93e + 319d770 commit 68ab3a5

File tree

10 files changed

+236
-29
lines changed

10 files changed

+236
-29
lines changed

components/aboutUs.js

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import {useState, useEffect} from "react";
33
import {BallTriangle} from "react-loader-spinner";
44
import {SiBuymeacoffee} from "react-icons/si";
5+
import Link from "next/link";
56

67
const AboutUs = () => {
78
const [loading, setloading] = useState(true);
@@ -17,10 +18,10 @@ const AboutUs = () => {
1718
for (var xx = 0; xx < res.length; xx++) {
1819
document.getElementById(
1920
"contributors",
20-
).innerHTML += ` <a href="https://github.com/${res[xx].login}" target="_blank" rel="noreferrer" class=" overflow-hidden flex flex-col justify-evenly w-28 m-4"><img class="inline rounded-full"
21-
src="${res[xx].avatar_url}"
22-
alt=""/><span
23-
class="text-white"><div class="w-full text-center mt-4">${res[xx].login}</div></span></a>`;
21+
).innerHTML += ` <a href="${res[xx].url}" class=" overflow-hidden flex flex-col justify-evenly w-28 m-4"><img class="inline rounded-full"
22+
src="${res[xx].avatar_url}"
23+
alt=""/><span
24+
class="text-white"><div class="w-full text-center">${res[xx].login}</div></span></a>`;
2425
}
2526
}
2627
});
@@ -92,14 +93,36 @@ const AboutUs = () => {
9293
</div>
9394
</div>
9495
<div>
95-
<div className="flex flex-col justify-center items-center flex-wrap">
96-
<div className=" my-5 mx-3 p-6 flex flex-col justify-center items-center md:w-4/5 md:mx-0p-6 px-5 overflow-auto border-blue-700 border-2 rounded-lg">
97-
<p className=" mt-8 mb-8 text-xl text-white underline underline-offset-4">
98-
Our Contributers 🥂
96+
{/* <div className="flex flex-col justify-center items-center flex-wrap">
97+
<div className=" my-5 mx-3 p-6 flex flex-col justify-center items-center md:w-4/5 md:mx-0p-6 px-5 overflow-auto border-blue-700 border-2 rounded-lg bg-sky-300">
98+
<p className=" text-xl font-bold underline underline-offset-4 text-blue-700 mb-4">
99+
Check out our cool contributors
99100
</p>
100-
<div
101-
id="contributors"
102-
className="overflow-auto whitespace-nowrap w-auto flex flex-wrap justify-evenly gap-1 md:gap-8"></div>
101+
<hr className="bg-white" />
102+
<p className="w-full text-center text-blue-900 font-semibold flex flex-col md:flex-row justify-center items-center">
103+
We currently have around 50+ open source contributors who
104+
have contributed in codebase through different ways from
105+
correcting the UI components to adding this whole new link
106+
⚡. Check our contributors in next page, and you too can
107+
become a part of our cool 🥸 community.
108+
</p>
109+
<Link href="/contributors">
110+
<p className="bg-rose-400 py-1 px-2 rounded-2xl text-white font-semibold cursor-pointer">
111+
Check your
112+
</p>
113+
</Link>
114+
</div>
115+
</div> */}
116+
<div>
117+
<div className="flex flex-col justify-center items-center flex-wrap">
118+
<div className=" my-5 mx-3 p-6 flex flex-col justify-center items-center md:w-4/5 md:mx-0p-6 px-5 overflow-auto border-blue-700 border-2 rounded-lg">
119+
<p className=" mt-8 mb-8 text-xl text-white underline underline-offset-4">
120+
Our Contributers 🥂
121+
</p>
122+
<div
123+
id="contributors"
124+
className="overflow-auto whitespace-nowrap w-auto flex flex-wrap justify-evenly gap-1 md:gap-8"></div>
125+
</div>
103126
</div>
104127
</div>
105128
</div>

components/contributor.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* eslint-disable @next/next/no-img-element */
2+
import {useEffect, useState} from "react";
3+
4+
function Contributor(props) {
5+
const [socials, setSocials] = useState({});
6+
7+
useEffect(() => {
8+
fetch(`https://api.github.com/users/${props.contributor.login}`)
9+
.then((res) => res.json())
10+
.then((contributor) => setSocials(contributor));
11+
}, []);
12+
13+
return (
14+
<div className="flex items-center gap-4 p-4 border border-x-0 border-t-0 mb-4 border-orange-200 md:w-56 md:border md:rounded-2xl md:p-3 md:m-4 md:flex-col">
15+
<img
16+
className=" w-12 h-12 rounded-full md:w-28 md:h-28"
17+
src={socials.avatar_url}
18+
alt="contributor-logo"
19+
/>
20+
<span className="md:flex text-xl font-bold text-white md:flex-col md:items-center">
21+
<div className="">{socials.login}</div>
22+
23+
<div className="md:flex flex flex-row">
24+
<a href={socials.url}>
25+
<svg
26+
fill="#FFFFFF"
27+
xmlns="http://www.w3.org/2000/svg"
28+
viewBox="0 0 30 30"
29+
width="30px"
30+
height="30px">
31+
{" "}
32+
<path d="M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z" />
33+
</svg>
34+
</a>
35+
{socials["twitter-username"] && (
36+
<a href={`https://twitter.com/${socials["twitter-username"]}`}>
37+
<svg
38+
fill="#FFFFFF"
39+
xmlns="http://www.w3.org/2000/svg"
40+
viewBox="0 0 30 30"
41+
width="30px"
42+
height="30px">
43+
{" "}
44+
<path d="M28,6.937c-0.957,0.425-1.985,0.711-3.064,0.84c1.102-0.66,1.947-1.705,2.345-2.951c-1.03,0.611-2.172,1.055-3.388,1.295 c-0.973-1.037-2.359-1.685-3.893-1.685c-2.946,0-5.334,2.389-5.334,5.334c0,0.418,0.048,0.826,0.138,1.215 c-4.433-0.222-8.363-2.346-10.995-5.574C3.351,6.199,3.088,7.115,3.088,8.094c0,1.85,0.941,3.483,2.372,4.439 c-0.874-0.028-1.697-0.268-2.416-0.667c0,0.023,0,0.044,0,0.067c0,2.585,1.838,4.741,4.279,5.23 c-0.447,0.122-0.919,0.187-1.406,0.187c-0.343,0-0.678-0.034-1.003-0.095c0.679,2.119,2.649,3.662,4.983,3.705 c-1.825,1.431-4.125,2.284-6.625,2.284c-0.43,0-0.855-0.025-1.273-0.075c2.361,1.513,5.164,2.396,8.177,2.396 c9.812,0,15.176-8.128,15.176-15.177c0-0.231-0.005-0.461-0.015-0.69C26.38,8.945,27.285,8.006,28,6.937z" />
45+
</svg>
46+
</a>
47+
)}
48+
49+
{socials["blog"] && (
50+
<a href={`${socials["blog"]}`}>
51+
<svg
52+
fill="#FFFFFF"
53+
xmlns="http://www.w3.org/2000/svg"
54+
viewBox="0 0 30 30"
55+
width="30px"
56+
height="30px">
57+
{" "}
58+
<path d="M 6 4 C 4.895 4 4 4.895 4 6 L 4 24 C 4 25.105 4.895 26 6 26 L 24 26 C 25.105 26 26 25.105 26 24 L 26 6 C 26 4.895 25.105 4 24 4 L 6 4 z M 12.308594 8 L 15 8 C 17.38 8 19.325594 9.9567969 19.308594 12.341797 C 19.303594 12.923797 19.802766 13.384766 20.384766 13.384766 L 20.923828 13.384766 C 21.518828 13.384766 22 13.867891 22 14.462891 L 22 17.691406 C 22 20.061406 20.061406 22 17.691406 22 L 12.306641 22 C 9.9376406 22 8 20.061406 8 17.691406 L 8 15 L 8 12.308594 C 8 9.9385938 9.9385938 8 12.308594 8 z M 12.308594 11.230469 C 11.716594 11.230469 11.230469 11.716594 11.230469 12.308594 C 11.230469 12.900594 11.716594 13.384766 12.308594 13.384766 L 15 13.384766 C 15.592 13.384766 16.076172 12.900594 16.076172 12.308594 C 16.076172 11.716594 15.592 11.230469 15 11.230469 L 12.308594 11.230469 z M 12.306641 16.615234 C 11.714641 16.615234 11.230469 17.099406 11.230469 17.691406 C 11.230469 18.283406 11.714641 18.769531 12.306641 18.769531 L 17.691406 18.769531 C 18.283406 18.769531 18.769531 18.283406 18.769531 17.691406 C 18.769531 17.099406 18.284406 16.615234 17.691406 16.615234 L 12.306641 16.615234 z" />
59+
</svg>
60+
</a>
61+
)}
62+
</div>
63+
</span>
64+
</div>
65+
);
66+
}
67+
68+
export default Contributor;

components/contributors.js

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {useState, useEffect} from "react";
2+
import Contributor from "./contributor";
3+
import {BallTriangle} from "react-loader-spinner";
4+
5+
const Contributors = () => {
6+
const [loading, setloading] = useState(true);
7+
const [contributors, setContributors] = useState([]);
8+
9+
useEffect(() => {
10+
setTimeout(() => {
11+
setloading(false);
12+
}, 600);
13+
14+
fetch(
15+
"https://api.github.com/repos/jsvigneshkanna/tailwind_ui_components/contributors",
16+
)
17+
.then((res) => res.json())
18+
.then((contributors) => setContributors(contributors));
19+
}, []);
20+
21+
return (
22+
<div>
23+
{loading ? (
24+
<div
25+
style={{
26+
height: "100vh",
27+
backgroundColor: "rgba(0,0,0,0.99)",
28+
display: "flex",
29+
justifyContent: "center",
30+
}}
31+
className="banner">
32+
<BallTriangle
33+
height="100"
34+
width="100"
35+
color="#e39a09"
36+
ariaLabel="loading"
37+
/>
38+
</div>
39+
) : (
40+
<div className="banner">
41+
<div className="mx-4 md:mx-40">
42+
<p className="text-3xl text-white font-bold text-center ">
43+
Our contributors:
44+
</p>
45+
<div className="p-6 px-5"></div>
46+
<div
47+
id="contributors"
48+
className="max-w-sm relative mx-auto dark:highlight-white/5 shadow-lg ring-1 ring-black/5 rounded-xl flex flex-col md:max-w-5xl md:overflow-auto md:w-auto md:flex md:flex-row md:flex-wrap md:justify-evenly ">
49+
{console.log("checking, ", contributors)}
50+
{contributors.map((contributor, idx) => (
51+
<Contributor key={idx} contributor={contributor} />
52+
))}
53+
</div>
54+
</div>
55+
</div>
56+
)}
57+
</div>
58+
);
59+
};
60+
61+
export default Contributors;

components/faqs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const FAQs = () => {
1616
},
1717
q3: {
1818
qus: "What all components are there in this website",
19-
ans: 'There are a lot of components on this website, you can access them from <a href="/components" target="_blank" rel="noreferrer" class="text-blue-700">Here</a>',
19+
ans: 'There are lots of components such as Button, Form, Feature Card etc. which can save lot of time for a front end dev. you can access them from <a href="/components" target="_blank" rel="noreferrer" class="text-blue-700">Here</a>',
2020
},
2121
q4: {
2222
qus: "Can we play around with tailwindcss codes",

components/footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Footer = () => {
2020
tailwind
2121
</span>
2222
<span className="text-white self-center text-xl md:text-2xl font-semibold whitespace-nowrap dark:text-blue-500 ml-2">
23-
BOOTSRAP
23+
BOOTSTRAP
2424
</span>
2525
</a>
2626
</div>

components/navbar.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Navbar = () => {
1515
};
1616
const displayMenu = () => {
1717
if (isMenuOpen) {
18-
return "small-screen-header flex flex-col justify-center items-center ";
18+
return "flex small-screen-header flex-col justify-center items-center gap-2 my-2";
1919
} else {
2020
return "hidden";
2121
}
@@ -32,23 +32,24 @@ const Navbar = () => {
3232
className=" cursor-pointer"
3333
/>
3434
<div className="right_contents">
35-
<div className="nav_links">
36-
<Link href="/components">Components</Link>
37-
</div>
38-
<div className="nav_links">
39-
<Link href="/documentation">Documentation</Link>
40-
</div>
41-
<div className="nav_links">
42-
<Link href="/aboutUs">About Us</Link>
43-
</div>
44-
<div className="nav_links">
45-
<Link href="/faqs">FAQs</Link>
46-
</div>
35+
<Link href="/components">
36+
<div role="button" className="nav_links">Components</div>
37+
</Link>
38+
<Link href="/documentation">
39+
<div role="button" className="nav_links">Documentation</div>
40+
</Link>
41+
<Link href="/aboutUs">
42+
<div role="button" className="nav_links">About Us</div>
43+
</Link>
44+
<Link href="/faqs">
45+
<div role="button" className="nav_links">FAQs</div>
46+
</Link>
4747
</div>
4848
<div className="hamburger" onClick={showMenu}>
4949
<p>{isMenuOpen ? <AiOutlineClose /> : <MdMenu />}</p>
5050
</div>
5151
</nav>
52+
5253
<div className={displayMenu()}>
5354
<div className="nav_links">
5455
<Link href="/components">Components</Link>

pages/aboutUs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Navbar from "../components/navbar";
44
import AboutUs from "../components/aboutUs";
55
import Footer from "../components/footer";
66
import SocialButtons from "../components/socialbuttons";
7+
import Contributors from "../components/contributors";
78

89
export default function Home() {
910
return (

pages/components/badges.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Badge = () => {
1616
<Navbar />
1717
<div className="codepen_page font-poppins">
1818
<p className="codepen_brief bg-sky-200 text-blue-700 md:mx-44 mx-4 px-4 mb-12 text-center py-4 rounded-2xl">
19-
How cool is to have coloured and meaningfull badges near your image/
19+
How cool is to have coloured and meaningful badges near your image/
2020
cards/ testimonials. Sounds interesting, then why waiting to check
2121
inside 😎
2222
</p>

pages/contributors.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import Head from "next/head";
2+
3+
import Navbar from "../components/navbar";
4+
import Footer from "../components/footer";
5+
import SocialButtons from "../components/socialbuttons";
6+
import Contributors from "../components/contributors";
7+
8+
export default function Home() {
9+
return (
10+
<>
11+
<Head>
12+
<title>Tailwind Bootstrap | Contributors</title>
13+
<link rel="icon" href="/favi-tailwind.png" type="image/png" />
14+
<link
15+
rel="stylesheet"
16+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
17+
/>
18+
<meta name="title" content="Tailwind Bootstrap" />
19+
<meta name="description" content="TailwindCSS ui component bootstrap" />
20+
21+
<meta property="og:type" content="website" />
22+
<meta
23+
property="og:url"
24+
content="https://tailwindcsscomponents.vercel.app/"
25+
/>
26+
<meta property="og:title" content="Tailwind Bootstrap" />
27+
<meta
28+
property="og:description"
29+
content="TailwindCSS ui component bootstrap"
30+
/>
31+
32+
<meta
33+
property="twitter:url"
34+
content="https://tailwindcsscomponents.vercel.app/"
35+
/>
36+
<meta property="twitter:title" content="Tailwind Bootstrap" />
37+
<meta
38+
property="twitter:description"
39+
content="TailwindCSS ui component bootstrap"
40+
/>
41+
</Head>
42+
43+
<div className=" bg-slate-100 w-full min-h-screen font-poppins">
44+
<Navbar />
45+
<Contributors />
46+
<div className="social_buttons">
47+
<SocialButtons />
48+
</div>
49+
<Footer />
50+
</div>
51+
</>
52+
);
53+
}

styles/components/navbar_style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ nav {
5454
@media (max-width: 899px) {
5555
.nav_links {
5656
padding: 12px;
57-
margin-bottom: 24px;
57+
/* margin-bottom: 24px; */
5858
}
5959
.nav_links:nth-child(1) {
60-
margin-top: 5vh;
60+
/* margin-top: 5vh; */
6161
}
6262
.nav_container {
6363
width: 96%;

0 commit comments

Comments
 (0)