Browse Source

chagne color theme, new attu logo

Signed-off-by: ruiyi.jiang <ruiyi.jiang@zilliz.com>
ruiyi.jiang 1 year ago
parent
commit
75f3cbc22c

+ 1 - 1
client/index.html

@@ -2,7 +2,7 @@
 <html lang="en">
 <head>
   <meta charset="utf-8" />
-  <link rel="icon" href="attu.png" />
+  <link rel="icon" href="attu.svg" />
   <meta name="description" content="Attu, best milvus management tool" />
   <meta name="viewport" content="width=device-width, initial-scale=1" />
   <meta name="theme-color" content="#000000" />

BIN
client/public/attu.png


+ 5 - 0
client/public/attu.svg

@@ -0,0 +1,5 @@
+<svg width="24" height="24" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M15.9719 2.06803C16.0242 1.97732 16.1551 1.97732 16.2073 2.06803L19.4178 7.64077L9.56067 24.8547C6.78737 24.9881 4.22773 25.4339 2.25155 25.8838L15.9719 2.06803Z" fill="#0ACE82"/>
+<path d="M26.3931 27.7963C29.8222 27.7963 33.4739 26.151 35.7404 24.9101L24.5049 5.28918C24.4527 5.19806 24.3213 5.19806 24.2691 5.28918L13.0455 24.8894C15.7146 25.1104 17.7436 25.785 19.6798 26.4288C21.7915 27.1309 23.7927 27.7963 26.3931 27.7963Z" fill="#0ACE82"/>
+<path d="M19.2985 29.0903C21.1596 29.7053 22.9289 30.2899 24.4937 30.5205C28.3671 31.0914 33.7215 29.3788 36 27.2096C34.2911 30.5205 29.962 34.0598 24.4937 34.0598C20.0719 34.0598 16.6998 32.7612 13.2767 31.4429C12.4664 31.1309 11.6533 30.8178 10.8228 30.5205C8.10961 29.5494 3.4184 29.6521 1.02534 29.7045C0.604887 29.7137 0.255375 29.7213 0 29.7213C2.05063 28.1229 6.1519 27.2096 10.8228 27.2096C13.6067 27.2096 16.5526 28.183 19.2985 29.0903Z" fill="#0ACE82"/>
+</svg>

+ 3 - 3
client/src/assets/icons/attu.svg

@@ -1,5 +1,5 @@
 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M15.9719 2.06803C16.0242 1.97732 16.1551 1.97732 16.2073 2.06803L19.4178 7.64077L9.56067 24.8547C6.78737 24.9881 4.22773 25.4339 2.25155 25.8838L15.9719 2.06803Z" fill="#18D4E0"/>
-<path d="M26.3931 27.7963C29.8222 27.7963 33.4739 26.151 35.7404 24.9101L24.5049 5.28918C24.4527 5.19806 24.3213 5.19806 24.2691 5.28918L13.0455 24.8894C15.7146 25.1104 17.7436 25.785 19.6798 26.4288C21.7915 27.1309 23.7927 27.7963 26.3931 27.7963Z" fill="#18D4E0"/>
-<path d="M19.2985 29.0903C21.1596 29.7053 22.9289 30.2899 24.4937 30.5205C28.3671 31.0914 33.7215 29.3788 36 27.2096C34.2911 30.5205 29.962 34.0598 24.4937 34.0598C20.0719 34.0598 16.6998 32.7612 13.2767 31.4429C12.4664 31.1309 11.6533 30.8178 10.8228 30.5205C8.10961 29.5494 3.4184 29.6521 1.02534 29.7045C0.604887 29.7137 0.255375 29.7213 0 29.7213C2.05063 28.1229 6.1519 27.2096 10.8228 27.2096C13.6067 27.2096 16.5526 28.183 19.2985 29.0903Z" fill="#18D4E0"/>
+<path d="M15.9719 2.06803C16.0242 1.97732 16.1551 1.97732 16.2073 2.06803L19.4178 7.64077L9.56067 24.8547C6.78737 24.9881 4.22773 25.4339 2.25155 25.8838L15.9719 2.06803Z" fill="#0ACE82"/>
+<path d="M26.3931 27.7963C29.8222 27.7963 33.4739 26.151 35.7404 24.9101L24.5049 5.28918C24.4527 5.19806 24.3213 5.19806 24.2691 5.28918L13.0455 24.8894C15.7146 25.1104 17.7436 25.785 19.6798 26.4288C21.7915 27.1309 23.7927 27.7963 26.3931 27.7963Z" fill="#0ACE82"/>
+<path d="M19.2985 29.0903C21.1596 29.7053 22.9289 30.2899 24.4937 30.5205C28.3671 31.0914 33.7215 29.3788 36 27.2096C34.2911 30.5205 29.962 34.0598 24.4937 34.0598C20.0719 34.0598 16.6998 32.7612 13.2767 31.4429C12.4664 31.1309 11.6533 30.8178 10.8228 30.5205C8.10961 29.5494 3.4184 29.6521 1.02534 29.7045C0.604887 29.7137 0.255375 29.7213 0 29.7213C2.05063 28.1229 6.1519 27.2096 10.8228 27.2096C13.6067 27.2096 16.5526 28.183 19.2985 29.0903Z" fill="#0ACE82"/>
 </svg>

+ 1 - 2
client/src/components/layout/Header.tsx

@@ -22,7 +22,7 @@ const useStyles = makeStyles((theme: Theme) =>
       justifyContent: 'space-between',
       alignItems: 'center',
       paddingTop: theme.spacing(3),
-      paddingLeft: theme.spacing(4),
+      paddingLeft: theme.spacing(3),
       flex: 1,
     },
     navigation: {
@@ -51,7 +51,6 @@ const useStyles = makeStyles((theme: Theme) =>
           fontSize: '12px',
           lineHeight: '16px',
           color: '#1ba954',
-          textTransform: 'capitalize',
         },
       },
     },

+ 9 - 16
client/src/components/menu/NavMenu.tsx

@@ -20,9 +20,10 @@ const duration = `${timeout}ms`;
 const useStyles = makeStyles((theme: Theme) =>
   createStyles({
     root: {
-      background: theme.palette.common.white,
+      borderRight: '1px solid #eee',
+      background: '#fff',
       paddingTop: 0,
-      paddingBottom: theme.spacing(5),
+      paddingBottom: theme.spacing(4),
       display: 'flex',
       flexDirection: 'column',
       justifyContent: 'space-between',
@@ -40,7 +41,7 @@ const useStyles = makeStyles((theme: Theme) =>
       paddingLeft: theme.spacing(4),
     },
     item: {
-      marginBottom: theme.spacing(2),
+      marginBottom: theme.spacing(1),
       paddingLeft: theme.spacing(3),
       boxSizing: 'content-box',
       height: theme.spacing(3),
@@ -63,10 +64,11 @@ const useStyles = makeStyles((theme: Theme) =>
       whiteSpace: 'nowrap',
     },
     active: {
-      color: theme.palette.primary.main,
-      borderRight: `2px solid ${theme.palette.primary.main}`,
+      color: '#000',
 
       '& .icon': {
+        stroke: theme.palette.primary.main,
+
         '& path': {
           stroke: theme.palette.primary.main,
         },
@@ -77,8 +79,7 @@ const useStyles = makeStyles((theme: Theme) =>
       display: 'flex',
       alignItems: 'center',
       height: '86px',
-      marginBottom: theme.spacing(7),
-      backgroundColor: theme.palette.primary.main,
+      marginBottom: theme.spacing(2),
       paddingLeft: theme.spacing(3),
 
       '& .title': {
@@ -86,7 +87,6 @@ const useStyles = makeStyles((theme: Theme) =>
         paddingLeft: theme.spacing(2),
         fontSize: '24px',
         letterSpacing: '0.15px',
-        color: 'white',
       },
     },
     logo: {
@@ -96,16 +96,9 @@ const useStyles = makeStyles((theme: Theme) =>
     },
     logoExpand: {
       marginRight: theme.spacing(1),
-      '& path': {
-        fill: 'white',
-      },
       transform: 'scale(2)',
     },
     logoCollapse: {
-      backgroundColor: theme.palette.primary.main,
-      '& path': {
-        fill: 'white',
-      },
       transform: 'scale(1.5)',
     },
     actionIcon: {
@@ -223,7 +216,7 @@ const NavMenu: FC<NavMenuType> = props => {
             })}
           />
           <Fade in={expanded} timeout={timeout}>
-            <Typography variant="h3" className="title">
+            <Typography variant="h1" className="title">
               {attuTrans.admin}
             </Typography>
           </Fade>

+ 1 - 1
client/src/pages/system/SystemView.tsx

@@ -15,7 +15,7 @@ import DataCard from './DataCard';
 const getStyles = makeStyles((theme: Theme) => ({
   root: {
     fontFamily: 'Roboto',
-    margin: '12px 32px',
+    margin: '12px 24px',
     position: 'relative',
     height: 'fit-content',
     display: 'flex',

+ 1 - 1
client/src/styles/common.css

@@ -33,7 +33,7 @@ fieldset {
   display: flex;
   flex-direction: column;
 
-  margin: 16px 32px 32px;
+  margin: 16px 24px;
 }
 
 .page-empty-card {

+ 3 - 3
client/src/styles/theme.ts

@@ -41,9 +41,9 @@ const commonThemes = {
   },
   palette: {
     primary: {
-      main: '#06aff2',
+      main: '#0ACE82',
       light: '#bfdeff',
-      dark: '#0689D2',
+      dark: '#08a568',
     },
     secondary: {
       light: '#82d3ba',
@@ -56,7 +56,7 @@ const commonThemes = {
       dark: '#cd3804',
     },
     attuBlue: {
-      main: '#f8f8fc',
+      main: '#18D4E0',
       dark: '#dcdce3',
     },
     attuGrey: {