Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Created the features section in the Website #286

Merged
60 changes: 60 additions & 0 deletions Website/app/Features.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import React from "react";
function Features() {
const features = [
{
title: "It's Free and Open-Source",
description:
"Drifty is both free and open-source, so, you can bring new features that you wish to have 🎉",
icon: "fa-brands fa-osi",
color: "text-lime-600",
},
{
title: "Faster Downloading of files",
description:
"Drifty supports parallel downloading using multiple threads",
icon: "fa fa-download",
color: "text-sky-400",
},
{
title: "Support for downloading videos from YouTube, Instagram, etc.",
description:
"Drifty allows downloading videos from popular platforms like YouTube and Instagram with ease.",
icon: "fa fa-youtube-play",
color: "text-red-600",
},
{
title: "Available both in GUI and CLI mode",
description:
"Drifty has both CLI and GUI mode. So, it can be used anywhere as CLI or as GUI according to the requirements of the user.",
icon: "fa fa-desktop",
color: "text-gray-700",
},
];
return (
<div className="py-6 px-12 background bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-sans select-none">
<h1 className="text-center mb-6 font-extrabold text-4xl pt-6">
Features
</h1>
<div className="column-1 flex flex-wrap justify-center gap-1">
{features.map((feature, index) => (
<div
key={index}
className="m-2 p-4 rounded-md h-max flex flex-col justify-center shadow-lg bg-slate-100 font-bold text-black w-60 hover:-translate-y-1 hover:scale-110 duration-300"
>
<i
className={feature.icon + " self-center mb-5 " + feature.color}
aria-hidden="true"
style={{ fontSize: "3rem" }}
></i>
<h3 className="text-lg mb-1">{feature.title}</h3>
<p className="font-normal leading-normal">{feature.description}</p>
</div>
))}
</div>
<div className="text-2xl font-bold flex justify-center my-4">
....and many more!
</div>
</div>
);
}
export default Features;
47 changes: 26 additions & 21 deletions Website/app/page.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
import Header from "./Header"
import MainSection from "./MainSection"
import Header from "./Header";
import MainSection from "./MainSection";
import Contribute from "./Contribute";
import Demo from "./Demo"
import Demo from "./Demo";
import Footer from "./Footer";
import Features from "./Features";

export default async function Home() {
const data = await getData()
return (
<>
<Header props={"bg-top"}/>
<MainSection/>
<Contribute props={data}/>
<Demo/>
<Footer/>
</>
)
const data = await getData();
return (
<>
<Header props={"bg-top"} />
<MainSection />
<Contribute props={data} />
<Features />
<Demo />
<Footer />
</>
);
}

export async function getData(){
const res = await fetch('https://api.github.com/repos/SaptarshiSarkar12/Drifty/contributors?per_page=100&page=1', {method:'GET'})
const contrib = await res.json();
return {
contrib,
revalidate: 3600
}
}
export async function getData() {
const res = await fetch(
"https://api.github.com/repos/SaptarshiSarkar12/Drifty/contributors?per_page=100&page=1",
{ method: "GET" }
);
const contrib = await res.json();
return {
contrib,
revalidate: 3600,
};
}
9 changes: 9 additions & 0 deletions Website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.