Skip to content

Commit b4da317

Browse files
Making all language name uppercase
1 parent 9d1c04d commit b4da317

File tree

10 files changed

+184
-8
lines changed

10 files changed

+184
-8
lines changed

public/data/_index.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44
"icon": "/icons/c.svg"
55
},
66
{
7-
"lang": "Cpp",
7+
"lang": "CPP",
88
"icon": "/icons/cpp.svg"
99
},
1010
{
11-
"lang": "Css",
11+
"lang": "CSS",
1212
"icon": "/icons/css.svg"
1313
},
1414
{
15-
"lang": "Html",
15+
"lang": "HTML",
1616
"icon": "/icons/html.svg"
1717
},
1818
{
19-
"lang": "Javascript",
19+
"lang": "JAVASCRIPT",
2020
"icon": "/icons/javascript.svg"
2121
},
2222
{
23-
"lang": "Python",
23+
"lang": "PYTHON",
2424
"icon": "/icons/python.svg"
2525
},
2626
{
27-
"lang": "Rust",
27+
"lang": "RUST",
2828
"icon": "/icons/rust.svg"
2929
},
3030
{
31-
"lang": "Scss",
31+
"lang": "SCSS",
3232
"icon": "/icons/scss.svg"
3333
}
3434
]

public/data/c.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"hello-world",
1313
"utility"
1414
],
15+
"contributors": [],
1516
"code": "#include <stdio.h> // Includes the input/output library\n\nint main() { // Defines the main function\n printf(\"Hello, World!\\n\") // Outputs Hello, World! and a newline\n\n return 0; // indicate the program executed successfully\n}\n"
1617
}
1718
]
@@ -29,6 +30,7 @@
2930
"factorial",
3031
"utility"
3132
],
33+
"contributors": [],
3234
"code": "int factorial(int x) {\n int y = 1;\n\n for (int i = 2; i <= x; i++)\n y *= i;\n\n return y;\n}\n"
3335
},
3436
{
@@ -41,6 +43,7 @@
4143
"power",
4244
"utility"
4345
],
46+
"contributors": [],
4447
"code": "int power(int x, int n) {\n int y = 1;\n\n for (int i = 0; i < n; i++)\n y *= x;\n\n return y;\n}\n"
4548
}
4649
]

public/data/cpp.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"hello-world",
1313
"utility"
1414
],
15+
"contributors": [],
1516
"code": "#include <iostream> // Includes the input/output stream library\n\nint main() { // Defines the main function\n std::cout << \"Hello, World!\" << std::endl; // Outputs Hello, World! and a newline\n return 0; // indicate the program executed successfully\n}\n"
1617
}
1718
]
@@ -29,6 +30,7 @@
2930
"reverse",
3031
"utility"
3132
],
33+
"contributors": [],
3234
"code": "#include <string>\n#include <algorithm>\n\nstd::string reverseString(const std::string& input) {\n std::string reversed = input;\n std::reverse(reversed.begin(), reversed.end());\n return reversed;\n}\n"
3335
},
3436
{
@@ -41,6 +43,7 @@
4143
"split",
4244
"utility"
4345
],
46+
"contributors": [],
4447
"code": "#include <string>\n#include <vector>\n\nstd::vector<std::string> split_string(std::string str, std::string delim) {\n std::vector<std::string> splits;\n int i = 0, j;\n int inc = delim.length();\n while (j != std::string::npos) {\n j = str.find(delim, i);\n splits.push_back(str.substr(i, j - i));\n i = j + inc;\n }\n return splits;\n}\n"
4548
}
4649
]

public/data/css.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"3D",
1313
"effect"
1414
],
15+
"contributors": [],
1516
"code": ".button {\n background-color: #28a745;\n color: white;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n transition: transform 0.1s;\n}\n\n.button:active {\n transform: translateY(2px);\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n}\n"
1617
},
1718
{
@@ -24,6 +25,7 @@
2425
"hover",
2526
"transition"
2627
],
28+
"contributors": [],
2729
"code": ".button {\n background-color: #007bff;\n color: white;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.button:hover {\n background-color: #0056b3;\n}\n"
2830
},
2931
{
@@ -37,6 +39,7 @@
3739
"hover",
3840
"transition"
3941
],
42+
"contributors": [],
4043
"code": ".button {\n font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,;\n background: #0a85ff;\n color: #fff;\n padding: 8px 12px;\n border: none;\n margin: 4px;\n border-radius: 10px;\n cursor: pointer;\n box-shadow: inset 0 1px 1px #fff2, 0px 2px 3px -2px rgba(0, 0, 0, 0.3) !important; /*This is really performance heavy*/\n font-size: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n transition: all 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);\n}\n.button:hover {\n background: #0974ee;\n color: #fff\n}\n"
4144
}
4245
]
@@ -54,6 +57,7 @@
5457
"background",
5558
"effects"
5659
],
60+
"contributors": [],
5761
"code": ".blur-background {\n backdrop-filter: blur(10px);\n background: rgba(255, 255, 255, 0.5);\n}\n"
5862
},
5963
{
@@ -66,6 +70,7 @@
6670
"glow",
6771
"effects"
6872
],
73+
"contributors": [],
6974
"code": ".glow {\n background-color: #f39c12;\n padding: 10px 20px;\n border-radius: 5px;\n transition: box-shadow 0.3s ease;\n}\n\n.glow:hover {\n box-shadow: 0 0 15px rgba(243, 156, 18, 0.8);\n}\n"
7075
}
7176
]
@@ -83,6 +88,7 @@
8388
"browser",
8489
"layout"
8590
],
91+
"contributors": [],
8692
"code": "* {\n margin: 0;\n padding: 0;\n box-sizing: border-box\n}\n"
8793
},
8894
{
@@ -95,6 +101,7 @@
95101
"columns",
96102
"layout"
97103
],
104+
"contributors": [],
98105
"code": ".columns {\n display: flex;\n justify-content: space-between;\n}\n\n.column {\n flex: 1;\n margin: 0 10px;\n}\n"
99106
},
100107
{
@@ -106,6 +113,7 @@
106113
"layout",
107114
"grid"
108115
],
116+
"contributors": [],
109117
"code": ".grid-container {\n display: grid\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n/* Explanation:\n- `auto-fit`: Automatically fits as many columns as possible within the container.\n- `minmax(250px, 1fr)`: Defines a minimum column size of 250px and a maximum size of 1fr (fraction of available space).\n*/\n}\n\n"
110118
},
111119
{
@@ -116,6 +124,7 @@
116124
"css",
117125
"responsive"
118126
],
127+
"contributors": [],
119128
"code": "/* Phone */\n.element {\n margin: 0 10%\n}\n\n/* Tablet */\n@media (min-width: 640px) {\n .element {\n margin: 0 20%\n }\n}\n\n/* Desktop base */\n@media (min-width: 768px) {\n .element {\n margin: 0 30%\n }\n}\n\n/* Desktop large */\n@media (min-width: 1024px) {\n .element {\n margin: 0 40%\n }\n}\n\n/* Desktop extra large */\n@media (min-width: 1280px) {\n .element {\n margin: 0 60%\n }\n}\n\n/* Desktop bige */\n@media (min-width: 1536px) {\n .element {\n margin: 0 80%\n }\n}\n"
120129
},
121130
{
@@ -128,6 +137,7 @@
128137
"footer",
129138
"sticky"
130139
],
140+
"contributors": [],
131141
"code": "body {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n}\n\nfooter {\n margin-top: auto;\n}\n"
132142
}
133143
]
@@ -144,6 +154,7 @@
144154
"typography",
145155
"spacing"
146156
],
157+
"contributors": [],
147158
"code": "p {\n letter-spacing: 0.05em;\n}\n"
148159
},
149160
{
@@ -156,6 +167,7 @@
156167
"responsive",
157168
"typography"
158169
],
170+
"contributors": [],
159171
"code": "h1 {\n font-size: calc(1.5rem + 2vw);\n}\n"
160172
}
161173
]

public/data/html.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"grid",
1515
"full-height"
1616
],
17+
"contributors": [],
1718
"code": "<!DOCTYPE html>\n<html>\n <head>\n <style>\n body {\n margin: 0;\n min-height: 100vh;\n display: grid;\n grid-template-rows: auto 1fr auto;\n background: red; /* Shouldn't be visible */\n }\n\n .header {\n background: #3b82f6;\n padding: 1rem;\n display: flex;\n & .menu {\n margin-left: auto;\n }\n & .menu ul {\n margin-left: auto;\n display: flex;\n gap: 1rem;\n }\n }\n\n .main {\n background: #f3f4f6;\n padding: 1rem;\n }\n\n .footer {\n background: #1f2937;\n padding: 1rem;\n }\n </style>\n </head>\n <body>\n <div class=\"header\">\n Header\n <nav class=\"menu\">\n <ul>\n <li><a href=\"#\">Home</a></li>\n <li><a href=\"#\">About</a></li>\n <li><a href=\"#\">Contact</a></li>\n </ul>\n </nav>\n </div>\n <div class=\"main\">Main Content</div>\n <div class=\"footer\">Footer</div>\n </body>\n</html>\n"
1819
},
1920
{
@@ -28,6 +29,7 @@
2829
"flexbox",
2930
"viewport"
3031
],
32+
"contributors": [],
3133
"code": "<!DOCTYPE html>\n<html style=\"margin: 0\">\n <head>\n <style type=\"text/css\">\n body {\n margin: 0;\n display: flex;\n flex-direction: column;\n min-height: 100svh; /* Smallest viewport height */\n min-height: 100vh; /* Standard viewport height */\n min-height: 100dvh; /* Dynamic viewport height */\n min-height: 100lvh; /* Largest viewport height */\n background-color: red;\n }\n\n .header {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n background-color: blue;\n }\n\n .body {\n flex-grow: 1;\n background-color: whitesmoke;\n }\n\n .footer {\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: blue;\n }\n </style>\n <head>\n <body>\n <div class=\"header\">header</div>\n <div class=\"body\">body/content</div>\n <div class=\"footer\">footer</div>\n </body>\n</html>\n"
3234
}
3335
]

0 commit comments

Comments
 (0)