mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-27 19:14:52 +03:00
Make blog intro / CTA visually distinguishable (#748)
* Add class to paragraph containing CTA Add class to the paragraph containing CTA elements. The class is used to target the container paragraph element to create a box to distinguish CTA section from the content. * Add css properties for paragraphy containing CTA Added css properties for paragraph element to create a box around the CTA, centering the text and providing padding. * Add media query for CTA box Add media query for CTA box for small screens to prevent individual CTA from breaking. Each CTA appears on an individual line and look clean. CTA dividers are not shown on small screens.
This commit is contained in:
parent
4cdc06dd13
commit
4020295740
@ -8,7 +8,7 @@ const Divider = () => (
|
||||
)
|
||||
|
||||
const InBlogCta = () => (
|
||||
<p>
|
||||
<p className='in-blog-cta-link-container'>
|
||||
<Link className='in-blog-cta--link'
|
||||
to='https://e44cy1h4s0q.typeform.com/to/ycUzQa5A'>
|
||||
We are in Alpha (try it out)!
|
||||
|
@ -51,6 +51,13 @@
|
||||
|
||||
/* NOTE(matija): this is used within a blog post (e.g. seed round
|
||||
* announcement). */
|
||||
|
||||
.in-blog-cta-link-container {
|
||||
border: solid var(--ifm-link-color);
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.in-blog-cta--link {
|
||||
color: var(--ifm-color-primary);
|
||||
font-weight: bold;
|
||||
@ -128,6 +135,12 @@
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
.in-blog-cta--link {display: block;}
|
||||
.in-blog-cta--divider{display: none;}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 996px) {
|
||||
.row .col {
|
||||
padding-top: var(--ifm-col-spacing-vertical);
|
||||
|
Loading…
Reference in New Issue
Block a user