continue re-design

This commit is contained in:
Developers Digest
2025-09-05 13:06:17 -04:00
parent b96d048dbd
commit 836b085f75
270 changed files with 32269 additions and 5182 deletions
@@ -0,0 +1,62 @@
"use client";
import { HTMLAttributes, useEffect, useRef } from "react";
import data from "@/components/app/(home)/sections/hero-flame/data.json";
import { cn } from "@/utils/cn";
import { setIntervalOnVisible } from "@/utils/set-timeout-on-visible";
export default function StoriesFlame(attrs: HTMLAttributes<HTMLDivElement>) {
const ref = useRef<HTMLDivElement>(null);
const wrapperRef = useRef<HTMLDivElement>(null);
useEffect(() => {
let index = 0;
const interval = setIntervalOnVisible({
element: wrapperRef.current,
callback: () => {
index++;
if (index >= data.length) index = 0;
const newStr = data[index];
if (!ref.current) return;
ref.current!.innerHTML = newStr;
},
interval: 60,
});
return () => interval?.();
}, []);
return (
<div
className="absolute right-10 bottom-10 w-194 h-165"
style={{
maskImage: "url('/assets-original/replit-mask.png')",
maskSize: "100% 100%",
}}
>
<div
ref={wrapperRef}
{...attrs}
className={cn(
"w-308 h-380 -top-20 -left-40 absolute pointer-events-none select-none",
attrs.className,
)}
>
<div
className="text-black-alpha-20 relative top-0 left-0 font-ascii fc-decoration"
ref={ref}
style={{
whiteSpace: "pre",
fontSize: 8,
lineHeight: "10px",
}}
/>
</div>
</div>
);
}
@@ -0,0 +1,31 @@
import ArrowUp from "./_svg/ArrowUp";
import Replit from "./_svg/Replit";
import StoriesFlame from "./Flame/Flame";
export default function HeaderDropdownStories() {
return (
<a
className="pt-32 pr-32 pl-44 pb-48 group block border-b border-border-faint relative overflow-clip"
href="/blog/how-replit-uses-firecrawl-to-power-ai-agents"
>
<div className="flex mb-40 justify-between items-center">
<div className="py-4 px-8 text-heat-100 text-[12px]/[16px] font-[450] bg-heat-8 rounded-6">
Customer story
</div>
<div className="p-2 text-black-alpha-56 group-hover:text-heat-100 transition-all group-hover:translate-x-1 group-hover:translate-y-[-1px]">
<ArrowUp />
</div>
</div>
<Replit />
<div className="text-title-h5 mt-31 pr-32">
How Replit uses <span className="text-heat-100">Firecrawl</span> to
power Replit Agent
</div>
<StoriesFlame />
</a>
);
}
@@ -0,0 +1,19 @@
export default function ArrowUp() {
return (
<svg
fill="none"
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M17.2083 14.7082V6.7915M17.2083 6.7915H9.29167M17.2083 6.7915L7 16.9998"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.25"
/>
</svg>
);
}
@@ -0,0 +1,24 @@
export default function Replit() {
return (
<svg
fill="none"
height="32"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.54 10.8196H5.27864C4.26819 10.8196 3.4668 10.0148 3.4668 9.03879V3.11427C3.4668 2.12115 4.28561 1.3335 5.27864 1.3335H13.7281C14.7386 1.3335 15.54 2.13827 15.54 3.11427V10.8196Z"
fill="#262626"
/>
<path
d="M26.5452 21.1531H15.5508V10.8047H26.5452C27.6091 10.8047 28.4864 11.6811 28.4864 12.7439V19.214C28.4864 20.2955 27.6091 21.1531 26.5452 21.1531Z"
fill="#262626"
/>
<path
d="M13.7281 30.6668H5.27864C4.28561 30.6668 3.4668 29.8635 3.4668 28.8892V22.9583C3.4668 21.9841 4.28561 21.1807 5.27864 21.1807H15.54V28.8892C15.54 29.8635 14.7212 30.6668 13.7281 30.6668Z"
fill="#262626"
/>
</svg>
);
}