Skip to content

Commit

Permalink
remove old announcement css and apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 21, 2024
1 parent 99307d3 commit 9062cb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
13 changes: 7 additions & 6 deletions packages/website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import ModeLogo from '../svg/users/mode.svg';
import TypeformLogo from '../svg/users/typeform.svg';
import SlabLogo from '../svg/users/slab.svg';


const fonts = ['sofia', 'slabo', 'roboto', 'inconsolata', 'ubuntu'];
const userBuckets = [
[
Expand All @@ -54,9 +53,7 @@ const userBuckets = [
['Mode', 'https://mode.com/', ModeLogo],
['Typeform', 'https://www.typeform.com/', TypeformLogo],
],
[
['Slab', 'https://slab.com/', SlabLogo],
],
[['Slab', 'https://slab.com/', SlabLogo]],
];

const Content = () => {
Expand Down Expand Up @@ -233,12 +230,16 @@ const IndexPage = () => {
{[0, 1, 2].map((index) => (
<div
key={index}
className={classNames('camera', { active: activeIndex === index })}
className={classNames('camera', {
active: activeIndex === index,
})}
onClick={() => {
setActiveIndex(index);
setIsDemoActive(true);
}}
><div className='dot' /></div>
>
<div className="dot" />
</div>
))}
</div>
<NoSSR>
Expand Down
22 changes: 0 additions & 22 deletions packages/website/src/pages/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,21 +267,6 @@ header .action {
padding: 1em;
}

.announcement {
background-color: #337ab7;
color: #fff;
display: block;
font-size: 18px;
padding: 10px;
text-align: center;
}
.announcement:active,
.announcement:hover,
.announcement:visited {
color: #fff;
text-decoration: none;
}

.new-blog::after {
background-color: #f2d123;
border-radius: 6px;
Expand Down Expand Up @@ -1224,9 +1209,6 @@ body:not(.home) .navbar-link:before {
html {
font-size: 10px;
}
.announcement {
display: none;
}
.navbar-open,
.navbar-close {
top: 4em;
Expand Down Expand Up @@ -1500,10 +1482,6 @@ body:not(.home) .navbar-link:before {
transform: scaleX(1);
visibility: visible;
}
.announcement + header .navbar-open,
.announcement + header .navbar-close {
top: 12em;
}
#sidebar-container .search-item {
display: block;
}
Expand Down

0 comments on commit 9062cb0

Please sign in to comment.