%PDF- %PDF-
| Direktori : /home2/rezakur1/www/portfolio/portfolio-rezakurnia/dist/server/chunks/ |
| Current File : /home2/rezakur1/www/portfolio/portfolio-rezakurnia/dist/server/chunks/endpoints_DA1Dz-Tw.mjs |
import { a3 as createComponent, ab as maybeRenderHead, $ as addAttribute, ak as renderSlot, am as renderTemplate, a2 as createAstro, ao as spreadAttributes, ae as renderComponent, ag as renderHead, aj as renderScript } from './astro/server_Dt2ArDMq.mjs';
import 'piccolore';
/* empty css */
import 'clsx';
const $$Astro$4 = createAstro();
const $$Container = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
Astro2.self = $$Container;
const { className } = Astro2.props;
return renderTemplate`${maybeRenderHead()}<div${addAttribute(`mx-auto max-w-7xl w-full px-5 sm:px-8 md:px-14 lg:px-5 ${className}`, "class")}> ${renderSlot($$result, $$slots["default"])} </div>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/shared/Container.astro", void 0);
const $$Astro$3 = createAstro();
const $$Paragraph = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
Astro2.self = $$Paragraph;
const { className, ...rest } = Astro2.props;
return renderTemplate`${maybeRenderHead()}<p${spreadAttributes(rest)}${addAttribute(`md:text-lg text-heading-3 ${className}`, "class")}> ${renderSlot($$result, $$slots["default"])} </p>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/shared/Paragraph.astro", void 0);
const $$Footer = createComponent(($$result, $$props, $$slots) => {
return renderTemplate`${maybeRenderHead()}<footer class="mt-20 pt-16 pb-8 bg-gradient-to-tr from-gray-100 to-gray-200 dark:from-gray-900 dark:to-transparent rounded-t-3xl"> ${renderComponent($$result, "Container", $$Container, {}, { "default": ($$result2) => renderTemplate` <div class="flex flex-col items-center text-center gap-6"> <!-- NAME / BRAND --> <h3 class="text-xl font-semibold text-heading-1">Reza Kurnia Setiawan</h3> <!-- DESCRIPTION --> ${renderComponent($$result2, "Paragraph", $$Paragraph, { "className": "max-w-xl" }, { "default": ($$result3) => renderTemplate`
Mobile Developer specializing in Flutter & Laravel. Building scalable,
high-performance applications for modern businesses.
` })} <!-- SOCIAL --> <div class="min-h-max flex items-center gap-4 text-heading-3 mt-8"> <a href="#" class="transition hover:text-heading-1 hover:scale-105"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-5 h-5" viewBox="0 0 16 16"> <path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"></path> </svg> <span class="sr-only">social link</span> </a> <a href="#" class="transition hover:text-heading-1 hover:scale-105"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-5 h-5" viewBox="0 0 16 16"> <path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"></path> </svg> <span class="sr-only">social link</span> </a> <a href="#" class="transition hover:text-heading-1 hover:scale-105"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-5 h-5" viewBox="0 0 16 16"> <path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"></path> </svg> <span class="sr-only">social link</span> </a> <a href="#" class="transition hover:text-heading-1 hover:scale-105"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-5 h-5" viewBox="0 0 16 16"> <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> </svg> <span class="sr-only">social link</span> </a> </div> </div> <div class="text-sm text-heading-3 mt-6">
© <span id="year"></span> Reza Kurnia. All rights reserved.
</div> ` })} </footer>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/elements/Footer.astro", void 0);
const $$Astro$2 = createAstro();
const $$BtnLink = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots);
Astro2.self = $$BtnLink;
const { href, text, i18nKey, className, variant } = Astro2.props;
const getThemeStyle = (variant2) => {
if (variant2 === "primary") {
return "bg-primary border-transparent relative after:bg-[#172554] hover:border-[#172554]";
}
return "text-primary";
};
const getTextColor = (variant2) => {
if (variant2 === "primary") {
return "text-white";
}
return "text-primary";
};
return renderTemplate`${maybeRenderHead()}<a${addAttribute(href, "href")}${addAttribute(`px-4 py-2 text-sm rounded-full outline-none relative overflow-hidden border duration-300 ease-linear
after:absolute after:inset-x-0 after:aspect-square after:scale-0 after:opacity-70 after:origin-center after:duration-300 after:ease-linear after:rounded-full after:top-0 after:left-0 after:bg-[#172554]
${getThemeStyle(variant)} hover:after:opacity-100 hover:after:scale-[2.5] ${className}`, "class")}> <span${addAttribute(`relative ${getTextColor(variant)} z-10`, "class")}> ${i18nKey ? renderTemplate`<span${addAttribute(i18nKey, "data-i18n")}>${text}</span>` : text} </span> </a>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/shared/BtnLink.astro", void 0);
const $$Astro$1 = createAstro();
const $$Navitem = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
Astro2.self = $$Navitem;
const { href, text, i18nKey } = Astro2.props;
return renderTemplate`${maybeRenderHead()}<li> <a${addAttribute(href, "href")} class="duration-300 font-medium ease-linear hover:text-primary py-3"> ${i18nKey ? renderTemplate`<span${addAttribute(i18nKey, "data-i18n")}>${text}</span>` : text} </a> </li>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/shared/Navitem.astro", void 0);
const $$Navbar = createComponent(($$result, $$props, $$slots) => {
const navItems = [
{
href: "/",
text: "Home",
i18nKey: "nav.home"
},
{
href: "/#about-us",
text: "About us",
i18nKey: "nav.about"
},
{
href: "/#portfolio",
text: "Portfolio",
i18nKey: "nav.portfolio"
},
{
href: "/#experience",
text: "Work Experience",
i18nKey: "nav.experience"
},
{
href: "/#services",
text: "Services",
i18nKey: "nav.services"
},
{
href: "/artikel",
text: "Artikel",
i18nKey: "nav.articles"
}
];
return renderTemplate`${maybeRenderHead()}<header class="sticky top-0 z-50 py-3 md:py-4 bg-body/80 backdrop-blur-xl border-b border-box-border"> ${renderComponent($$result, "Container", $$Container, {}, { "default": ($$result2) => renderTemplate` <nav class="w-full flex justify-between items-center gap-4 lg:gap-8 relative"> <!-- logo --> <div class="min-w-max inline-flex relative"> <a href="/" class="relative flex items-center gap-3"> <div class="relative w-7 h-7 overflow-hidden flex rounded-xl"> <span class="absolute w-4 h-4 -top-1 -right-1 bg-green-500 rounded-md rotate-45"></span> <span class="absolute w-4 h-4 -bottom-1 -right-1 bg-[#FCDC58] rounded-md rotate-45"></span> <span class="absolute w-4 h-4 -bottom-1 -left-1 bg-primary rounded-md rotate-45"></span> <span class="absolute w-2 h-2 rounded-full bg-heading-1 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"></span> </div> <div class="inline-flex text-lg font-semibold text-heading-1">
Reza Kurnia
</div> </a> </div> <div data-nav-overlay aria-hidden="true" class="fixed hidden inset-0 lg:!hidden bg-slate-900/30 dark:bg-slate-950/45 backdrop-blur-sm"></div> <div data-navbar class="flex h-0 overflow-hidden lg:!h-auto lg:scale-y-100 duration-300 ease-linear flex-col gap-y-6 gap-x-4 lg:gap-x-8 lg:flex-row w-full lg:justify-between lg:items-center absolute lg:relative top-full lg:top-0 bg-body/95 dark:bg-box-bg/95 backdrop-blur-xl border-0 shadow-lg shadow-box-shadow/50 lg:bg-transparent lg:dark:bg-transparent lg:backdrop-blur-none lg:shadow-none"> <ul class="border-t border-box-border lg:border-t-0 px-6 lg:px-0 pt-6 lg:pt-0 flex flex-col lg:flex-row gap-y-4 lg:gap-y-0 gap-x-6 xl:gap-x-8 text-base lg:text-lg text-heading-2 w-full lg:justify-center lg:items-center"> ${navItems.map((item) => {
return renderTemplate`${renderComponent($$result2, "Navitem", $$Navitem, { ...item })}`;
})} </ul> <div class="lg:min-w-max flex items-center sm:w-max w-full pb-6 lg:pb-0 border-b border-box-bg lg:border-0 px-6 lg:px-0 lg:pl-4"> ${renderComponent($$result2, "BtnLink", $$BtnLink, { "text": "Get Started", "i18nKey": "nav.getStarted", "href": "/#cta", "className": "flex justify-center w-full sm:w-max", "variant": "primary" })} </div> </div> <div class="min-w-max flex items-center gap-x-3"> <!-- <button
data-switch-lang
class="outline-none flex items-center justify-center relative text-heading-2 rounded-full px-3 py-1.5 border border-box-border text-xs font-semibold">
<span data-current-lang>EN</span>
<span class="sr-only" data-i18n="a11y.switchLanguage"
>switch language</span
>
</button> --> <button data-switch-theme class="outline-none flex relative text-heading-2 rounded-full p-1.5 lg:p-2 border border-box-border"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 dark:flex hidden"> <path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"></path> </svg> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 dark:hidden"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"></path> </svg> <span class="sr-only" data-i18n="a11y.switchTheme">switch theme</span> </button> <button data-toggle-nav data-open-nav="false" class="lg:hidden lg:invisible outline-none w-10 h-10 flex flex-col items-center justify-center relative rounded-xl border border-box-border bg-body/95 dark:bg-box-bg/95 backdrop-blur-xl shadow-sm shadow-box-shadow/50"> <span id="line1" class="w-5 h-0.5 rounded-full bg-heading-2 transition-all duration-300 ease-linear"></span> <span id="line2" class="w-5 origin-center mt-1 h-0.5 rounded-full bg-heading-2 transition-all duration-300 ease-linear"></span> <span id="line3" class="w-5 mt-1 h-0.5 rounded-full bg-heading-2 transition-all duration-300 ease-linear"></span> <span class="sr-only" data-i18n="a11y.toggleNav">toggle navigation</span> </button> </div> </nav> ` })} </header>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/components/elements/Navbar.astro", void 0);
const $$Astro = createAstro();
const $$Layout = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
Astro2.self = $$Layout;
const {
title,
description = "Reza Kurnia Setiawan adalah Mobile & Fullstack Developer yang membangun aplikasi Flutter, Laravel, dan CodeIgniter untuk bisnis dan edukasi."
} = Astro2.props;
const pageTitle = `${title} | Reza Kurnia Setiawan`;
const pageUrl = Astro2.url.href;
const ogImage = new URL("/images/rezakurnia.png", Astro2.url).href;
return renderTemplate`<html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta name="generator"${addAttribute(Astro2.generator, "content")}><meta name="description"${addAttribute(description, "content")}><meta name="robots" content="index, follow"><meta name="author" content="Reza Kurnia Setiawan"><link rel="canonical"${addAttribute(pageUrl, "href")}><meta property="og:type" content="website"><meta property="og:locale" content="id_ID"><meta property="og:title"${addAttribute(pageTitle, "content")}><meta property="og:description"${addAttribute(description, "content")}><meta property="og:url"${addAttribute(pageUrl, "content")}><meta property="og:image"${addAttribute(ogImage, "content")}><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title"${addAttribute(pageTitle, "content")}><meta name="twitter:description"${addAttribute(description, "content")}><meta name="twitter:image"${addAttribute(ogImage, "content")}><title>${pageTitle}</title><link href="https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap" rel="stylesheet">${renderHead()}</head> <body class="overflow-hidden overflow-y-auto bg-body"> ${renderComponent($$result, "Navbar", $$Navbar, {})} ${renderSlot($$result, $$slots["default"])} ${renderComponent($$result, "Footer", $$Footer, {})} ${renderScript($$result, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/layouts/Layout.astro?astro&type=script&index=0&lang.ts")} ${renderScript($$result, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/layouts/Layout.astro?astro&type=script&index=1&lang.ts")} ${renderScript($$result, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/layouts/Layout.astro?astro&type=script&index=2&lang.ts")} </body> </html>`;
}, "/home2/rezakur1/public_html/portfolio/portfolio-rezakurnia/src/layouts/Layout.astro", void 0);
const BASE_URL = "https://api.rezakurnia.com";
async function apiGet(endpoint) {
try {
const res = await fetch(`${BASE_URL}${endpoint}`, {
method: "GET",
headers: {
"Content-Type": "application/json"
}
});
if (!res.ok) {
throw new Error(`API Error: ${res.status}`);
}
return await res.json();
} catch (error) {
console.error("API GET ERROR:", error);
throw error;
}
}
const ENDPOINTS = {
PORTFOLIOS: "/api/portfolios",
ARTICLES: "/api/articles"
};
export { $$Container as $, ENDPOINTS as E, $$Layout as a, $$Paragraph as b, apiGet as c };