Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 0 additions & 120 deletions apps/web/content/docs/README.md

This file was deleted.

6 changes: 2 additions & 4 deletions apps/web/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ Cheers,
Team Hyprnote

<img
className="block dark:hidden max-w-32 border-none!"
className="block dark:hidden max-w-32 border-none"
src="https://ijoptyyjrfqwaqhyxkxj.supabase.co/storage/v1/object/public/public_images/hyprnote/signature-dark.svg"
alt="Hyprnote Signature"
title="Hyprnote Signature"
style={{ width: "22%" }}
/>

<img
className="hidden dark:block max-w-32 border-none!"
className="hidden dark:block max-w-32 border-none"
src="https://ijoptyyjrfqwaqhyxkxj.supabase.co/storage/v1/object/public/public_images/hyprnote/signature-light.svg"
alt="Hyprnote Signature"
title="Hyprnote Signature"
style={{ width: "22%" }}
/>
46 changes: 18 additions & 28 deletions apps/web/src/routes/_view/blog/$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ function Component() {
style={{ backgroundImage: "url(/patterns/dots.svg)" }}
>
<div className="min-h-screen max-w-6xl mx-auto border-x border-neutral-100 bg-white">
<MobileHeader />

<div className="flex gap-6">
<TableOfContents toc={article.toc} />

<main className="flex-1 min-w-0 pb-6 lg:py-6">
<main className="flex-1 min-w-0 pb-6 px-4 lg:px-0 lg:py-6">
<CoverImage
article={article}
hasCoverImage={hasCoverImage}
Expand All @@ -106,22 +104,6 @@ function Component() {
);
}

function MobileHeader() {
return (
<div className="lg:hidden border-b border-neutral-100 bg-white/80 backdrop-blur-sm sticky top-0 z-10">
<div className="px-4 py-4">
<Link
to="/blog"
className="inline-flex items-center gap-2 text-sm text-neutral-600 hover:text-stone-600 transition-colors"
>
<span>←</span>
<span>Back to blog</span>
</Link>
</div>
</div>
);
}

interface TocItem {
id: string;
text: string;
Expand Down Expand Up @@ -216,7 +198,7 @@ function TableOfContents({
<div className="sticky top-[69px] max-h-[calc(100vh-69px)] overflow-y-auto px-2 pt-6 pb-18 scrollbar-hide">
<Link
to="/blog"
className="mx-2 inline-flex items-center gap-2 text-sm text-neutral-600 hover:text-stone-600 transition-colors mb-8 font-serif"
className="mx-2 inline-flex items-center gap-2 text-sm text-neutral-600 hover:text-stone-600 transition-colors mb-4 font-serif"
>
<Icon icon="mdi:arrow-left" className="text-base" />
<span>Back to blog</span>
Expand All @@ -237,7 +219,7 @@ function TableOfContents({
function ArticleHeader({ article }: { article: any }) {
return (
<header className="mb-8 lg:mb-12">
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-serif text-stone-600 mb-4">
<h1 className="text-2xl sm:text-3xl lg:text-4xl font-serif text-stone-600 mb-4">
{article.title}
</h1>
<p className="text-lg lg:text-xl text-neutral-600 leading-relaxed mb-6">
Expand Down Expand Up @@ -290,7 +272,7 @@ function CoverImage({
}

return (
<div className="mb-8 lg:mb-12 -mx-4 sm:mx-0">
<div className="mb-8 lg:mb-12 -mx-4 sm:mx-0 pt-6 lg:pt-0">
<Image
src={article.coverImage}
alt={article.title}
Expand All @@ -310,7 +292,7 @@ function CoverImage({

function ArticleContent({ article }: { article: any }) {
return (
<article className="prose prose-stone prose-headings:font-serif prose-headings:font-semibold prose-h1:text-4xl prose-h1:mt-12 prose-h1:mb-6 prose-h2:text-3xl prose-h2:mt-10 prose-h2:mb-5 prose-h3:text-2xl prose-h3:mt-8 prose-h3:mb-4 prose-h4:text-xl prose-h4:mt-6 prose-h4:mb-3 prose-a:text-stone-600 prose-a:underline prose-a:decoration-dotted hover:prose-a:text-stone-800 prose-code:bg-stone-50 prose-code:border prose-code:border-neutral-200 prose-code:rounded prose-code:px-1.5 prose-code:py-0.5 prose-code:text-sm prose-code:font-mono prose-code:text-stone-700 prose-pre:bg-stone-50 prose-pre:border prose-pre:border-neutral-200 prose-pre:rounded-sm prose-img:rounded-sm prose-img:border prose-img:border-neutral-200 prose-img:my-8 max-w-none">
<article className="prose prose-stone prose-headings:font-serif prose-headings:font-semibold prose-h1:text-3xl prose-h1:mt-12 prose-h1:mb-6 prose-h2:text-2xl prose-h2:mt-10 prose-h2:mb-5 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-h4:text-lg prose-h4:mt-6 prose-h4:mb-3 prose-a:text-stone-600 prose-a:underline prose-a:decoration-dotted hover:prose-a:text-stone-800 prose-code:bg-stone-50 prose-code:border prose-code:border-neutral-200 prose-code:rounded prose-code:px-1.5 prose-code:py-0.5 prose-code:text-sm prose-code:font-mono prose-code:text-stone-700 prose-pre:bg-stone-50 prose-pre:border prose-pre:border-neutral-200 prose-pre:rounded-sm prose-img:rounded-sm prose-img:border prose-img:border-neutral-200 prose-img:my-8 max-w-none">
<MDXContent
code={article.mdx}
components={{
Expand Down Expand Up @@ -359,12 +341,20 @@ function ArticleFooter() {
function RightSidebar({ relatedArticles }: { relatedArticles: any[] }) {
return (
<aside className="hidden sm:block w-80 shrink-0">
<div className="sticky top-[65px] space-y-4 px-4 py-6">
<div className="sticky top-[69px] space-y-4 px-4 py-6">
{relatedArticles.length > 0 && (
<div>
<h3 className="text-sm font-medium text-neutral-500 uppercase tracking-wider mb-4">
More articles
</h3>
<div className="flex items-center justify-between mb-4">
<h3 className="text-sm font-medium text-neutral-500 uppercase tracking-wider">
Recent articles
</h3>
<Link
to="/blog"
className="text-sm text-neutral-600 hover:text-stone-600 transition-colors"
>
See more
</Link>
</div>
<div className="space-y-4">
{relatedArticles.map((related) => (
<RelatedArticleCard key={related.slug} article={related} />
Expand All @@ -373,7 +363,7 @@ function RightSidebar({ relatedArticles }: { relatedArticles: any[] }) {
</div>
)}

<div className="border border-neutral-200 rounded-sm overflow-hidden bg-white p-4">
<div className="border border-neutral-200 rounded-sm overflow-hidden bg-white bg-[linear-gradient(to_right,#f5f5f5_1px,transparent_1px),linear-gradient(to_bottom,#f5f5f5_1px,transparent_1px)] bg-size-[24px_24px] bg-position-[12px_12px,12px_12px] p-4">
<h3 className="font-serif text-base text-stone-600 mb-4">
Learn more about Hyprnote directly from the founders
</h3>
Expand Down
32 changes: 4 additions & 28 deletions apps/web/src/routes/_view/docs/-components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MDXContent } from "@content-collections/mdx/react";
import { Icon } from "@iconify-icon/react";
import { Link } from "@tanstack/react-router";
import { allDocs } from "content-collections";

Expand All @@ -26,15 +25,13 @@ export function DocLayout({
}) {
return (
<>
<main className="lg:col-span-6 xl:col-span-6 px-4 py-6">
<main className="flex-1 min-w-0 px-4 py-6">
<ArticleHeader doc={doc} showSectionTitle={showSectionTitle} />
<ArticleContent doc={doc} />
<ArticleFooter />
</main>

<RightSidebar toc={doc.toc} />

<MobileCTA />
</>
);
}
Expand All @@ -61,7 +58,7 @@ function ArticleHeader({
<span>{sectionTitle}</span>
</div>
)}
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-serif text-stone-600 mb-4">
<h1 className="text-3xl sm:text-4xl font-serif text-stone-600 mb-4">
{doc.title}
</h1>
{doc.summary && (
Expand Down Expand Up @@ -104,7 +101,7 @@ function ArticleHeader({

function ArticleContent({ doc }: { doc: any }) {
return (
<article className="prose prose-stone prose-headings:font-serif prose-headings:font-semibold prose-h1:text-4xl prose-h1:mt-12 prose-h1:mb-6 prose-h2:text-3xl prose-h2:mt-10 prose-h2:mb-5 prose-h3:text-2xl prose-h3:mt-8 prose-h3:mb-4 prose-h4:text-xl prose-h4:mt-6 prose-h4:mb-3 prose-a:text-stone-600 prose-a:underline prose-a:decoration-dotted hover:prose-a:text-stone-800 prose-code:bg-stone-50 prose-code:border prose-code:border-neutral-200 prose-code:rounded prose-code:px-1.5 prose-code:py-0.5 prose-code:text-sm prose-code:font-mono prose-code:text-stone-700 prose-pre:bg-stone-50 prose-pre:border prose-pre:border-neutral-200 prose-pre:rounded-sm prose-img:rounded-sm prose-img:my-8 max-w-none">
<article className="prose prose-stone prose-headings:font-serif prose-headings:font-semibold prose-h1:text-3xl prose-h1:mt-12 prose-h1:mb-6 prose-h2:text-2xl prose-h2:mt-10 prose-h2:mb-5 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-h4:text-lg prose-h4:mt-6 prose-h4:mb-3 prose-a:text-stone-600 prose-a:underline prose-a:decoration-dotted hover:prose-a:text-stone-800 prose-code:bg-stone-50 prose-code:border prose-code:border-neutral-200 prose-code:rounded prose-code:px-1.5 prose-code:py-0.5 prose-code:text-sm prose-code:font-mono prose-code:text-stone-700 prose-pre:bg-stone-50 prose-pre:border prose-pre:border-neutral-200 prose-pre:rounded-sm prose-img:rounded-sm prose-img:my-8 max-w-none">
<MDXContent
code={doc.mdx}
components={{
Expand Down Expand Up @@ -195,7 +192,7 @@ function RightSidebar({
toc: Array<{ id: string; text: string; level: number }>;
}) {
return (
<aside className="hidden lg:block lg:col-span-3">
<aside className="hidden lg:block w-64 shrink-0">
<div className="sticky top-[69px] max-h-[calc(100vh-69px)] overflow-y-auto space-y-6 px-4 py-6">
{toc.length > 0 && (
<nav className="space-y-1">
Expand Down Expand Up @@ -242,24 +239,3 @@ function RightSidebar({
</aside>
);
}

function MobileCTA() {
return (
<div className="lg:hidden fixed bottom-0 left-0 right-0 border-t border-neutral-200 bg-white/95 backdrop-blur-sm p-4 z-20">
<a
href="/founders"
target="_blank"
rel="noopener noreferrer"
className={cn([
"group px-4 h-12 flex items-center justify-center text-base w-full",
"bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full",
"hover:scale-[102%] active:scale-[98%]",
"transition-all",
])}
>
Book a call with us
<Icon icon="mdi:calendar" className="ml-2 text-xl" />
</a>
</div>
);
}
4 changes: 2 additions & 2 deletions apps/web/src/routes/_view/docs/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Component() {
return (
<div className="bg-linear-to-b from-white via-stone-50/20 to-white min-h-[calc(100vh-4rem)]">
<div className="max-w-6xl mx-auto border-x border-neutral-100">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8">
<div className="flex gap-8">
<LeftSidebar />
<Outlet />
</div>
Expand Down Expand Up @@ -77,7 +77,7 @@ function LeftSidebar() {
}, []);

return (
<aside className="hidden lg:block lg:col-span-3">
<aside className="hidden md:block w-64 flex-shrink-0">
<div className="sticky top-[69px] max-h-[calc(100vh-69px)] overflow-y-auto space-y-6 px-4 py-6">
<nav className="space-y-4">
{docsBySection.map((section) => (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/_view/product/bot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function DraggableIcon({
onPointerMove={handlePointerMove}
onPointerUp={handlePointerUp}
>
<div className="w-full h-full shadow-2xl border border-neutral-100 flex justify-center items-center rounded-[24px] bg-transparent">
<div className="w-full h-full shadow-2xl border border-neutral-100 flex justify-center items-center rounded-3xl bg-transparent">
<img
src="https://ijoptyyjrfqwaqhyxkxj.supabase.co/storage/v1/object/public/public_images/hyprnote/icon.png"
alt="Hyprnote"
Expand Down
Loading