-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
568 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
"use client"; | ||
|
||
import React from "react"; | ||
import Slider from "react-slick"; | ||
import "slick-carousel/slick/slick.css"; | ||
import "slick-carousel/slick/slick-theme.css"; | ||
import { AwardImages } from "@/contexts/Award99.2"; | ||
import Image from "next/image"; | ||
import { StaticImport } from "next/dist/shared/lib/get-img-props"; | ||
|
||
// Type for image import | ||
type AwardImage = StaticImport; | ||
|
||
// React component | ||
const Award: React.FC = () => { | ||
// Slick carousel settings | ||
const settings = { | ||
className: "center", | ||
infinite: true, | ||
centerPadding: "60px", | ||
slidesToShow: 5, | ||
swipeToSlide: true, | ||
afterChange: function(index: number) { | ||
console.log( | ||
`Slider Changed to: ${index + 1}, background: #222; color: #bada55` | ||
); | ||
} | ||
}; | ||
|
||
return ( | ||
<div className="award-carousel-container"> | ||
<Slider {...settings}> | ||
{AwardImages.map((image, index) => ( | ||
<div key={index} className="award-slide"> | ||
<Image | ||
src={image as AwardImage} // Type assertion to StaticImport | ||
alt={`Award ${index + 1}`} | ||
width={500} // Customize the width as needed | ||
height={300} // Customize the height as needed | ||
/> | ||
</div> | ||
))} | ||
</Slider> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Award; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
const CenteredCard: React.FC = () => { | ||
return ( | ||
<div className="flex justify-center items-center bg-gray-100"> | ||
<div className="p-6 max-w-xl bg-white rounded-lg shadow-lg border border-gray-300 text-center"> | ||
<h2 className="text-xl md:text-2xl lg:text-3xl font-bold text-purple-600 mb-4"> | ||
নারীর অধিকার এবং নারী ও শিশু সম্পর্কিত প্রোগ্রাম | ||
</h2> | ||
<p className="text-sm sm:text-base md:text-lg lg:text-xl text-gray-700"> | ||
নারীর অধিকার এবং নারী ও শিশু সম্পর্কিত প্রোগ্রামগুলি সচেতনতা সৃষ্টি, তথ্য | ||
প্রদান এবং সমাজে ইতিবাচক পরিবর্তন আনার জন্য প্রচারিত হয়। এসব প্রোগ্রামে | ||
নারীদের আইনি অধিকার, গার্হস্থ্য সহিংসতা, শিশুদের শিক্ষা ও সুরক্ষা, | ||
স্বাস্থ্য সচেতনতা, এবং নারী উদ্যোক্তাদের সাফল্য তুলে ধরা হয়। এছাড়া, শিশু | ||
শ্রম, পাচার ও নির্যাতন রোধে সচেতনতা তৈরি করা হয়, যা নারী ও শিশুদের | ||
নিরাপত্তা এবং সমান অধিকার নিশ্চিত করতে সহায়ক। | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CenteredCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React, { useState } from "react"; | ||
|
||
const CookieConsent: React.FC = () => { | ||
// State to control the visibility of the cookie consent | ||
const [isVisible, setIsVisible] = useState<boolean>(true); | ||
|
||
// Function to handle the "Accept" button click | ||
const handleAccept = () => { | ||
// Set the cookie to indicate consent has been given (or use localStorage) | ||
localStorage.setItem("cookieConsent", "true"); | ||
setIsVisible(false); // Hide the cookie consent popup | ||
}; | ||
|
||
// Check if the user has already accepted cookies | ||
const hasAcceptedCookies = localStorage.getItem("cookieConsent"); | ||
|
||
// If cookies are accepted, don't show the banner | ||
if (hasAcceptedCookies) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div | ||
className={`fixed bottom-12 left-1/2 z-50 -translate-x-1/2 rounded-full bg-white dark:bg-gray-800 p-4 drop-shadow-2xl w-11/12 sm:w-1/2 ${ | ||
isVisible ? "block" : "hidden" | ||
}`} | ||
id="gdpr" | ||
> | ||
<div className="flex items-center justify-between gap-6 text-sm"> | ||
<div className="content-left pl-4 dark:text-white"> | ||
This website uses cookies to improve your web experience. | ||
</div> | ||
<div className="content-right text-end"> | ||
<button | ||
onClick={handleAccept} | ||
className="cursor-pointer rounded-full bg-black dark:bg-gray-600 px-4 py-2 text-white" | ||
> | ||
Accept | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CookieConsent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.