Skip to content

Commit 1d3ab43

Browse files
author
tkokhing
committed
fixed Tip/Note/Alert cl disparity, its css, add VIC/Att constants, timestamp suffix to filename, re-org frontier_data-exporter
1 parent f4ebbf0 commit 1d3ab43

10 files changed

Lines changed: 32 additions & 47 deletions

File tree

src/app/_components/blog_frame/alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Alert({ children }: { children: React.ReactNode }) {
22
return (
33
<div className="alert py-0.5 ">
44
<div className="text-center text-2xl font-bold mb-2">⚠️ Alert:</div>
5-
<div className="text-justify">{children}</div>
5+
<div className="text-justify text-amber-950">{children}</div>
66
</div>
77
);
88
}

src/app/_components/blog_frame/note.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Note({ children }: { children: React.ReactNode }) {
22
return (
33
<div className="note py-0.5 ">
44
<div className="text-center text-2xl font-bold mb-2">📝 Note:</div>
5-
<div className="text-justify">{children}</div>
5+
<div className="text-justify text-green-900">{children}</div>
66
</div>
77
);
88
}

src/app/_components/blog_frame/tip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Tip({ children }: { children: React.ReactNode }) {
22
return (
33
<div className="tip py-0.5 ">
44
<div className="text-center text-2xl font-bold mb-2">💡 Tip:</div>
5-
<div className="text-justify">{children}</div>
5+
<div className="text-justify text-blue-900">{children}</div>
66
</div>
77
);
88
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"use client";
2+
import { monthdate } from "@/app/_components/preference/variable";
3+
4+
export default function FilenameSuffix() {
5+
const suffix = monthdate(new Date());
6+
return (
7+
<>
8+
{`${suffix}`}
9+
</>
10+
);
11+
}

src/app/_components/preference/data-exporter.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// For generating dynamic variables to enhance UI
2+
export function monthdate(date = new Date()) {
3+
const pad = (n: number) => String(n).padStart(2, '0');
4+
return `${pad(date.getDate())}${pad(date.getMonth() + 1)}_${pad(date.getHours())}${pad(date.getMinutes())}`;
5+
}

src/app/blog/posts/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
77
import Container from "@/app/_components/preference/container";
88
import { PostHeader } from "@/app/_components/post_gen/post-header";
99
import { PostBody } from "@/app/_components/post_gen/post-body";
10-
import { FrontierData } from "@/app/_components/preference/data-exporter";
11-
import { FrontierLeadinData } from "@/app/_components/preference/data-exporter";
10+
import { FrontierData } from "@/lib/_data_exporter/data_securingdigitalfrontiers/frontier_data-exporter";
11+
import { FrontierLeadinData } from "@/lib/_data_exporter/data_securingdigitalfrontiers/frontier_data-exporter";
1212
import { ToggleFrame } from "@/app/_components/preference/toggle-frame";
1313
import { PostListConcise } from "@/app/_components/post_gen/post-list-concise";
1414

src/app/blog/posts/securing-digital-frontiers/[slug]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { PostBody } from "@/app/_components/post_gen/post-body";
77
import { getPostBySlug } from "@/lib/share/api";
88
import { generatePageMetadata } from "@/lib/share/generatePageMetadata";
99
import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
10-
import { CyberDomainData } from "@/app/_components/preference/data-exporter";
11-
import { BlueprintBattlefieldData } from "@/app/_components/preference/data-exporter";
12-
import { CyberThreatsData } from "@/app/_components/preference/data-exporter";
10+
import { CyberDomainData } from "@/lib/_data_exporter/data_securingdigitalfrontiers/frontier_data-exporter";
11+
import { BlueprintBattlefieldData } from "@/lib/_data_exporter/data_securingdigitalfrontiers/frontier_data-exporter";
12+
import { CyberThreatsData } from "@/lib/_data_exporter/data_securingdigitalfrontiers/frontier_data-exporter";
1313
const MDX_FOLDER = "_frontier_post/_frontier";
1414

1515
type Params = {

src/lib/share/constants.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ export const Home = "https://tkokhing.github.io";
44
export const LOGO_PATH = "/img/logo";
55
export const REPO_NAME = ""; // for future expansion use
66
export const T_ANI_GIF_URL = `${LOGO_PATH}/tkokhing.gif`;
7-
export const TKOKHING_LOGO_SVG_URL = `${LOGO_PATH}/tkokhing.svg`;
7+
export const TKOKHING_LOGO_SVG_URL = `${LOGO_PATH}/tkokhing.svg`;
8+
export const VICTIM1_IP = "10.10.4.6";
9+
export const VICTIM1_PORT = "80";
10+
export const ATTACKER_IP = "10.4.6.114";
11+
export const ATTACKER_PORT = "4444";

src/styles/blog.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
.alert {
99
background-color: #fffbeb;
1010
border-color: #f59e0b;
11-
color: black;
11+
color: #451a03;
1212
}
1313

1414
.note {
1515
background-color: #ecfdf5;
1616
border-color: #10b981;
17-
color: black;
17+
color: #14532d;
1818
}
1919

2020
.tip {
2121
background-color: #eff6ff;
2222
border-color: #3b82f6;
23-
color: black;
23+
color: #1e3a8a;
2424
}

0 commit comments

Comments
 (0)