feat: venus adjust

This commit is contained in:
DarkSky
2022-08-04 16:17:46 +08:00
parent a495ebb7a2
commit 9a4da9ef79
13 changed files with 1161 additions and 25 deletions

View File

@@ -14,6 +14,9 @@
},
"devDependencies": {
"mini-css-extract-plugin": "^2.6.1",
"webpack": "^5.73.0"
"image-minimizer-webpack-plugin": "^3.2.3",
"imagemin": "^8.0.1",
"imagemin-optipng": "^8.0.0",
"webpack": "^5.74.0"
}
}

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -6,13 +6,18 @@ import clsx from 'clsx';
import { CssVarsProvider, styled } from '@mui/joy/styles';
import { Box, Button, Container, Grid, SvgIcon, Typography } from '@mui/joy';
import Card from '@mui/joy/Card';
import GitHubIcon from '@mui/icons-material/GitHub';
import RedditIcon from '@mui/icons-material/Reddit';
import TelegramIcon from '@mui/icons-material/Telegram';
// eslint-disable-next-line no-restricted-imports
import { useMediaQuery } from '@mui/material';
import LogoImage from './logo.png';
import CollaborationImage from './collaboration.png';
import PageImage from './page.png';
import ShapeImage from './shape.png';
import TaskImage from './task.png';
const DiscordIcon = (props: any) => {
return (
<SvgIcon
@@ -407,10 +412,7 @@ export function App() {
},
}}
>
<AffineImage
src="/assets/page.png"
alt="AFFiNE main ui"
/>
<AffineImage src={PageImage} alt="AFFiNE main ui" />
</Box>
</Grid>
<Grid xs={12} sx={{ display: 'flex' }}>
@@ -524,7 +526,7 @@ export function App() {
}}
>
<AffineImage
src="/assets/shape.png"
src={ShapeImage}
alt="AFFiNE Shape Your Page"
/>
</Box>
@@ -606,7 +608,7 @@ export function App() {
}}
>
<AffineImage
src="/assets/task.png"
src={TaskImage}
alt="AFFiNE Plan Your Task"
/>
</Box>
@@ -667,7 +669,7 @@ export function App() {
}}
>
<AffineImage
src="/assets/collaboration.png"
src={CollaborationImage}
alt="AFFiNE Privacy-first, and collaborative"
/>
</Box>
@@ -680,7 +682,7 @@ export function App() {
margin: 'auto',
}}
>
<AffineImage src="/assets/logo.png" alt="AFFiNE Logo" />
<AffineImage src={LogoImage} alt="AFFiNE Logo" />
</Box>
</Grid>
<Grid xs={12} sx={{ display: 'flex' }}>

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 936 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -7,6 +7,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const ImageMinimizerPlugin = require('image-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const Style9Plugin = require('style9/webpack');
@@ -61,6 +62,14 @@ module.exports = function (webpackConfig) {
parallel: true,
}),
new CssMinimizerPlugin(),
new ImageMinimizerPlugin({
minimizer: {
implementation: ImageMinimizerPlugin.imageminMinify,
options: {
plugins: [['optipng', { optimizationLevel: 5 }]],
},
},
}),
],
splitChunks: {
chunks: 'all',