mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-06 14:16:50 +02:00
Add shadow to cover and browser frame
This commit is contained in:
@@ -8,7 +8,7 @@ const Cover = () => {
|
|||||||
<div className="h-100 flex items-center justify-center pa2">
|
<div className="h-100 flex items-center justify-center pa2">
|
||||||
<div className="b--black-30 ba br2 flex w-100 h1">
|
<div className="b--black-30 ba br2 flex w-100 h1">
|
||||||
<div className="b--black-30 br flex items-center justify-center w1">-</div>
|
<div className="b--black-30 br flex items-center justify-center w1">-</div>
|
||||||
<div className="flex-grow-1 bg-white"></div>
|
<div className="flex-grow-1"></div>
|
||||||
<div className="b--black-30 bl flex items-center justify-center w1">+</div>
|
<div className="b--black-30 bl flex items-center justify-center w1">+</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -5,7 +5,7 @@ const BrowserFrame = ({ content, source }) => {
|
|||||||
const flip = () => setContentActive(isActive => !isActive);
|
const flip = () => setContentActive(isActive => !isActive);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="br2 ba b--black-20">
|
<div className="br2 ba b--black-20" style={{ boxShadow: '0 24px 48px -8px rgba(0, 0, 0, .5)' }}>
|
||||||
<div className="flex ph3 pv2 bb b--black-20 items-center bg-black-05">
|
<div className="flex ph3 pv2 bb b--black-20 items-center bg-black-05">
|
||||||
<div className="br-100 mr1 w1 h1 bg-red" />
|
<div className="br-100 mr1 w1 h1 bg-red" />
|
||||||
<div className="br-100 mr1 w1 h1 bg-gold" />
|
<div className="br-100 mr1 w1 h1 bg-gold" />
|
||||||
|
@@ -5,6 +5,7 @@ const Frame = ({ children }) => {
|
|||||||
<div
|
<div
|
||||||
className="ba b--black-30 br2"
|
className="ba b--black-30 br2"
|
||||||
style={{
|
style={{
|
||||||
|
boxShadow: 'rgba(0, 0, 0, 0.2) 0px 16px 24px -4px, rgba(0, 0, 0, 0.05) 0px 8px 8px -4px',
|
||||||
height: '100px',
|
height: '100px',
|
||||||
width: '100px',
|
width: '100px',
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user