Skip to content

Commit

Permalink
add 2.0 announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 21, 2024
1 parent 8f5589f commit 99307d3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ const IndexPage = () => {
className={classNames({ 'demo-active': isDemoActive })}
>
<div className="container">
<div id="announcement-container">
<a
target="_blank"
href="https://slab.com/blog/announcing-quill-2-0/"
>
<strong>Quill 2.0 is released!</strong>
&nbsp;&nbsp;&bull;&nbsp;&nbsp;Read the
announcement&nbsp;&nbsp;&gt;
</a>
</div>
<div id="users-container">
<h2>
<button
Expand Down
23 changes: 23 additions & 0 deletions packages/website/src/pages/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,23 @@ body.home .arrow .shaft {
height: 840px;
}

#announcement-container {
font-family: 'Sofia Pro', sans-serif;
margin-top: 25px;
position: absolute;
text-align: center;
width: 100%;
z-index: 1;

a {
background-color: #f2d123;
border-radius: 8px;
display: inline-block;
font-size: 80%;
padding: 2px 10px;
}
}

#users-container {
font-size: 1.25rem;
left: 0;
Expand Down Expand Up @@ -645,6 +662,9 @@ body.home .arrow .shaft {
padding: 5% 8% 25px;
}

#above-container.demo-active #announcement-container {
display: none;
}
#above-container.demo-active #users-container h1 {
display: none;
}
Expand Down Expand Up @@ -1221,6 +1241,9 @@ body:not(.home) .navbar-link:before {
#above-container > .container {
height: 600px;
}
#announcement-container {
display: none;
}
#users-container {
padding-top: 2em;
}
Expand Down

0 comments on commit 99307d3

Please sign in to comment.