Skip to content

Commit

Permalink
Merge branch 'master' into fix/change-trivia-to-interview-question
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrithik0112 authored Oct 2, 2023
2 parents f83bd6b + 43c9312 commit f0150e5
Show file tree
Hide file tree
Showing 27 changed files with 1,336 additions and 146 deletions.
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,3 @@ body:
description: A brief description of the question or issue, also include what you tried and what didn't work
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: Please add screenshots if applicable
validations:
required: false
- type: textarea
id: extrainfo
attributes:
label: Additional information
description: Is there anything else we should know about this bug?
validations:
required: false
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/docs.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,3 @@ body:
description: A brief description of the feature.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: Please add screenshots if applicable
validations:
required: false
- type: textarea
id: extrainfo
attributes:
label: Additional information
description: Is there anything else we should know about this issue?
validations:
required: false
22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/other.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Configuration for welcome - https://github.com/behaviorbot/welcome

# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
# Comment to be posted to on first time issues

newIssueWelcomeComment: >
Hello there!👋 Welcome to the project!🚀⚡
Thank you and congrats🎉 for opening your very first issue in this project. Please make sure not to start working on the issue, unless you get assigned to it.😄
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository

newPRWelcomeComment: >
Hello there!👋 Welcome to the project!💖
Thank you and congrats🎉 for opening your first pull request. We will get back to you as soon as we can 😄.
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
# Comment to be posted to on pull requests merged by a first time user

firstPRMergeComment: >
Congrats on merging your first pull request! 🎉 All the best for your amazing open source journey ahead 🚀.
19 changes: 19 additions & 0 deletions .github/workflows/auto-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Auto_Response_on_PR_Merge

on:
pull_request_target:
types: [closed]

jobs:
auto-response:
runs-on: ubuntu-latest

steps:
- uses: derekprior/add-autoresponse@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
respondableId: ${{ github.event.pull_request.node_id }}
response: "Thank you @${{ github.event.pull_request.user.login }} for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)"
author: ${{ github.event.pull_request.user.login }}
exemptedAuthors: "Vishal-raj-1, ManishBisht777"
16 changes: 16 additions & 0 deletions .github/workflows/greeting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hi 😄, thanks for creating your first contribution at Official-Website, do read and follow the Contribution Guidelines while contributing.'
pr-message: 'Thank you for your pull request and welcome to our community! We will be getting back to you soon . Your patience will be greatly appreciated! Thanks! 🥳'
95 changes: 95 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v3
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Static HTML export with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock

# local env files
.env*.local
Expand Down
88 changes: 71 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,88 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# Frontend Freaks Official Website

Welcome to the official repository for the Frontend Freaks website! This website is designed to help you learn and improve your frontend development skills. Whether you're a beginner looking to get started or an experienced developer seeking to stay updated with the latest trends, Frontend Freaks has something for you.

## Table of Contents

- [About Frontend Freaks](#about-frontend-freaks)
- [Tech Stack](#tech-stack)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [License](#license)

## About Frontend Freaks

Frontend Freaks is a community-driven platform dedicated to frontend development. Our goal is to provide resources, tutorials, articles, and tools that empower frontend developers to excel in their craft. Whether you are interested in HTML, CSS, JavaScript, or any other frontend technology, you'll find valuable content here to enhance your skills.

## Tech Stack

The Frontend Freaks website is built using the following technologies:

- [NEXT.js](https://nextjs.org/): A popular React framework for building fast, modern web applications.
- [Tailwind CSS](https://tailwindcss.com/): A utility-first CSS framework that helps you quickly design and style your web components.
- [ContentLayer](https://contentlayer.dev/): A content management system (CMS) or data layer used to manage dynamic content and data-driven pages on the website.
- [Node.js](https://nodejs.org/): A JavaScript runtime for server-side development.
- [npm](https://www.npmjs.com/): The package manager for JavaScript that manages project dependencies.

## Getting Started

First, run the development server:
To get started with the Frontend Freaks website, follow these steps:

### Prerequisites

- Node.js: Make sure you have Node.js installed on your computer. You can download it from [nodejs.org](https://nodejs.org/).

### Installation

1. Clone the repository to your local machine:

```bash
git clone https://github.com/frontend-freaks/frontend-freaks-website.git
```

2. Change into the project directory:

```bash
cd frontend-freaks-website
```

3. Install the project dependencies:

```bash
npm install
```

### Development

To run the development server and start working on the Frontend Freaks website, use the following command:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
This will start a local development server and open the website in your default web browser. You can make changes to the code, and the website will automatically reload to reflect your modifications.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
### Building for Production

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
When you are ready to build the website for production, use the following command:

## Learn More
```bash
npm run build
```

To learn more about Next.js, take a look at the following resources:
This will create a production-ready build of the website in the `build` directory.

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
## Contributing

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
We welcome contributions from the community to improve the Frontend Freaks website. If you'd like to contribute, please follow these guidelines:

## Deploy on Vercel
1. Fork this repository and clone it to your local machine.
2. Create a new branch for your changes: `git checkout -b feature/your-feature-name`
3. Make your changes, and ensure that the code passes any tests.
4. Commit your changes: `git commit -m "Add your commit message"`
5. Push your changes to your fork: `git push origin feature/your-feature-name`
6. Create a pull request to the `master` branch of this repository.

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
---

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Thank you for visiting the Frontend Freaks official repository. We hope you find our website valuable and enjoy learning and improving your frontend development skills with us! If you have any questions or suggestions, please feel free to open an issue or reach out to us. Happy coding!
2 changes: 1 addition & 1 deletion app/(batches)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CourseRootLayout = ({ children }: BatchRootLayoutProps) => {
<div className=" px-3 hidden md:flex">
<CommandMenu />
</div>
<Link href="/" target="_blank" rel="noreferrer">
<Link href="https://github.com/FrontendFreaks" target="_blank" rel="noreferrer">
<Icons.gitHub className="h-7 w-7" />
<span className="sr-only">GitHub</span>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion app/(docs)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CourseRootLayout = ({ children }: BatchRootLayoutProps) => {
<div className=" px-3 hidden md:flex">
<CommandMenu />
</div>
<Link href="/" target="_blank" rel="noreferrer">
<Link href="https://github.com/FrontendFreaks" target="_blank" rel="noreferrer">
<Icons.gitHub className="h-7 w-7" />
<span className="sr-only">GitHub</span>
</Link>
Expand Down
Binary file modified app/favicon.ico
Binary file not shown.
Loading

0 comments on commit f0150e5

Please sign in to comment.