Skip to content

Commit

Permalink
docs: Raymarching blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeHeckel committed Sep 10, 2023
1 parent 6e98fbe commit ef57107
Show file tree
Hide file tree
Showing 28 changed files with 3,989 additions and 18 deletions.
4 changes: 1 addition & 3 deletions content/cubic-bezier-from-math-to-motion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,7 @@ I hope this blog post satisfied your curiosity and helped you learn some of the

Quick shoutout to **3 awesome people who helped me directly or indirectly to produce this piece** by sharing their own creations around this subject:

- [@pixelbeat](https://twitter.com/pixelbeat/) who created an awesome Framer prototype to visualize easing curves:

<StaticTweet id="1450570908838645763" />
- [@pixelbeat](https://twitter.com/pixelbeat/) who created an awesome Framer prototype to visualize easing curves

- [@nansdotio](https://twitter.com/nansdotio) who built a super slick [CSS transition visualizer](https://css-transitions-sandbox-narendras.vercel.app/)

Expand Down
945 changes: 945 additions & 0 deletions content/painting-with-math-a-gentle-study-of-raymarching.mdx

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions core/components/Code/Sandpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ const SandpackWrapper = styled(Box, {
display: 'block',
},
'@media (max-width: 1200px)': {
/**
* Make it fullbleed!
*/
width: '100vw',
left: '50%',
right: '50%',
Expand Down Expand Up @@ -159,9 +156,9 @@ const Sandpack = (props: SandpackProps) => {
justifyContent="space-between"
css={{
height: defaultEditorOptions.editorHeight,
width: '50%',
gap: 0,
'@media (max-width: 770px)': {
width: '50%',
'@media (max-width: 880px)': {
width: '100%',
},
}}
Expand Down Expand Up @@ -193,7 +190,6 @@ const Sandpack = (props: SandpackProps) => {
{...defaultEditorOptions}
showRunButton={false}
style={{
width: '50%',
borderLeft: '1px solid var(--maximeheckel-border-color)',
height: defaultEditorOptions.editorHeight,
}}
Expand Down
10 changes: 10 additions & 0 deletions core/components/MDX/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ const DemoSearch = dynamic(() => import('./Widgets/SemanticSearch/DemoSearch'));

const DemoButton = dynamic(() => import('./Widgets/SemanticSearch/DemoButton'));

const RaymarchingVisualizer = dynamic(
() => import('./Widgets/Raymarching/RaymarchingVisualizer')
);

const RefractionDispersionSandpack = dynamic(
() => import('./Widgets/RefractionDispersionReactThreeFiber/Sandpack')
);
Expand All @@ -207,6 +211,10 @@ const AdvancedFramerMotionSandpack = dynamic(
() => import('./Widgets/AdvancedFramerMotion/Sandpack')
);

const RaymarchingSandpack = dynamic(
() => import('./Widgets/Raymarching/Sandpack')
);

const customComponents = {
AnimationTypes,
ClipboardAnimationDetails,
Expand Down Expand Up @@ -248,6 +256,7 @@ const customComponents = {
Formatting,
DemoSearch,
DemoButton,
RaymarchingVisualizer,
// Sandpacks
CSSCompositionSandpack,
ScrollSpySandpack,
Expand All @@ -262,6 +271,7 @@ const customComponents = {
ParticlesShaderSandpack,
RefractionDispersionSandpack,
RenderTargetsSandpack,
RaymarchingSandpack,
};

const MDXComponents = {
Expand Down
3 changes: 2 additions & 1 deletion core/components/MDX/Widgets/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const HighlightedValue = styled('div', {
padding: '2px 6px',
fontFamily: 'var(--font-numeric)',
fontSize: 'var(--font-size-2)',
display: 'inline-block',
display: 'inline-flex',
justifyContent: 'center',
lineHeight: '1rem',
});

Expand Down
Loading

0 comments on commit ef57107

Please sign in to comment.