Skip to content

Commit

Permalink
Merge pull request #94 from Shu12388y/main
Browse files Browse the repository at this point in the history
update the github hook
  • Loading branch information
Shu12388y authored Oct 15, 2024
2 parents 12ec53b + 1365a47 commit 5c6b042
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 227 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run test && npm run lint && npm run build && npm run format && npm run check
npm run test && npm run format && npm run check && npm run lint && npm run build
142 changes: 73 additions & 69 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,73 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in the **scamwebsiteV1** project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community, especially during Hacktoberfest, where we encourage new contributors to join and feel supported.

## Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct, especially during Hacktoberfest to ensure a positive experience for all contributors.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when an individual is officially representing the project or its community in public spaces. Examples of representing our project include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [YOUR EMAIL HERE]. All complaints will be reviewed and investigated promptly and fairly.

All project team members are obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Project maintainers will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from project maintainers, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

### 2. Warning
**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

---

By following this Code of Conduct, we can ensure a welcoming and inclusive environment during Hacktoberfest and beyond, encouraging new contributors to engage with the project and the community. Thank you for helping make **scamwebsiteV1** a positive space for all!
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in the **scamwebsiteV1** project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community, especially during Hacktoberfest, where we encourage new contributors to join and feel supported.

## Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct, especially during Hacktoberfest to ensure a positive experience for all contributors.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when an individual is officially representing the project or its community in public spaces. Examples of representing our project include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [YOUR EMAIL HERE]. All complaints will be reviewed and investigated promptly and fairly.

All project team members are obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Project maintainers will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from project maintainers, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

---

By following this Code of Conduct, we can ensure a welcoming and inclusive environment during Hacktoberfest and beyond, encouraging new contributors to engage with the project and the community. Thank you for helping make **scamwebsiteV1** a positive space for all!
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- `npm run test:watch`: Runs the test suite in watch mode.

Run any of these scripts in your terminal

```bash
npm run <script-name>
```
Expand Down Expand Up @@ -135,4 +136,4 @@ npm run <script-name>
</a>
</div>

**Happy Coding 💻 and we look forward to your contributions during **Hacktoberfest 2024**! 🎃**
**Happy Coding 💻 and we look forward to your contributions during **Hacktoberfest 2024**! 🎃**
4 changes: 2 additions & 2 deletions src/components/component/BlogLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ export function BlogPage() {
>
👍
</button>
<Suspense fallback={<div>Loading...</div>}>
{/* <Suspense fallback={<div>Loading...</div>}>
<LikeCount postId={post._id} />
</Suspense>
</Suspense> */}
<Drawer.Root>
<Drawer.Trigger asChild>
<button>📩</button>
Expand Down
95 changes: 49 additions & 46 deletions src/components/component/Cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,57 +20,60 @@ export default function Cta() {

return (
<div>
<FAQ/>
<section className="py-12 mb-20 bg-gray-100">
<div className="mx-auto max-w-7xl">
<div className="mx-auto max-w-2xl text-center">
<div className="isolate flex justify-center -space-x-2">
<Image
height={1200}
width={1200}
className="relative z-10 inline-block h-16 w-16 rounded-full ring-4 ring-white"
src="https://leerob.io/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Favatar.b1d1472f.jpg&w=256&q=75"
alt="Lee Robinson"
/>
<Image
width={1200}
height={1200}
className="relative z-0 inline-block h-16 w-16 rounded-full ring-4 ring-white"
src="https://nextjs.org/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F35255%2F1665059775-delba.jpg&w=640&q=75"
alt="Delba"
/>
</div>
<FAQ />
<section className="py-12 mb-20 bg-gray-100">
<div className="mx-auto max-w-7xl">
<div className="mx-auto max-w-2xl text-center">
<div className="isolate flex justify-center -space-x-2">
<Image
height={1200}
width={1200}
className="relative z-10 inline-block h-16 w-16 rounded-full ring-4 ring-white"
src="https://leerob.io/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Favatar.b1d1472f.jpg&w=256&q=75"
alt="Lee Robinson"
/>
<Image
width={1200}
height={1200}
className="relative z-0 inline-block h-16 w-16 rounded-full ring-4 ring-white"
src="https://nextjs.org/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F35255%2F1665059775-delba.jpg&w=640&q=75"
alt="Delba"
/>
</div>

<h2 className="mt-8 text-4xl font-bold leading-tight text-gray-800 sm:text-5xl lg:mt-12 lg:text-6xl">
Become part of{' '}
<span className="border-b-8 border-yellow-400">
our Tech Community.
</span>
</h2>
<h2 className="mt-8 text-4xl font-bold leading-tight text-gray-800 sm:text-5xl lg:mt-12 lg:text-6xl">
Become part of{' '}
<span className="border-b-8 border-yellow-400">
our Tech Community.
</span>
</h2>

{/* Subscription Form */}
<form onSubmit={handleSubscribe} className="flex justify-center mt-8">
<input
type="email"
placeholder="Your email address"
value={email}
onChange={(e) => setEmail(e.target.value)}
className="px-4 py-2 border border-gray-300 rounded-md"
required
/>
<button
type="submit"
className="ml-4 rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-md hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"
{/* Subscription Form */}
<form
onSubmit={handleSubscribe}
className="flex justify-center mt-8"
>
Subscribe Now
</button>
</form>
<input
type="email"
placeholder="Your email address"
value={email}
onChange={(e) => setEmail(e.target.value)}
className="px-4 py-2 border border-gray-300 rounded-md"
required
/>
<button
type="submit"
className="ml-4 rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-md hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"
>
Subscribe Now
</button>
</form>

{/* Message Display */}
{message && <p className="mt-4 text-green-600">{message}</p>}
{/* Message Display */}
{message && <p className="mt-4 text-green-600">{message}</p>}
</div>
</div>
</div>
</section>
</section>
</div>
);
}
43 changes: 28 additions & 15 deletions src/components/component/Faq.tsx
Original file line number Diff line number Diff line change
@@ -1,41 +1,54 @@
import { useState } from "react";
import faqData from "../../data/faqData.json";
import { useState } from 'react';
import faqData from '../../data/faqData.json';

function FAQ () {
function FAQ() {
const [openQuestion, setOpenQuestion] = useState(null);

const toggleQuestion = (index) => {
const toggleQuestion = (index: any) => {
setOpenQuestion(openQuestion === index ? null : index);
};

return (
<section id="faq" className="bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 py-12">
<section id="faq" className="bg-black py-12">
<div className="mx-auto w-full max-w-7xl px-45">
<h2 className="text-5xl font-bold text-white mb-8 text-center">Frequently Asked Questions</h2>
<h2 className="text-5xl font-bold text-white mb-8 text-center">
Frequently Asked Questions
</h2>
<div className="space-y-3">
{faqData.map((faq, index) => (
<div key={index} className="bg-gray-700 bg-opacity-50 backdrop-blur-sm rounded-lg overflow-hidden border border-gray-700 transition-all duration-300 hover:border-gray-600">
<div
key={index}
className="backdrop-blur-sm rounded-lg overflow-hidden border border-gray-700 transition-all duration-300 hover:border-gray-600"
>
<button
className="flex justify-between items-center w-full text-left px-5 py-4"
onClick={() => toggleQuestion(index)}
>
<span className="font-bold text-white">{faq.question}</span>
<svg
className={`w-5 h-5 text-gray-400 transform transition-transform duration-200 ${openQuestion === index ? 'rotate-180' : ''}`}
className={`w-5 h-5 text-orange-400 transform transition-transform duration-200 ${openQuestion === index ? 'rotate-180' : ''}`}
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M19 9l-7 7-7-7"
/>
</svg>
</button>
<div
className={`px-5 py-3 bg-gray-600 bg-opacity-50 transition-all duration-200 ease-in-out ${
openQuestion === index ? 'max-h-40 opacity-100' : 'max-h-0 opacity-0'
<div
className={`px-5 py-3 bg-orange-500 bg-opacity-70 transition-all duration-200 ease-in-out ${
openQuestion === index
? 'max-h-40 opacity-100'
: 'max-h-0 opacity-0'
}`}
>
<p className=" text-gray-300 text-base leading-relaxed font-semibold text-center">{faq.answer}</p>

<p className=" text-gray-300 text-base leading-relaxed font-semibold text-center">
{faq.answer}
</p>
</div>
</div>
))}
Expand All @@ -45,4 +58,4 @@ function FAQ () {
);
}

export default FAQ;
export default FAQ;
Loading

0 comments on commit 5c6b042

Please sign in to comment.