Skip to content

Commit c6b9b84

Browse files
committed
unbold on mobile, expanding output
1 parent f0a158a commit c6b9b84

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/App.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ function App() {
1414
const [expandedItems, setExpandedItems] = useState<string[]>([]);
1515
const [dnsLookupResult, setDNSLookupResult] = useState<string>("");
1616
const [dnsLookupDisable, setDNSLookupDisable] = useState<boolean>(false);
17+
const [dnsOutputExpand, setDNSOutputExpand] = useState<boolean>(false);
1718
const [HTTPAppResult, setHTTPAppResult] = useState<string>("");
1819
const [HTTPAppDisable, setHTTPAppDisable] = useState<boolean>(false);
20+
const [HTTPOutputExpand, setHTTPOutputExpand] = useState<boolean>(false);
1921
const [TCPAppResult, setTCPAppResult] = useState<string>("");
2022
const [TCPAppDisable, setTCPAppDisable] = useState<boolean>(false);
23+
const [TCPOutputExpand, setTCPOutputExpand] = useState<boolean>(false);
2124
const [serverstatus, setServerStatus] = useState<string>("...");
2225
const [statusclass, setStatusClass] = useState<string>("");
2326

@@ -63,7 +66,6 @@ function App() {
6366
const pythonLink = <a href="https://www.python.org/" className={`underline ${darkmodeSwitcher}`} target="_blank">Python</a>;
6467
const cppLink = <a href="https://isocpp.org/" className={`underline ${darkmodeSwitcher}`} target="_blank">C++</a>;
6568
const postgresLink = <a href="https://www.postgresql.org/" className={`underline ${darkmodeSwitcher}`} target="_blank">PostgreSQL</a>;
66-
6769
const gymLink = <a href="https://gymnasium.farama.org/index.html" className={`underline ${darkmodeSwitcher}`} target="_blank">OpenAI Gymnasium</a>;
6870
const sb3Link = <a href="https://github.com/DLR-RM/stable-baselines3" className={`underline ${darkmodeSwitcher}`} target="_blank">Stable Baselines 3</a>;
6971
const colabLink = <a href="https://colab.google/" className={`underline ${darkmodeSwitcher}`} target="_blank">Google Colab</a>;
@@ -76,6 +78,7 @@ function App() {
7678

7779
setDNSLookupResult("running...");
7880
setDNSLookupDisable(true);
81+
setDNSOutputExpand(true);
7982
console.log(JSON.stringify({query: dns_query}));
8083

8184
const controller = new AbortController();
@@ -114,6 +117,7 @@ function App() {
114117

115118
setHTTPAppResult("running...");
116119
setHTTPAppDisable(true);
120+
setHTTPOutputExpand(true);
117121
console.log(JSON.stringify({query: http_query}));
118122

119123
const controller = new AbortController();
@@ -153,6 +157,7 @@ function App() {
153157
const tcp_query_reverse = tcp_input_reverse.value;
154158

155159
setTCPAppResult("running... (this can take a while with large packet loss)");
160+
setTCPOutputExpand(true);
156161
setTCPAppDisable(true);
157162
console.log(JSON.stringify(
158163
{
@@ -251,7 +256,7 @@ function App() {
251256
title: <>choredash | </>,
252257
link: <a href="https://hmukesh.itch.io/chore-dash" target="_blank" className={`underline ${darkmodeSwitcher}`}>homepage</a>,
253258
content:<>
254-
<span className="font-bold text-amber-600"> <img src={trophysvg} className="inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2023 Capsher x Aggie Coding Club Coding Challenge</span>
259+
<span className="font-normal sm:font-bold text-amber-600"> <img src={trophysvg} className="inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2023 Capsher x Aggie Coding Club Coding Challenge</span>
255260
<br/>
256261
A short, replayable 2D game where you control a character who must rush to complete chores before their mom comes home.
257262
Built with {paytonLink} and {adnanLink}. Available for download on {choredashLink}.
@@ -264,7 +269,7 @@ function App() {
264269
title: <>jerma985 discord bot | </>,
265270
link: <a href="https://youtube.com/watch?v=gCIfvgX4Vg4" target="_blank" className={`underline ${darkmodeSwitcher}`}>demo</a>,
266271
content:<>
267-
<span className="font-bold text-amber-600"> <img src={trophysvg} className="inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2022 Aggie Coding Club Discord Bot Challenge</span>
272+
<span className="font-normal sm:font-bold text-amber-600"> <img src={trophysvg} className="inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2022 Aggie Coding Club Discord Bot Challenge</span>
268273
<br/>
269274
A Discord bot based on the popular Twitch streamer Jerma985. Built with {paytonLink}.
270275
<div className="h-2" />
@@ -290,9 +295,8 @@ function App() {
290295
<span className="font-heading tracking-tighter sm:tracking-normal font-bold">DNS Lookup:</span>
291296
<br/>
292297
<p className="mb-2">
293-
DNS stands for Domain Name Service.
294-
It allows applications to lookup the IP addresses of domains like "youtube.com" so that it can connect to YouTube's servers.
295-
Below, you can lookup those IP addresses yourself on {googleDNSLink}.
298+
DNS, or Domain Name Service, allows computers to lookup the IP address of a domain name. It's kinda like Google Maps for computers.
299+
Below, you can try it yourself on {googleDNSLink}.
296300
Try typing in "google.com", or this website, "hmukesh.me".
297301
</p>
298302
<div className="font-heading tracking-tighter sm:tracking-normal">
@@ -303,7 +307,7 @@ function App() {
303307
</div>
304308
<span className='font-heading tracking-tighter sm:tracking-normal'>Output:</span>
305309
<br/>
306-
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''}`} readOnly
310+
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''} ${dnsOutputExpand ? 'h-80': 'h-8'} `} readOnly
307311
placeholder='output will appear here...'
308312
value={dnsLookupResult}
309313
>
@@ -325,7 +329,7 @@ function App() {
325329
</div>
326330
<span className='font-heading tracking-tighter sm:tracking-normal'>Output:</span>
327331
<br/>
328-
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''}`} readOnly
332+
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''} ${HTTPOutputExpand ? 'h-80': 'h-8'} `} readOnly
329333
placeholder='output will appear here...'
330334
value={HTTPAppResult}
331335
>
@@ -349,7 +353,7 @@ function App() {
349353
</div>
350354
<span className='font-heading tracking-tighter sm:tracking-normal'>Output:</span>
351355
<br/>
352-
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''}`} readOnly
356+
<textarea className={`font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${darkMode ? 'bg-neutral-900' : ''} ${TCPOutputExpand ? 'h-80': 'h-8'} `} readOnly
353357
placeholder='output will appear here...'
354358
value={TCPAppResult}
355359
>

0 commit comments

Comments
 (0)