mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-11 00:24:12 +02:00
Add github badge at corner
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import useDocumentTitle from '../hooks/useDocumentTitle';
|
||||
import Footer from './Footer';
|
||||
import Layout from './Layout';
|
||||
import ProductHuntBadge from './ProductHuntBadge';
|
||||
|
||||
interface DetailsLayoutProps {
|
||||
@@ -13,7 +13,7 @@ const DetailsLayout: React.FC<DetailsLayoutProps> = ({ title, children }) => {
|
||||
useDocumentTitle(`CSS Layout ∙ ${title}`);
|
||||
|
||||
return (
|
||||
<div style={{ margin: '0 auto 64px auto', maxWidth: '1024px', position: 'relative' }}>
|
||||
<Layout>
|
||||
<div style={{ position: 'absolute', right: 0, top: '24px' }}>
|
||||
<ProductHuntBadge />
|
||||
</div>
|
||||
@@ -74,8 +74,7 @@ const DetailsLayout: React.FC<DetailsLayoutProps> = ({ title, children }) => {
|
||||
</h1>
|
||||
{children}
|
||||
</div>
|
||||
<Footer />
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user