Skip to content

Commit

Permalink
feat: update website resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 21, 2022
1 parent ee280a5 commit 1268835
Show file tree
Hide file tree
Showing 44 changed files with 605 additions and 374 deletions.
698 changes: 415 additions & 283 deletions data/website.ts

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const beian = '闽ICP备2020017848号-2'

const announcementBarContent = `<span>新增 <a href='/protocol-template'>Protocol 协议复现模板</a></span>`
const announcementBarContent = `<span>更新 <a href='/website'>网址导航</a> 带你发现感兴趣的技术</span>`

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -42,6 +42,7 @@ const config = {
src: 'img/logo.webp',
srcDark: 'img/logo.webp',
},
hideOnScroll: true,
items: [
{
label: '学习',
Expand Down
44 changes: 0 additions & 44 deletions src/components/Clock/index.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions src/components/Clock/styles.module.css

This file was deleted.

13 changes: 7 additions & 6 deletions src/components/Hero/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ html[data-theme='dark'] .bloghome__intro > p {
);
background-clip: text;
border: 1px solid var(--ifm-color-primary);
box-shadow: 0 10px 50px -10px rgb(18 175 250 / 40%);

&:hover {
text-decoration: none;
Expand All @@ -181,7 +182,7 @@ html[data-theme='dark'] .bloghome__intro > p {
opacity: 0;
content: "";
display: block;
height: 100%;
height: 105%;
width: 0;
left: 0;
position: absolute;
Expand All @@ -190,11 +191,11 @@ html[data-theme='dark'] .bloghome__intro > p {
transition: all 0.5s ease-in-out;
}

&:hover::before {
background: var(--ifm-color-primary-light);
width: 100%;
opacity: 0.5;
}
// &:hover::before {
// background: var(--ifm-color-primary-light);
// width: 100%;
// opacity: 0.5;
// }

> svg {
transition: all 0.3s ease-in-out;
Expand Down
13 changes: 8 additions & 5 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ html {
--divider-color: #ebebeb;
--post-shadow-color: rgb(220 220 220 / 30%);
--post-shadow: 0 0 20px 10px var(--post-shadow-color);
--content-background-color: #fcfcfc;
--content-background-color: #f8f9fa;
--blog-item-background-color: linear-gradient(180deg, #fff, #fcfcfc);
--blog-item-shadow: 0 20px 20px rgb(0 0 0 / 2.5%), 0 50px 80px rgb(0 0 0 / 9%);

--blog-item-shadow: 0 20px 20px rgb(0 0 0 / 2.5%), 0 50px 80px rgb(0 0 0 / 5%);

--ifm-heading-color: #000;

Expand Down Expand Up @@ -127,8 +128,10 @@ body {
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji', consolas, sfmono-regular, menlo, monaco,
'Liberation Mono', monospace;
/* font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
'Droid Sans', 'Helvetica Neue', sans-serif; */
}

html, body {
scroll-behavior: smooth;
}

::-webkit-scrollbar {
Expand Down Expand Up @@ -781,7 +784,7 @@ div[class^='announcementBar_'] {
border-radius: 12px;
background: var(--blog-item-background-color);
box-shadow: var(--blog-item-shadow);
padding: 1em 2em;
padding: 1em 2em 0.75em;
}

.transition {
Expand Down
6 changes: 2 additions & 4 deletions src/pages/website/_components/WebsiteCard/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
}

.websiteCard:hover {
box-shadow: 5px 5px 20px 0 rgb(0 0 0 / 10%);
background-color: #f2f8fd;
box-shadow: 0 10px 20px -10px rgb(0 0 0 / 20%);
transform: translateY(-5px);
}

html[data-theme='dark'] .websiteCard:hover {
box-shadow: 5px 5px 20px 0 rgb(0 0 0 / 10%);
background-color: #12181d;
box-shadow: 0 10px 20px -10px rgb(255 255 255 / 20%);
transform: translateY(-5px);
}

Expand Down
2 changes: 2 additions & 0 deletions src/pages/website/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Link from '@docusaurus/Link';
import { PageMetadata } from '@docusaurus/theme-common';
import Layout from '@theme/Layout';
import WebsiteCard from './_components/WebsiteCard';
import BackToTopButton from '@theme/BackToTopButton';
import { websiteData } from '@site/data/website';
import styles from './website.module.css';

Expand Down Expand Up @@ -79,6 +80,7 @@ export default function Websites() {
</aside>
<main className="col col--11">
<CategoryList />
<BackToTopButton />
</main>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/theme/BlogListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ function BlogListPageContent(props: Props) {
<BackToTopButton />

{/* 推荐阅读 */}
<BlogRecommend isPaginated={isPaginated} isCardView={isCardView} />
{!isPaginated && isBlogOnlyMode && <BlogRecommend isPaginated={isPaginated} isCardView={isCardView} />}


{/* 最新博客 */}
<div className="container-wrapper">
Expand Down
2 changes: 2 additions & 0 deletions src/theme/BlogPostItem/Footer/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
}

.blogPostInfo {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
align-items: center;
margin-bottom: var(--ifm-spacing-m);
gap: 4px;
color: rgb(156 163 175);
}

.blogPostInfoTags {
Expand Down
Binary file added static/img/website/antv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/any-rule.ico
Binary file not shown.
Binary file added static/img/website/apifox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/website/bun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/coding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/website/component party.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/css-inspiration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/cssfx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/cypress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/website/dbyun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/website/docusaurus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1268835

Please sign in to comment.