list and reader widened
This commit is contained in:
@@ -22,15 +22,12 @@ export function Reader() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
function handleClose() {
|
function handleClose() {
|
||||||
Promise.all([
|
animate(".reader", READER.initial)
|
||||||
animate(".reader", READER.initial)
|
.then(() => setPost(undefined));
|
||||||
]
|
|
||||||
).then(() => setPost(undefined));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return post ? (
|
return post ? (
|
||||||
<motion.section
|
<motion.section
|
||||||
key="reader"
|
|
||||||
initial={READER.initial}
|
initial={READER.initial}
|
||||||
animate={READER.animate}
|
animate={READER.animate}
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
@@ -39,9 +36,11 @@ export function Reader() {
|
|||||||
<button onClick={handleClose} className="link reader-close">
|
<button onClick={handleClose} className="link reader-close">
|
||||||
<FontAwesomeIcon icon={faClose} />
|
<FontAwesomeIcon icon={faClose} />
|
||||||
</button>
|
</button>
|
||||||
<post.article components={{
|
<div className="content">
|
||||||
'a': ExternalLink
|
<post.article components={{
|
||||||
}}/>
|
'a': ExternalLink
|
||||||
|
}}/>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</motion.section>
|
</motion.section>
|
||||||
) : <></>;
|
) : <></>;
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ $entry-width: 400px
|
|||||||
|
|
||||||
.spacer
|
.spacer
|
||||||
background: #393984FF
|
background: #393984FF
|
||||||
width: 33%
|
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
|
|
||||||
@media screen and (max-width: index.$phone)
|
@media screen and (max-width: index.$phone)
|
||||||
@@ -41,10 +40,9 @@ $entry-width: 400px
|
|||||||
|
|
||||||
.articles
|
.articles
|
||||||
display: flex
|
display: flex
|
||||||
flex-grow: 4
|
flex-grow: 3
|
||||||
|
justify-content: center
|
||||||
margin-top: 100px
|
margin-top: 100px
|
||||||
flex-direction: column
|
|
||||||
align-items: center
|
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
|
|
||||||
.art-ctr
|
.art-ctr
|
||||||
|
|||||||
@@ -12,16 +12,9 @@
|
|||||||
top: 0
|
top: 0
|
||||||
left: 0
|
left: 0
|
||||||
|
|
||||||
h1
|
|
||||||
font-size: xxx-large
|
|
||||||
h2
|
|
||||||
font-size: xx-large
|
|
||||||
h3
|
|
||||||
font-size: x-large
|
|
||||||
p
|
|
||||||
font-size: large
|
|
||||||
|
|
||||||
display: flex
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
|
||||||
> article
|
> article
|
||||||
display: flex
|
display: flex
|
||||||
@@ -35,7 +28,21 @@
|
|||||||
background: white
|
background: white
|
||||||
color: black
|
color: black
|
||||||
height: 90vh
|
height: 90vh
|
||||||
max-width: 600px
|
|
||||||
|
@media screen and (min-width: index.$phone)
|
||||||
|
width: 800px
|
||||||
|
|
||||||
|
h1
|
||||||
|
font-size: xxx-large
|
||||||
|
h2
|
||||||
|
font-size: xx-large
|
||||||
|
h3
|
||||||
|
font-size: x-large
|
||||||
|
p
|
||||||
|
font-size: large
|
||||||
|
|
||||||
|
.content
|
||||||
|
max-width: 600px
|
||||||
|
|
||||||
.external-link
|
.external-link
|
||||||
color: inherit !important
|
color: inherit !important
|
||||||
|
|||||||
Reference in New Issue
Block a user