Skip to content

Commit

Permalink
fix: new landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
WonderDev21 committed Oct 8, 2022
1 parent fe673c7 commit de556b8
Show file tree
Hide file tree
Showing 134 changed files with 10,452 additions and 12,494 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Use `NODE_ENV=development` in `.env.local` while developing
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]

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

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

# Runs a single command using the runners shell
- name: Run tests
run: npm run test:once
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
36 changes: 36 additions & 0 deletions .vscode/berkekaragoz-general.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// Place your workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
//
// Snippet Docs: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax
//

"className Shorthand": {
"prefix": "cn",
"scope": "javascriptreact,typescriptreact",
"body": ["className=\"$0\""]
},
"console.log Shorthand": {
"prefix": "cl",
"scope": "javascript,typescript,javascriptreact,typescriptreact",
"body": ["console.log(\"${TM_FILENAME_BASE} - $0\");"]
},
"console.log a Variable Shorthand": {
"prefix": "clv",
"scope": "javascript,typescript,javascriptreact,typescriptreact",
"body": ["console.log(\"${TM_FILENAME_BASE} - $1\", $0);"]
}
}
12 changes: 12 additions & 0 deletions .vscode/boilerplate-testing.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Test Suite": {
"prefix": "tsuite",
"scope": "javascriptreact,typescriptreact",
"body": ["describe(\"${1:Enter the suite name.}\", ()=> {", "$0", "})"]
},
"Test Case": {
"prefix": "tcase",
"scope": "javascriptreact,typescriptreact",
"body": ["it(\"${1:Enter the test name.}\", ()=> {", "$0", "})"]
}
}
30 changes: 30 additions & 0 deletions .vscode/boilerplate.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"getStaticProps with locale": {
"prefix": "0-getStaticPropsWLocale",
"scope": "typescriptreact",
"body": [
"export const getStaticProps: GetStaticProps = async (ctx) => {",
" const { locale } = ctx;",
"",
" return {",
" props: {",
" ...(await serverSideTranslations(locale || \"en\", [${0:namespace}])),",
" },",
" };",
"};",
""
]
},
"const { t } = useTranslation([PAGES_TNS]...": {
"prefix": "0-UseTransPages",
"scope": "javascriptreact,typescriptreact",
"body": [
"const { t } = useTranslation([PAGES_TNS], { keyPrefix: \"$0${RELATIVE_FILEPATH/(?:^.*(?:[\\\\\\/]pages[\\\\\\/]))(.*)\\..+/${1}/g}\" });"
]
},
"const { t: gt } = useTranslation([GLOSSARY])": {
"prefix": "0-UseTransGlossary",
"scope": "javascriptreact,typescriptreact",
"body": ["const { t: gt } = useTranslation([GLOSSARY_TNS]);"]
}
}
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
### Next.js

### TypeScript

### Tailwind CSS

A rapid and utility-first CSS framework.

- @tailwindcss/typography
- tailwindcss-rtl (by 20lives)
- Theme Colors
- `primary, secondary, accent, background`

### next-i18next

### Jest and React Testing Library

### atomic design

### Error Page Template

404 and 500 error pages do exist as a sample.

### Height Breakpoints and Media Queries

xsh, smh, mdh, lgh, xlh.

### Import Path Aliases

`@/components`, `@/lib`, `@/styles`...

### Recommended VSCode Extensions

Headwind, Auto Rename Tag and Prettier.

## Getting Started with Next.js

First, run the development server:

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

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

## Deploy on Vercel
Loading

0 comments on commit de556b8

Please sign in to comment.