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
74 changes: 74 additions & 0 deletions Website/app/Features.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import React from "react";

function Features() {
return (
<div className="sectionWrapper py-6 px-12 background bg-var text-white font-sans">
<h1 className="text-center mb-6 font-extrabold text-4xl pt-6 select-none">
What we are offering:
</h1>
<div className="featuresContainer column-1 flex flex-wrap justify-center">
<div className="feature w-1/4 m-2 p-4 rounded-md h-auto flex flex-col justify-center shadow-lg bg-slate-100 text-black">
<img
src="./features-images/open-source.png"
alt="Open Source Icon"
className="w-1/4 self-center mb-5"
/>
<h3 className="feature--title text-lg mb-1">
It's Free and Open-Source
</h3>
<p className="feature--description font-normal leading-normal">
Drifty is both free and open-source, giving you the liberty to use,
modify, and share it with the world.
</p>
</div>

<div className="feature w-1/4 m-2 p-4 rounded-md h-auto flex flex-col justify-center shadow-lg bg-slate-100 text-black">
<img
src="./features-images/download.png"
alt="Faster Downloading Icon"
className="w-1/4 self-center mb-5"
/>
<h3 className="feature--title text-lg mb-1">
Faster Downloading of files
</h3>
<p className="feature--description font-normal leading-normal">
Parallel downloading of files' part makes the download faster
</p>
</div>
<div className="feature w-1/4 m-2 p-4 rounded-md h-auto flex flex-col justify-center shadow-lg bg-slate-100 text-black">
<img
src="./features-images/youtube.png"
alt="Support for Youtube, Instagram Icon"
className="w-1/4 self-center mb-5"
/>
<h3 className="feature--title text-lg mb-1">
Support for downloading videos from YouTube, Instagram, etc.
</h3>
<p className="feature--description font-normal leading-normal">
Drifty allows downloading videos from popular platforms like YouTube
and Instagram with ease.
</p>
</div>
<div className="feature w-1/4 m-2 p-4 rounded-md h-auto flex flex-col justify-center shadow-lg bg-slate-100 text-black">
<img
src="./features-images/user-interface.png"
alt="Gui and Cli Icon"
className="w-1/4 self-center mb-5"
/>
<h3 className="feature--title text-lg mb-1">
Available both in GUI and CLI mod
</h3>
<p className="feature--description font-normal leading-normal">
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.
</p>
</div>
</div>
<div class="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} />
<Demo />
<Features />
<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,
};
}
Binary file added Website/public/features-images/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/public/features-images/open-source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/public/features-images/user-interface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/public/features-images/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.