diff --git a/src/app/components/Background.tsx b/src/app/components/Background.tsx index 7cb2f7e..d143acd 100644 --- a/src/app/components/Background.tsx +++ b/src/app/components/Background.tsx @@ -1,12 +1,18 @@ -const IFRAME_SRC = 'https://shubidumdu.github.io/sketchbook/pages/ocean/'; +type BackgroundType = 'ocean' | 'cloud' | 'bunny' | 'pollock'; -const Background = () => { +const IFRAME_BASE_URL = 'https://shubidumdu.github.io/sketchbook/pages/'; + +type BackgroundProps = { + type?: BackgroundType; +}; + +const Background = ({ type = 'ocean' }: BackgroundProps) => { return ( ); }; diff --git a/src/app/components/Comment.tsx b/src/app/components/Comment.tsx index 21ece10..aaba1cc 100644 --- a/src/app/components/Comment.tsx +++ b/src/app/components/Comment.tsx @@ -39,7 +39,7 @@ const Comment = () => { return (
); diff --git a/src/app/components/Post.tsx b/src/app/components/Post.tsx index a5aa857..af92964 100644 --- a/src/app/components/Post.tsx +++ b/src/app/components/Post.tsx @@ -52,7 +52,7 @@ const Post = ({ post, base }: PostProps) => { if (!parsedMarkDown) return null; return ( -