1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-11 16:44:57 +02:00

Optimize ad

This commit is contained in:
Phuoc Nguyen
2021-03-30 15:09:32 +07:00
parent b568a14739
commit 0e5f8059c5
2 changed files with 7 additions and 10 deletions

View File

@@ -33,9 +33,7 @@ const Ad: React.FC<{}> = () => {
}, []); }, []);
return ( return (
<div className='flex justify-center mx-4 my-6'> <div ref={containerRef} />
<div ref={containerRef} />
</div>
); );
}; };

View File

@@ -4,19 +4,18 @@
*/ */
#carbonads { #carbonads {
background-color: #edf2f7; border: 1px solid rgba(0, 0, 0, .3);
padding: 0.5rem; border-radius: 0.5rem;
height: 9rem;
overflow: hidden;
position: relative; position: relative;
max-width: 24rem;
} }
.carbon-wrap { .carbon-wrap {
display: flex; display: flex;
} }
.carbon-text {
.carbon-img { padding: 0.5rem;
margin-right: 0.5rem;
} }
.carbon-poweredby { .carbon-poweredby {
bottom: 0; bottom: 0;
font-size: 0.75rem; font-size: 0.75rem;