-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ DotLines component for Drag section + Sizes ajustments + Styles ajustments
- Loading branch information
Showing
6 changed files
with
132 additions
and
60 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
name: NextJS CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/**' | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
push: | ||
paths: | ||
- "src/**" | ||
pull_request: | ||
paths: | ||
- "src/**" | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: src | ||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: src | ||
|
||
- name: Check formatting | ||
run: pnpx prettier . | ||
working-directory: src | ||
- name: Check formatting | ||
run: pnpx prettier . | ||
working-directory: src | ||
|
||
lint: | ||
needs: format | ||
runs-on: ubuntu-latest | ||
lint: | ||
needs: format | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: src | ||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: src | ||
|
||
- name: Lint | ||
run: pnpm run lint | ||
working-directory: src | ||
- name: Lint | ||
run: pnpm run lint | ||
working-directory: src |
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,19 @@ | ||
"use client"; | ||
import { motion } from "framer-motion"; | ||
|
||
export default function Page() { | ||
return ( | ||
<motion.div | ||
initial={{ opacity: 0, scale: 0.5 }} | ||
animate={{ opacity: 1, scale: 1 }} | ||
transition={{ | ||
duration: 0.8, | ||
delay: 0.2, | ||
ease: [0, 0.71, 0.2, 1.01], | ||
}} | ||
className="flex min-h-screen flex-col items-center justify-center" | ||
> | ||
<h1 className="text-2xl">Settings</h1> | ||
</motion.div> | ||
); | ||
} |
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,41 @@ | ||
import React from "react"; | ||
import { Circle } from "lucide-react"; | ||
|
||
interface DotLineProps { | ||
count?: number; | ||
} | ||
|
||
const DotLine: React.FC<DotLineProps> = ({ count = 50 }) => { | ||
return ( | ||
<div className="flex justify-between w-1/2 overflow-hidden"> | ||
{Array.from({ length: count }).map((_, index) => ( | ||
<Circle | ||
key={index} | ||
size={4} | ||
fill="currentColor" | ||
style={{ | ||
opacity: 0.1, | ||
}} | ||
/> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
interface DotPatternProps { | ||
rows?: number; | ||
dotsPerRow?: number; | ||
} | ||
|
||
export const DotPattern: React.FC<DotPatternProps> = ({ | ||
rows = 3, | ||
dotsPerRow = 50, | ||
}) => { | ||
return ( | ||
<div className="flex flex-col items-center"> | ||
{Array.from({ length: rows }).map((_, index) => ( | ||
<DotLine key={index} count={dotsPerRow} /> | ||
))} | ||
</div> | ||
); | ||
}; |
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