All MicroEvals
A teljes kódokat kijavítva vissza küldöd. minden egyes karak...
Create MicroEval
Header image for A teljes kódokat kijavítva vissza küldöd. minden egyes karak...

A teljes kódokat kijavítva vissza küldöd. minden egyes karak...

Prompt

A teljes kódokat kijavítva vissza küldöd. minden egyes karaktert leírsz, nem rövidítesz. minden hibát kijavítasz.m. ne írj semmi mást csak a teljes kódokat es kommentek nem lehetnek benne! soha semmi egyszerusitett mock placeholder dummy szimulalt fake szart nem engedelyezek es teljes fájl roviditetlen production ready kód nem lehet trancutted nem lehet olyan hogy …és hasonlóan 50 xy nem lehet dummy to do sorry hiányosság minden fájl teljes kódját egyesével kódmezőbe írod semmi mást nem írsz ezen kívűl import { type MetaFunction, Links, Meta, Outlet, Scripts, ScrollRestoration, } from "react-router"; import Favicons from "virtual:favicons"; import { PageLayout } from "./components/PageLayout"; import { GlobalInitialRenderContext } from "./contexts/GlobalInitialRenderContext"; import "./global.css"; import { useIsInitialRender } from "./hooks/useIsInitialRender"; import * as styles from "./root.css"; import { createMetaTags } from "./utils/meta"; export const meta: MetaFunction = () => { return createMetaTags({ title: "KUBE — Software & Design", description: "Freelance Software Engineer specializing in frontend development, UI/UX design, and web technologies. Building modern, user-centered digital experiences.", url: "https://kube.io", }); }; export function HydrateFallback() { return <div>Loading...</div>; } export function ErrorBoundary() { return <h1>Something went wrong</h1>; } export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en" className={styles.root}> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f0f0ef" /> <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#101013" /> <link rel="preconnect" href="https://rsms.me/" /> <link rel="stylesheet" href="https://rsms.me/inter/inter.css" /> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="alternate" type="application/rss+xml" title="kube.io — Blog" href="/rss.xml" /> <link rel="alternate" type="application/atom+xml" title="kube.io — Blog (Atom)" href="/atom.xml" /> <link rel="alternate" type="application/feed+json" title="kube.io — Blog (JSON Feed)" href="/feed.json" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" /> <link href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet" /> {import.meta.env.PROD && ( <> <script defer data-domain="kube.io" src="https://plausible.io/js/script.outbound-links.tagged-events.js" /> <script children="window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }" /> </> )} <Favicons /> <Meta /> <Links /> </head> <body className="bg-top-left bg-fixed bg-(image:--kube-background-light) dark:bg-(image:--kube-background-dark) bg-(--palette-light-grey) dark:bg-(--palette-dark-grey)"> <GlobalInitialRenderContext.Provider value={useIsInitialRender()}> <PageLayout>{children}</PageLayout> </GlobalInitialRenderContext.Provider> <ScrollRestoration /> <Scripts /> </body> </html> ); } export default function Root() { return <Outlet />; } @import "tailwindcss"; @theme { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } @utility scroll-progress-provider { animation: header-scroll-progress linear both; animation-timeline: scroll(root block); animation-range: 0px 100000px; } @layer utilities { :root { color-scheme: light dark; font-family: Inter, sans-serif; font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */ } @supports (font-variation-settings: normal) { :root { font-family: InterVariable, sans-serif; } } @property --scroll-progress-root { syntax: "<number>"; inherits: false; initial-value: 0; } @keyframes header-scroll-progress { 0% { --scroll-progress-root: 0; } 100% { --scroll-progress-root: 100000; } } } @keyframes fade-in { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } } ::view-transition-old(content-view) { animation: 50ms ease-out both fade-out; } ::view-transition-new(content-view) { animation: 150ms ease-out both fade-in; } @keyframes slide-title-from-bottom { from { transform: translateY(40px); } } @keyframes slide-title-to-top { to { transform: translateY(-13px); } } ::view-transition-old(.herotitle):only-child, ::view-transition-old(.article-title):only-child { animation: 110ms ease-in-out both fade-out, 160ms cubic-bezier(0.4, 0, 0.2, 1) both slide-title-to-top; } ::view-transition-new(.herotitle):only-child, ::view-transition-new(.article-title):only-child { animation: 400ms ease-in-out 40ms both fade-in, 400ms cubic-bezier(0.02, 0.02, 0.24, 1) 40ms both slide-title-from-bottom; } ::view-transition-old(.herotitle) { height: 100%; } ::view-transition-new(.herotitle) { height: 100%; } ::view-transition-group(header) { z-index: 3; } ::view-transition-group(header-pattern) { z-index: 4; } ::view-transition-group(header-gradient-mask) { z-index: 2; } ::view-transition-group(header-logo) { z-index: 5; } ::view-transition-group(header-nav) { z-index: 5; } ::view-transition-old(header) { height: 100%; } ::view-transition-new(header) { height: 100%; } ::view-transition-old(header-logo) { display: none; box-sizing: border-box; } ::view-transition-new(header-logo) { animation: none; box-sizing: border-box; } ::view-transition-new(header-pattern) { opacity: 1; } :root { --palette-white: #ffffff; --palette-black: #000000; --palette-dark-grey: #131316; --palette-dark-grey-rgb: 19, 19, 22; --palette-medium-grey: #8c8c8b; --palette-light-grey: #ededec; --palette-light-grey-rgb: 237, 237, 236; --palette-purple: #7160b7; --palette-sunburst-grey: #cfcfcc; --palette-moonburst-grey: #a4afb9; --palette-fonts-title: InterVariable, Inter; --palette-fonts-caps: InterVariable, Inter; --palette-fonts-text: InterVariable, Inter; --palette-fonts-code: var(--font-FiraCode); /* TODO: Should use palette from Kay */ --palette-code-background: #14161a; --palette-code-comment: #455074; --palette-code-text: #8499b4; --palette-code-pink: #ff4598; --palette-code-purple: #7e7fff; --palette-code-blue: #3db7ff; --palette-code-cyan: #00fafb; --palette-code-yellow: #ffd900; --palette-light-link-normal: #756b9a; --palette-light-link-hover: #5a85bd; --palette-light-link-active: #5a85bd; --palette-dark-link-normal: #8788c3; --palette-dark-link-hover: #98cce6; --palette-dark-link-active: #98cce6; @media (prefers-color-scheme: light) { --palette-background-color: var(--palette-white); --palette-background-color-light: var(--palette-light-grey); --palette-text-color: var(--palette-black); --palette-text-color-light: var(--palette-dark-grey); } @media (prefers-color-scheme: dark) { --palette-background-color: var(--palette-black); --palette-background-color-light: var(--palette-dark-grey); --palette-text-color: var(--palette-white); --palette-text-color-light: var(--palette-light-grey); } /* Mermaid */ @media (prefers-color-scheme: light) { --palette-mermaid-line-color: #606c72; --palette-mermaid-flowchart-node-border-color: #40464b; --palette-mermaid-flowchart-cluster-background-color: rgba( 255, 247, 175, 0.527 ); --palette-mermaid-flowchart-cluster-border-color: rgba(209, 193, 45, 0.651); --palette-mermaid-flowchart-cluster-label-color: #968e3f; --palette-mermaid-flowchart-edge-label-background-color: rgba( 236, 236, 236, 0.9 ); --palette-mermaid-flowchart-edge-label-color: #7d838a; } @media (prefers-color-scheme: dark) { --palette-mermaid-line-color: #a7b6be; --palette-mermaid-flowchart-node-border-color: #515a61; --palette-mermaid-flowchart-cluster-background-color: rgba( 153, 146, 86, 0.493 ); --palette-mermaid-flowchart-cluster-border-color: rgba(202, 184, 17, 0.651); --palette-mermaid-flowchart-cluster-label-color: #f5efaf; --palette-mermaid-flowchart-edge-label-background-color: rgba( 32, 32, 32, 0.9 ); --palette-mermaid-flowchart-edge-label-color: #bcc9ce; } } html { @media print { font-size: 8.5pt; } @media screen { font-size: 13px; } /* Make Scrollbar not change viewport */ scrollbar-gutter: stable; } body { font-family: var(--palette-fonts-text); a { text-decoration: none; } @media print { margin: 0; background-color: white; color: black; a { color: black; } } @media screen { @media (prefers-color-scheme: light) { /* Should redefine palette here too */ color: var(--palette-dark-grey); a { color: var(--palette-light-link-normal); &:hover { color: var(--palette-light-link-hover); } &:active { color: var(--palette-light-link-active); } } } @media (prefers-color-scheme: dark) { /* Should redefine palette here too */ color: var(--palette-light-grey); a { color: var(--palette-dark-link-normal); &:hover { color: var(--palette-dark-link-hover); } &:active { color: var(--palette-dark-link-active); } } } } } export interface MetaConfig { title: string; description: string; url: string; image?: string; type?: "website" | "article" | "profile"; publishDate?: string; modifiedDate?: string; } export const DEFAULT_META = { siteName: "kube.io", author: "kube", twitterHandle: "@KubeKhrm", locale: "en_US", defaultImage: "https://kube.io/og-image.png", }; export function createMetaTags(config: MetaConfig) { const { title, description, url, image = DEFAULT_META.defaultImage, type = "website", publishDate, modifiedDate, } = config; const tags = [ { title }, { name: "description", content: description }, // Canonical URL { tagName: "link", rel: "canonical", href: url }, // OpenGraph { property: "og:title", content: title }, { property: "og:description", content: description }, { property: "og:url", content: url }, { property: "og:type", content: type }, { property: "og:site_name", content: DEFAULT_META.siteName }, { property: "og:image", content: image }, { property: "og:image:width", content: "1200" }, { property: "og:image:height", content: "630" }, { property: "og:image:alt", content: title }, { property: "og:locale", content: DEFAULT_META.locale }, // Twitter Card { name: "twitter:card", content: "summary_large_image" }, { name: "twitter:site", content: DEFAULT_META.twitterHandle }, { name: "twitter:creator", content: DEFAULT_META.twitterHandle }, { name: "twitter:title", content: title }, { name: "twitter:description", content: description }, { name: "twitter:image", content: image }, { name: "twitter:image:alt", content: title }, // Additional meta { name: "author", content: DEFAULT_META.author }, { name: "robots", content: "index, follow" }, { name: "language", content: "en" }, ]; // Add article-specific meta if (type === "article" && publishDate) { tags.push( { property: "article:published_time", content: publishDate }, { property: "article:author", content: `https://${DEFAULT_META.siteName}`, }, { property: "article:section", content: "Technology" }, { property: "article:tag", content: "Web Development" }, ); if (modifiedDate) { tags.push({ property: "article:modified_time", content: modifiedDate }); } } return tags; } export function createBlogPostMeta(post: { title: string; description: string; slug: string; date: string; image?: string; }) { const url = `https://${DEFAULT_META.siteName}/blog/${post.slug}`; const publishDate = new Date(post.date).toISOString(); const title = `${post.title} — ${DEFAULT_META.siteName}`; // Generate OG image URL for blog posts const ogImageUrl = `https://${DEFAULT_META.siteName}/blog/${post.slug}/og-image.png`; return createMetaTags({ title, description: post.description, url, image: post.image || ogImageUrl, type: "article", publishDate, modifiedDate: publishDate, }); } export function createStructuredData(post: { title: string; description: string; slug: string; date: string; image?: string; }) { // Generate OG image URL for blog posts const ogImageUrl = `https://${DEFAULT_META.siteName}/blog/${post.slug}/og-image.png`; return { "@context": "https://schema.org", "@type": "BlogPosting", headline: post.title, description: post.description, image: post.image || ogImageUrl, author: { "@type": "Person", name: DEFAULT_META.author, url: `https://${DEFAULT_META.siteName}`, }, publisher: { "@type": "Organization", name: DEFAULT_META.siteName, logo: { "@type": "ImageObject", url: `https://${DEFAULT_META.siteName}/logo.png`, }, }, datePublished: post.date, dateModified: post.date, mainEntityOfPage: { "@type": "WebPage", "@id": `https://${DEFAULT_META.siteName}/blog/${post.slug}`, }, }; }

A system prompt was added to support web rendering