Skip to content

Commit 5f031a7

Browse files
committed
client(Inputs): added two more input fields for the ont-weight and for the ont size query params
1 parent 25d32df commit 5f031a7

File tree

12 files changed

+57
-20
lines changed

12 files changed

+57
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ With this site, you can customize your card.
5353
## 🔧 Query parameters
5454
| Parameter | Example | Default value | Description|
5555
|---------- |---------|---------------|------------|
56-
| **title** | `?title=My%20Custom%20Title` | My Tech Stack | The title of the card. %20 can be used as a space. |
56+
| **title** | `?title=My%20Title` | My Tech Stack | The title of the card. %20 can be used as a space. |
5757
| **theme** | `?theme=github_dark` | github | The theme of the card. You can browse between the themes [here](#-themes). |
5858
| **align** | `?align=center` | left | The alignment of the badges. (`left`, `center`, `right`) |
5959
| **showBorder** | `?showBorder=false` | true | Display the border around the card or not. (`true`, `false`) |
6060
| **borderRadius** | `?borderRadius=12.5` | 4.5 | Value between 0 and 50. |
6161
| **fontSize** | `?fontSize=20` | 18 | The size of the title. Accepts a value between 15 and 30. |
6262
| **fontWeight** | `?fontWeight=normal` | semibold | The thickness of the title. (`thin`, `normal`, `semibold`, `bold`) |
6363
| **lineCount** | `?lineCount=2` | 1 | The number of lines you want to add to your card. |
64-
| **line{n}** | `?line1=typescript,typescript,2D79C7` | - | The current line of the badge, where {n} is a number. *`(1 <= n <= lineCount)`* |
64+
| **line{n}** | `?line1=html5,html5,auto` | - | The current line of the badge, where {n} is a number. *`(1 <= n <= lineCount)`* |
6565

6666
<hr>
6767

client/build/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/css/main.454e330b.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.2277b9ca.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.3ecaabb1.js.map renamed to client/build/static/js/main.2277b9ca.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.3ecaabb1.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

client/src/atoms.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,13 @@ export const borderRadiusState = atom({
3535
key: "borderRadius",
3636
default: "4.5",
3737
});
38+
39+
export const fontSizeState = atom({
40+
key: "fontSize",
41+
default: "18",
42+
});
43+
44+
export const fontWeightState = atom({
45+
key: "fontWeight",
46+
default: "semibold",
47+
});

client/src/components/input/TrueFalseInput.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ const TrueFalseInput: FC<TrueFalseInputProps> = (props) => {
2222
<div
2323
onClick={() => props.setValue(true)}
2424
className={`py-1 px-4 border border-solid border-gh-border rounded-md
25-
cursor-pointer transition-all duration-150 hover:text-green-400
26-
hover:border-gh-button-border-active hover:bg-gh-button ${
27-
props.value ? "text-green-400 bg-gh-button" : ""
25+
cursor-pointer transition-all duration-150 hover:text-green-400 hover:bg-gh-button ${
26+
props.value
27+
? "text-green-400 bg-gh-button"
28+
: "hover:border-gh-button-border-active"
2829
}`}
2930
>
3031
True
@@ -33,9 +34,10 @@ const TrueFalseInput: FC<TrueFalseInputProps> = (props) => {
3334
<div
3435
onClick={() => props.setValue(false)}
3536
className={`py-1 px-4 border border-solid border-gh-border rounded-md
36-
cursor-pointer transition-all duration-150 hover:text-red-400
37-
hover:border-gh-button-border-active hover:bg-gh-button ${
38-
!props.value ? "text-red-400 bg-gh-button" : ""
37+
cursor-pointer transition-all duration-150 hover:text-red-400 hover:bg-gh-button ${
38+
!props.value
39+
? "text-red-400 bg-gh-button"
40+
: "hover:border-gh-button-border-active"
3941
}`}
4042
>
4143
False

0 commit comments

Comments
 (0)