diff --git a/client/pages/post/[id].tsx b/client/pages/post/[id].tsx index fba808da..b5bce189 100644 --- a/client/pages/post/[id].tsx +++ b/client/pages/post/[id].tsx @@ -8,6 +8,8 @@ import Header from "../../components/header"; import VisibilityBadge from "../../components/visibility-badge"; import { ThemeProps } from "../_app"; import PageSeo from "components/page-seo"; +import Head from "next/head"; +import styles from './styles.module.css'; const Post = ({ theme, changeTheme }: ThemeProps) => { const [post, setPost] = useState() @@ -83,10 +85,10 @@ const Post = ({ theme, changeTheme }: ThemeProps) => { } {!isLoading && post && <> -
+
{post.title}
{post.files.map(({ id, content, title }: { id: any, content: string, title: string }) => ( @@ -106,4 +108,3 @@ const Post = ({ theme, changeTheme }: ThemeProps) => { } export default Post - diff --git a/client/pages/post/styles.module.css b/client/pages/post/styles.module.css new file mode 100644 index 00000000..5bcfe224 --- /dev/null +++ b/client/pages/post/styles.module.css @@ -0,0 +1,11 @@ +.header { + display: flex; + justify-content: space-between; + align-items: center; +} + +@media screen and (max-width: 650px) { + .header { + flex-direction: column; + } +} \ No newline at end of file