update landingpage

This commit is contained in:
Anang Yusman 2026-02-02 13:52:59 +08:00
parent a0749a2b2e
commit fd64f28670
5 changed files with 48 additions and 23 deletions

View File

@ -82,7 +82,7 @@ export default function DetailContent() {
const [diseId, setDiseId] = useState(0); const [diseId, setDiseId] = useState(0);
const [thumbnailImg, setThumbnailImg] = useState<File[]>([]); const [thumbnailImg, setThumbnailImg] = useState<File[]>([]);
const [selectedMainImage, setSelectedMainImage] = useState<number | null>( const [selectedMainImage, setSelectedMainImage] = useState<number | null>(
null null,
); );
const [selectedIndex, setSelectedIndex] = useState(0); const [selectedIndex, setSelectedIndex] = useState(0);
@ -332,16 +332,22 @@ export default function DetailContent() {
</span> </span>
<span>-</span> <span>-</span>
<span> <span>
<span> {new Date(
{new Date( articleDetail?.publishedAt ?? articleDetail?.createdAt,
articleDetail?.publishedAt ?? articleDetail?.createdAt )
).toLocaleDateString("id-ID", { .toLocaleString("id-ID", {
day: "numeric", day: "numeric",
month: "long", month: "long",
year: "numeric", year: "numeric",
})} hour: "2-digit",
</span> minute: "2-digit",
hour12: false,
timeZone: "Asia/Jakarta",
})
.replace("pukul ", "")}{" "}
WIB
</span> </span>
<span className="text-gray-500">in</span> <span className="text-gray-500">in</span>
<span>{articleDetail?.categories?.[0]?.title}</span> <span>{articleDetail?.categories?.[0]?.title}</span>
</div> </div>
@ -509,7 +515,7 @@ export default function DetailContent() {
<div <div
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: decodeHtmlString( __html: decodeHtmlString(
articleDetail?.htmlDescription || "" articleDetail?.htmlDescription || "",
), ),
}} }}
/> />
@ -765,7 +771,7 @@ export default function DetailContent() {
day: "2-digit", day: "2-digit",
month: "long", month: "long",
year: "numeric", year: "numeric",
} },
)} )}
</span> </span>
<span>💬 0</span> <span>💬 0</span>

View File

@ -8,11 +8,14 @@ export default function Footer() {
<footer className="bg-[#ECEFF5] pt-20 pb-10 w-full"> <footer className="bg-[#ECEFF5] pt-20 pb-10 w-full">
<div className="max-w-screen-xl mx-auto px-6 grid grid-cols-1 md:grid-cols-2 "> <div className="max-w-screen-xl mx-auto px-6 grid grid-cols-1 md:grid-cols-2 ">
{/* Logo */} {/* Logo */}
<div className="flex items-center justify-end"> <div className="flex justify-center md:justify-end">
<Link href="/" className="text-2xl font-bold"> <Image
<span className="text-gray-900">travel</span> src="/milenial-logo.png"
<span className="text-teal-400">news</span> alt="Logo"
</Link> width={230}
height={230}
className="object-contain"
/>
</div> </div>
{/* Subscribe Box */} {/* Subscribe Box */}

View File

@ -11,10 +11,12 @@ export default function Navbar() {
{/* Left: Logo */} {/* Left: Logo */}
<div className="flex flex-row justify-between mb-3"> <div className="flex flex-row justify-between mb-3">
<div className="flex items-center"> <div className="flex items-center">
<Link href="/" className="text-2xl font-bold"> <Image
<span className="text-gray-900">travel</span> src="/milenial-logo.png"
<span className="text-teal-400">news</span> alt="Kritik Tajam Logo"
</Link> width={140}
height={100}
/>
</div> </div>
<div className="flex items-center gap-6"> <div className="flex items-center gap-6">
{/* Social Icons */} {/* Social Icons */}

BIN
public/milenial-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 KiB

View File

@ -1,7 +1,11 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2017", "target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
@ -11,7 +15,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
@ -19,9 +23,19 @@
} }
], ],
"paths": { "paths": {
"@/*": ["./*"] "@/*": [
"./*"
]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }