1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-06 14:16:50 +02:00

feat: Add follow block

This commit is contained in:
Phuoc Nguyen
2022-08-21 19:57:30 +07:00
parent e811d6a12c
commit 78dedd0fc7
4 changed files with 21 additions and 0 deletions

7
components/Follow.tsx Normal file
View File

@@ -0,0 +1,7 @@
import * as React from 'react';
export const Follow = () => (
<div className='block-follow'>
If you find this site helpful, follow me on <a href="https://twitter.com/nghuuphuoc">Twitter</a> and <a href="https://github.com/phuocng">GitHub</a> to get more useful content like this.
</div>
);

View File

@@ -3,6 +3,7 @@ import Head from 'next/head';
import { Heading, Spacer } from '@1milligram/design';
import { Ad } from '../components/Ad';
import { Follow } from '../components/Follow';
import { Pattern } from '../constants/Pattern';
import { slug } from '../utils/slug';
import { Layout } from './Layout';
@@ -38,6 +39,7 @@ export const PatternLayout: React.FC<{
<Spacer size="medium" />
</div>
{children}
<Follow />
<Spacer size="extraLarge" />
</div>
</Layout>

View File

@@ -0,0 +1,11 @@
.block-follow {
background-color: #0465eb;
border-radius: 0.5rem;
color: #fff;
padding: 1rem;
a {
color: #fff;
text-decoration: underline;
}
}

View File

@@ -5,6 +5,7 @@
@import 'blocks/browser-frame';
@import 'blocks/code';
@import 'blocks/cover';
@import 'blocks/follow';
@import 'blocks/footer';
@import 'blocks/header';
@import 'blocks/layout';