Skip to content

Commit

Permalink
fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
laubsauger committed May 22, 2024
1 parent 1861871 commit cedeed1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pages/blog/[...post].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LayoutBlog from '@/components/layouts/layout-blog';
import LayoutBlog from '@/components/layouts/LayoutBlog';
import Link from 'next/link';

const BlogPostPage = ({post}) => {
Expand Down
22 changes: 18 additions & 4 deletions pages/blog/hello-eden.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
import MdxLayout from '@/components/layouts/layout-blog'
import LayoutBlog from '../../src/components/layouts/LayoutBlog';

[//]: # (MARKDOWN CONTENT - START)

[//]: # (This is a comment. All of this is markdown)
# Welcome to my MDX page!

Bla **Bli** blub [Create stuff with Eden.Art](https://app.eden.art/)

asdasdasdas
d
as
da
sd
asd

asd
as
ds

[//]: # (MARKDOWN CONTENT - END)

export default function MDXPage({ children }) {
return (
<MdxLayout>
<LayoutBlog>
{children}
</MdxLayout>
</LayoutBlog>
)
}
4 changes: 2 additions & 2 deletions pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LayoutBlog from '@/components/layouts/layout-blog';
import LayoutBlog from '@/components/layouts/LayoutBlog';
import BlogPostPreview from '@/components/BlogPostPreview';

export async function getStaticProps() {
Expand Down Expand Up @@ -37,7 +37,7 @@ const BlogIndexPage = ({posts}) => {
<div>
<h4>Posts</h4>
<div className="flex flex-col gap-16">
{posts.map(post => (<BlogPostPreview post={post}/>))}
{posts.map(post => (<BlogPostPreview key={post.id} post={post}/>))}
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/EdenArtFrontPage/EdenArtFrontPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import VideoHeroSection from '@/components/VideoHeroSection';
export default function EdenArtFrontPage() {
return (
<div className="bg-black">
<NavHeader />
<div className="mt-8">
<NavHeader />
</div>
<VideoHeroSection />
<section className="flex flex-col">
<div className="text-white flex px-4 xl:px-24 flex-col z-10 m-10 mt-10">
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/navigation/NavHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const NavHeader = () => {
<div
className={`fixed z-50 w-full bg-black opacity-75 ${
isMenuOpen && size.width < 640 ? 'h-72' : 'h-16'
} mt-8`}
}`}
>
{' '}
<div className="flex justify-between">
Expand Down

0 comments on commit cedeed1

Please sign in to comment.