Skip to content

Commit f005f4e

Browse files
committed
some app urls
1 parent 8e0bd7a commit f005f4e

14 files changed

+62
-14
lines changed

craco.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ module.exports = {
88
},
99
},
1010
},
11-
};
11+
// webpack: {
12+
// configure: (webpackConfig, { env, paths }) => {
13+
// if (env === 'production') {
14+
// webpackConfig.devtool = false; // Disable sourcemaps
15+
// }
16+
// return webpackConfig;
17+
// },
18+
// },
19+
};

src/components/AnimatedRoutes.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Routes, Route, useLocation } from 'react-router-dom';
2+
import {Routes, Route, useLocation, Navigate} from 'react-router-dom';
33
import { AnimatePresence, motion } from 'framer-motion';
44
import HomePage from '../pages/HomePage';
55
import BlogPage from '../pages/BlogPage';
@@ -298,6 +298,21 @@ function AnimatedRoutes() {
298298
</motion.div>
299299
}
300300
/>
301+
{/* Hardcoded redirects for fc::apps:: paths */}
302+
<Route path="/apps::ip" element={<Navigate to="/apps/ip" replace />} />
303+
<Route path="/apps::wc" element={<Navigate to="/apps/word-counter" replace />} />
304+
<Route path="/apps::tb" element={<Navigate to="/apps/tournament-bracket" replace />} />
305+
<Route path="/apps::cc" element={<Navigate to="/apps/case-converter" replace />} />
306+
<Route path="/apps::b64" element={<Navigate to="/apps/base64-converter" replace />} />
307+
<Route path="/apps::url" element={<Navigate to="/apps/url-converter" replace />} />
308+
<Route path="/apps::ascii" element={<Navigate to="/apps/ascii-converter" replace />} />
309+
<Route path="/apps::hash" element={<Navigate to="/apps/hash-generator" replace />} />
310+
<Route path="/apps::uuid" element={<Navigate to="/apps/uuid-generator" replace />} />
311+
<Route path="/apps::cpg" element={<Navigate to="/apps/color-palette-generator" replace />} />
312+
<Route path="/apps::css" element={<Navigate to="/apps/css-unit-converter" replace />} />
313+
<Route path="/apps::fng" element={<Navigate to="/apps/fantasy-name-generator" replace />} />
314+
<Route path="/apps::dice" element={<Navigate to="/apps/dice-roller" replace />} />
315+
{/* End of hardcoded redirects */}
301316
<Route
302317
path="/apps/ip"
303318
element={
@@ -326,6 +341,7 @@ function AnimatedRoutes() {
326341
</motion.div>
327342
}
328343
/>
344+
329345
<Route
330346
path="/apps/tournament-bracket"
331347
element={

src/pages/apps/AsciiConverterPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ function AsciiConverterPage() {
125125
backgroundSize: '10px 10px',
126126
}}
127127
></div>
128+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> ASCII Converter </h1>
129+
<hr className="border-gray-700 mb-4" />
128130
<div className="relative z-10 p-1">
129131
<div className="mb-4">
130132
<label className="block text-lg font-semibold mb-2" style={{ color: cardStyle.color }}>Input Text</label>

src/pages/apps/Base64ConverterPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ function Base64ConverterPage() {
9494
backgroundSize: '10px 10px',
9595
}}
9696
></div> <div className="relative z-10 p-1">
97+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Base64 Converter </h1>
98+
<hr className="border-gray-700 mb-4" />
9799
<div className="mb-4">
98100
<label className="block text-lg font-semibold mb-2" style={{ color: cardStyle.color }}>Input Text</label>
99101
<textarea

src/pages/apps/CaseConverterPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function CaseConverterPage() {
7373
backgroundSize: '10px 10px',
7474
}}
7575
></div> <div className="relative z-10 p-1">
76+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Case Converter </h1>
77+
<hr className="border-gray-700 mb-4" />
7678
<div className="w-full h-48 resize-y overflow-auto border rounded-md" style={{ borderColor: cardStyle.borderColor }}>
7779
<textarea
7880
className="w-full h-full p-4 bg-gray-900/50 font-mono resize-none border-none focus:ring-0"

src/pages/apps/ColorPaletteGeneratorPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function ColorPaletteGeneratorPage() {
5858
<span className="separator-color">::</span>
5959
<span className="apps-color">apps</span>
6060
<span className="separator-color">::</span>
61-
<span className="single-app-color">colors</span>
61+
<span className="single-app-color">cpg</span>
6262
</h1>
6363
<hr className="border-gray-700" />
6464
<div className="flex justify-center items-center mt-16">
@@ -74,6 +74,8 @@ function ColorPaletteGeneratorPage() {
7474
backgroundSize: '10px 10px',
7575
}}
7676
></div>
77+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Color Palette Generator </h1>
78+
<hr className="border-gray-700 mb-4" />
7779
<div className="relative z-10 p-1">
7880
<div className="flex justify-center gap-4 mb-4">
7981
<button

src/pages/apps/CssUnitConverterPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const CssUnitConverterPage = () => {
8181
<span className="separator-color">::</span>
8282
<span className="apps-color">apps</span>
8383
<span className="separator-color">::</span>
84-
<span className="single-app-color">css-units</span>
84+
<span className="single-app-color">css</span>
8585
</h1>
8686
<hr className="border-gray-700" />
8787
<div className="flex justify-center items-center mt-16">
@@ -98,6 +98,8 @@ const CssUnitConverterPage = () => {
9898
}}
9999
></div>
100100
<div className="relative z-10 p-1">
101+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> CSS Unit Converter </h1>
102+
<hr className="border-gray-700 mb-4" />
101103
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
102104
<div>
103105
<label htmlFor="inputValue" className="block text-sm font-medium text-gray-300">

src/pages/apps/DiceRollerPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const DiceRollerPage = () => {
5959
<span className="separator-color">::</span>
6060
<span className="apps-color">apps</span>
6161
<span className="separator-color">::</span>
62-
<span className="single-app-color">dice-roller</span>
62+
<span className="single-app-color">dice</span>
6363
</h1>
6464
<hr className="border-gray-700" />
6565
<div className="flex justify-center items-center mt-16">
@@ -76,6 +76,8 @@ const DiceRollerPage = () => {
7676
}}
7777
></div>
7878
<div className="relative z-10 p-1">
79+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Dice Roller </h1>
80+
<hr className="border-gray-700 mb-4" />
7981
<div className="mb-6 flex flex-col sm:flex-row gap-4">
8082
<div className="flex-1">
8183
<label htmlFor="diceType" className="block text-sm font-medium text-gray-300 mb-2">

src/pages/apps/FantasyNameGeneratorPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const FantasyNameGeneratorPage = () => {
123123
<span className="separator-color">::</span>
124124
<span className="apps-color">apps</span>
125125
<span className="separator-color">::</span>
126-
<span className="single-app-color">fantasy-names</span>
126+
<span className="single-app-color">fng</span>
127127
</h1>
128128
<hr className="border-gray-700" />
129129
<div className="flex justify-center items-center mt-16">
@@ -140,6 +140,8 @@ const FantasyNameGeneratorPage = () => {
140140
}}
141141
></div>
142142
<div className="relative z-10 p-1">
143+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Fantasy Name Generator </h1>
144+
<hr className="border-gray-700 mb-4" />
143145
<div className="mb-6">
144146
<label htmlFor="nameType" className="block text-sm font-medium text-gray-300 mb-2">
145147
Name Type

src/pages/apps/HashGeneratorPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ function HashGeneratorPage() {
101101
backgroundSize: '10px 10px',
102102
}}
103103
></div>
104+
<h1 className="text-3xl font-arvo font-normal mb-4 text-app"> Hash Generator </h1>
105+
<hr className="border-gray-700 mb-4" />
104106
<div className="relative z-10 p-1">
105107
<div className="mb-4">
106108
<label className="block text-lg font-semibold mb-2" style={{ color: cardStyle.color }}>Input Text</label>

0 commit comments

Comments
 (0)