This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch refactor-6372 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 86b42e163cd3fc7d2d751674478fd333dc80db8a Author: mintsweet <[email protected]> AuthorDate: Wed Nov 1 20:11:10 2023 +1300 refactor(config-ui): adjust the logo component --- config-ui/src/components/logo/index.tsx | 17 +++++++++------ config-ui/src/components/logo/styled.ts | 36 ------------------------------- config-ui/src/images/devlake-logo.svg | 28 ------------------------ config-ui/src/images/devlake-textmark.svg | 21 ------------------ 4 files changed, 10 insertions(+), 92 deletions(-) diff --git a/config-ui/src/components/logo/index.tsx b/config-ui/src/components/logo/index.tsx index 6b5af0595..fcda11424 100644 --- a/config-ui/src/components/logo/index.tsx +++ b/config-ui/src/components/logo/index.tsx @@ -16,16 +16,19 @@ * */ -import LogoImg from '@/images/devlake-logo.svg'; -import LogoTextImg from '@/images/devlake-textmark.svg'; +import styled from 'styled-components'; -import * as S from './styled'; +import LogoImg from '@/images/logo.svg'; + +const Wrapper = styled.div` + display: flex; + justify-content: center; +`; export const Logo = () => { return ( - <S.Wrapper> - <img src={LogoImg} alt="" /> - <img src={LogoTextImg} alt="" /> - </S.Wrapper> + <Wrapper> + <img src={LogoImg} alt="Logo" /> + </Wrapper> ); }; diff --git a/config-ui/src/components/logo/styled.ts b/config-ui/src/components/logo/styled.ts deleted file mode 100644 index 07d719249..000000000 --- a/config-ui/src/components/logo/styled.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -import styled from 'styled-components'; - -export const Wrapper = styled.div` - display: flex; - flex-direction: column; - align-items: center; - - img:first-child { - width: 48px; - height: 48px; - } - - img:last-child { - margin-top: 10px; - width: 100px; - height: 13px; - } -`; diff --git a/config-ui/src/images/devlake-logo.svg b/config-ui/src/images/devlake-logo.svg deleted file mode 100644 index 234da18d9..000000000 --- a/config-ui/src/images/devlake-logo.svg +++ /dev/null @@ -1,28 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<svg width="100" height="100" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> - <circle cx="24" cy="24" r="24" fill="#7497F7" /> - <path - d="M36.3565 28.2413C34.8541 28.2762 33.4745 28.1777 32.198 27.9751C33.6367 26.6784 34.4828 24.8944 34.3781 22.9664C34.2789 21.1452 33.3483 19.5357 31.9202 18.3944C33.8344 17.5795 36.0517 16.3076 37.1975 14.4932C38.527 12.3879 37.7124 10.6129 37.0612 9.69778C36.801 9.33198 36.1886 9.29821 35.8106 9.63081L27.782 16.6965C27.3573 16.6453 26.9218 16.625 26.479 16.6363C27.8254 15.0447 29.1492 12.9501 29.5075 10.596C29.9739 7.53166 28.3696 6.0403 27.3037 5.40211C26.8779 5.14717 26.2317 [...] - fill="white" /> - <path - d="M23.4341 21.6448C23.4341 22.6578 24.256 23.4783 25.2694 23.4783C26.2834 23.4783 27.1048 22.6578 27.1048 21.6448C27.1048 20.6318 26.2834 19.8113 25.2694 19.8113C24.2554 19.8113 23.4341 20.6318 23.4341 21.6448Z" - fill="#FF8B8B" /> - <path fill-rule="evenodd" clip-rule="evenodd" - d="M5.81165 39.6587C4.55094 38.1957 3.46375 36.5788 2.58203 34.8402C6.00017 33.819 10.6322 32.8665 15.667 32.8665C19.4684 32.8665 22.3446 33.5767 25.0905 34.2558L25.134 34.2666C27.8411 34.9361 30.4856 35.5902 34.1912 35.7548C38.5009 35.9463 42.5512 34.949 45.8368 33.972C44.6821 36.4964 43.1025 38.7859 41.1895 40.7489C38.9327 41.1367 36.4783 41.368 33.9468 41.2555C29.6929 41.0665 26.6085 40.3034 23.8871 39.6302L23.7685 39.6008C21.0418 38.9265 18.7375 38.3725 15.667 38.3725C11.9727 [...] - fill="white" /> -</svg> \ No newline at end of file diff --git a/config-ui/src/images/devlake-textmark.svg b/config-ui/src/images/devlake-textmark.svg deleted file mode 100644 index 706b087f5..000000000 --- a/config-ui/src/images/devlake-textmark.svg +++ /dev/null @@ -1,21 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<svg width="100" height="100" viewBox="0 0 100 13" fill="none" xmlns="http://www.w3.org/2000/svg"> - <path fill-rule="evenodd" clip-rule="evenodd" - d="M1.85853 9.7561H0L2.06835 2.20723C2.4255 0.903737 3.61017 0 4.96171 0H6.00651C7.15817 0 8.07188 0.970163 8.00292 2.11976L7.54484 9.7561H5.74167L6.01464 6.38223H2.77185L1.85853 9.7561ZM6.35354 2.19474L6.14328 4.7937H3.20176L3.88088 2.28505C3.9989 1.84909 4.39449 1.54636 4.84614 1.54636H5.7555C6.10594 1.54636 6.3818 1.84543 6.35354 2.19474ZM37.9166 3.81498L36.9686 9.90796H35.3434L36.2102 4.35017C36.2643 3.95221 36.1831 3.93848 35.8445 3.93848H33.2443L32.3234 9.90796H30.6982L32.2 [...] - fill="#7497F7" /> -</svg> \ No newline at end of file
