New
Sketchbook PortfolioPortfolios
A portfolio that starts as one prompt: ask a question and the page streams in token by token like an AI reply, then assembles into headings, cards and pictures that denoise into view.
import type { Metadata } from "next"
import "./writes-itself.css"
/**
* A portfolio that starts as one prompt: ask a question and the page streams in token by token like an AI reply, then assembles into headings, cards and pictures that denoise into view.
*
* The site is a built, self-contained document in `public/writes-itself/`, and this
* route frames it the same way Developer Room is framed. It runs its own render loop,
* scrolling and pointer handling against its own document, so it is kept out of React.
* Assets load by relative path, so the folder works wherever it is served from.
*/
export const metadata: Metadata = {
title: "Writes Itself",
description: "A portfolio that starts as one prompt: ask a question and the page streams in token by token like an AI reply, then assembles into headings, cards and pictures that denoise into view.",
}
export default function WritesItselfPage() {
return (
<div className="writes-itself-shell">
<iframe
className="writes-itself-frame"
src="/writes-itself/index.html"
title="Writes Itself"
allow="autoplay; fullscreen; clipboard-write"
/>
</div>
)
}/*
* The shell Writes Itself is framed in. Fixed to the viewport so a host layout's header,
* padding or max-width cannot inset it, and scoped so nothing leaks into the app.
*/
.writes-itself-shell {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
background: #f1f1ec;
color-scheme: light;
}
.writes-itself-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: #f1f1ec;
}# Third-party licences: Writes Itself
The built bundle in `assets/` includes:
- GSAP (GreenSock Standard "no charge" licence)
Fonts (Geist and Geist Mono) load from Google Fonts under the SIL Open Font License.
All illustrations and photographs were generated for this template and ship under the same MIT licence as the rest of the library.<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="8" fill="#121212"/><path d="M8 11 L13 16 L8 21" stroke="#D7FF3A" stroke-width="2.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/><rect x="15" y="19" width="9" height="2.6" rx="1.3" fill="#fff"/></svg><!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Shreyash Mishra's portfolio writes itself: ask a question and the page streams in like an AI response." />
<meta name="theme-color" content="#F1F1EC" />
<title>shreyash.ai — ask, and it writes itself</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet" />
<script type="module" crossorigin src="./assets/index-Ca22vDXp.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BC9UUazg.css">
</head>
<body>
<div id="app"></div>
</body>
</html>