1
0
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:
Phuoc Nguyen
2019-12-10 18:47:50 +07:00
parent 090dc64628
commit acc2e20091
3 changed files with 49 additions and 8 deletions

View File

@@ -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>
);
};