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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/guides/step-file-to-2d-drawing-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://cadviewer.xyz/</loc>
<lastmod>2026-08-21</lastmod>
<lastmod>2026-08-22</lastmod>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://cadviewer.xyz/viewer</loc>
<lastmod>2026-08-21</lastmod>
<lastmod>2026-08-22</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://cadviewer.xyz/guides/split-step-assembly</loc>
<lastmod>2026-08-21</lastmod>
<lastmod>2026-08-22</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://cadviewer.xyz/guides/step-file-to-2d-drawing</loc>
<lastmod>2026-08-22</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
Expand Down
5 changes: 5 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ClientOnly, Head, ViteReactSSG } from "vite-react-ssg";
import type { RouteRecord } from "vite-react-ssg";
import Landing from "./pages/Landing";
import SplitStepAssembly from "./pages/guides/SplitStepAssembly";
import StepFileTo2dDrawing from "./pages/guides/StepFileTo2dDrawing";

const App = lazy(() => import("./ui/App"));

Expand Down Expand Up @@ -50,6 +51,10 @@ function NotFound() {
export const routes: RouteRecord[] = [
{ path: "/", element: <Landing /> },
{ path: "/guides/split-step-assembly", Component: SplitStepAssembly },
{
path: "/guides/step-file-to-2d-drawing",
Component: StepFileTo2dDrawing,
},
{
path: "/viewer",
element: (
Expand Down
7 changes: 7 additions & 0 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ export default function Landing() {
Need to split an assembly into parts? Read the guide →
</a>

<a
className={styles.guideLink}
href="/guides/step-file-to-2d-drawing"
>
Need a 2D drawing from a STEP file? Read the guide →
</a>

<p className={styles.supported}>
Supported: STEP · IGES · STL · OBJ · 3MF · BREP · GLB · DXF
</p>
Expand Down
289 changes: 289 additions & 0 deletions src/pages/guides/StepFileTo2dDrawing.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@
:global(body.guide-page) {
overflow-y: auto;
height: auto;
min-height: 100vh;
}

:global(body.guide-page #root) {
height: auto;
min-height: 100vh;
}

.page {
min-height: 100vh;
background: #fafafa;
color: #1a1a1a;
display: flex;
justify-content: center;
padding: 4rem 1.5rem 6rem;
}

.article {
width: min(720px, 100%);
display: flex;
flex-direction: column;
gap: clamp(3rem, 5vw, 4rem);
}

.section {
display: flex;
flex-direction: column;
gap: 1.25rem;
}

.breadcrumb {
display: inline-flex;
align-self: flex-start;
color: #4b5563;
font-size: 0.9rem;
text-decoration: none;
}

.breadcrumb:hover {
color: #3b82f6;
}

.eyebrow {
margin: 0;
color: #6b7280;
font-family:
"SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
font-size: 0.75rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}

.headline {
margin: 0.5rem 0 0;
color: #1a1a1a;
font-size: 2.25rem;
line-height: 1.2;
font-weight: 700;
}

.intro {
margin: 0;
color: #4b5563;
font-size: 1.1rem;
line-height: 1.7;
}

.lede {
margin: 0;
color: #1f2937;
font-size: 1.1rem;
line-height: 1.7;
}

.sectionHeading {
margin: 0;
color: #1a1a1a;
font-size: 1.5rem;
font-weight: 700;
}

.paragraph {
margin: 0;
color: #4b5563;
font-size: 1.05rem;
line-height: 1.7;
}

.list {
margin: 0;
padding-left: 1.25rem;
color: #4b5563;
font-size: 1.05rem;
line-height: 1.7;
display: flex;
flex-direction: column;
gap: 0.65rem;
}

.externalLink {
color: #2563eb;
text-decoration: underline;
text-underline-offset: 2px;
}

.externalLink:hover {
color: #1d4ed8;
}

/* Numbered step cards */
.stepList {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.85rem;
}

.stepCard {
display: flex;
align-items: flex-start;
gap: 1.1rem;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 1.25rem 1.5rem;
}

.stepNumber {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 999px;
background: #eff6ff;
color: #3b82f6;
font-size: 1.15rem;
font-weight: 700;
}

.stepBody {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.stepTitle {
margin: 0;
color: #1a1a1a;
font-size: 1.05rem;
font-weight: 700;
}

.stepDescription {
margin: 0;
color: #4b5563;
font-size: 1rem;
line-height: 1.6;
}

.stepImageWrap {
margin: 0.5rem 0;
}

/* Embedded video */
.videoWrap {
position: relative;
width: 100%;
padding-top: 56.25%;
margin: 0.5rem 0;
border-radius: 8px;
overflow: hidden;
background: #000;
}

.videoWrap iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: none;
}

/* FAQ accordion */
.faqGrid {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.faqItem {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 0.35rem 1.5rem;
}

.faqItem[open] {
padding-bottom: 1.25rem;
}

.faqQuestion {
margin: 0;
padding: 1rem 0;
color: #1a1a1a;
font-size: 1.05rem;
font-weight: 600;
cursor: pointer;
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.faqQuestion::-webkit-details-marker {
display: none;
}

.faqQuestion::after {
content: "+";
flex: none;
color: #3b82f6;
font-size: 1.3rem;
font-weight: 400;
transition: transform 0.15s ease;
}

.faqItem[open] .faqQuestion::after {
transform: rotate(45deg);
}

.faqAnswer {
margin: 0.25rem 0 0;
color: #4b5563;
font-size: 1rem;
line-height: 1.65;
}

.ctaRow {
margin-top: 0.25rem;
}

.cta {
display: inline-block;
background: #3b82f6;
color: #ffffff;
border: none;
border-radius: 8px;
padding: 0.85rem 2.25rem;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.45);
transition:
background 0.15s ease,
transform 0.15s ease;
}

.cta:hover {
background: #2563eb;
transform: translateY(-1px);
}

@media (max-width: 768px) {
.page {
padding: 2.5rem 1.25rem 4rem;
}

.article {
gap: clamp(2.25rem, 8vw, 3rem);
}

.headline {
font-size: 1.75rem;
}

.stepCard {
flex-direction: column;
gap: 0.6rem;
}
}
Loading
Loading