Yansen 1 год назад
Родитель
Сommit
9b4a44ed85
9 измененных файлов: 21 добавлений и 18 удалений
  1. Двоичные данные
      public/favicon.ico
  2. 0
    9
      public/favicon.svg
  3. Двоичные данные
      public/image/homepage/thumb1.png
  4. Двоичные данные
      public/logo.png
  5. 6
    5
      src/components/NavMenu/index.jsx
  6. 9
    0
      src/data/homepage.js
  7. 1
    1
      src/layouts/Layout.astro
  8. 2
    1
      src/pages/[lang]/index.astro
  9. 3
    2
      src/pages/components/FirstScreen.astro

Двоичные данные
public/favicon.ico Просмотреть файл


+ 0
- 9
public/favicon.svg Просмотреть файл

@@ -1,9 +0,0 @@
1
-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
2
-    <path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
3
-    <style>
4
-        path { fill: #000; }
5
-        @media (prefers-color-scheme: dark) {
6
-            path { fill: #FFF; }
7
-        }
8
-    </style>
9
-</svg>

Двоичные данные
public/image/homepage/thumb1.png Просмотреть файл


Двоичные данные
public/logo.png Просмотреть файл


+ 6
- 5
src/components/NavMenu/index.jsx Просмотреть файл

@@ -20,7 +20,7 @@ export default function NavMenu(props) {
20 20
     <Fragment>
21 21
       <nav
22 22
         id="pageNav"
23
-        className="navbar navbar-expand-lg navbar-light bg-light fixed-top p-0 py-3"
23
+        className="navbar navbar-expand-lg navbar-light bg-light fixed-top p-0"
24 24
         style={{ '--bs-bg-opacity': 0.9 }}
25 25
       >
26 26
         <div className="container-fluid">
@@ -37,13 +37,14 @@ export default function NavMenu(props) {
37 37
           </button>
38 38
           <a className="navbar-brand" href={`/${lang}/`}>
39 39
             <img
40
-              src="https://e.huawei.com/-/mediae/images/common/logo/logo_huawei.png"
41
-              alt="Academe"
42
-              width="120"
40
+              src="../logo.png"
41
+              alt="云致科技"
42
+              width="36"
43 43
               className="d-inline-block align-text-top"
44 44
             />
45
+            <span className="text-nowrap mx-3">云致科技</span>
45 46
           </a>
46
-          <div id="navbarSupportedContent" className="collapse navbar-collapse">
47
+          <div id="navbarSupportedContent" className="collapse navbar-collapse py-3">
47 48
             <div className="me-auto"></div>
48 49
       
49 50
             <ul id="menu-nav" className="navbar-nav me-auto mb-2 mb-lg-0">

+ 9
- 0
src/data/homepage.js Просмотреть файл

@@ -0,0 +1,9 @@
1
+
2
+export default {
3
+  firstpage: {
4
+    thumb: '../image/homepage/thumb1.png',
5
+    title: '科技化 数字化 智能化',
6
+    subTitle: '引领企业基础设施产品与解决方案创新,赋能企业加速发展',
7
+    link: '',
8
+  }
9
+}

+ 1
- 1
src/layouts/Layout.astro Просмотреть файл

@@ -9,7 +9,7 @@ const { title } = Astro.props
9 9
     <meta charset="UTF-8" />
10 10
     <meta name="description" content="Astro description" />
11 11
     <meta name="viewport" content="width=device-width" />
12
-    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
12
+    <link rel="icon" type="image/x-icon" href="../favicon.ico">
13 13
     <link
14 14
       href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
15 15
       rel="stylesheet"

+ 2
- 1
src/pages/[lang]/index.astro Просмотреть файл

@@ -9,6 +9,7 @@ import Carousel from '@/components/children/Carousel.astro'
9 9
 import LeftRightCarousel from '@/components/LeftRightCarousel.astro'
10 10
 import VerticalNavigationContent from '@/components/VerticalNavigationContent.astro'
11 11
 import NavMenu from '@/components/NavMenu/index.jsx'
12
+import pageData from '@/data/homepage';
12 13
 
13 14
 function getName(item = {}) {
14 15
   return (
@@ -162,7 +163,7 @@ const informationList = [
162 163
   <NavMenu lang={lang} client:load />
163 164
 
164 165
   <!-- 首屏图 -->
165
-  <FirstScreen list={firstScreenList} />
166
+  <FirstScreen data={pageData.firstpage} />
166 167
 
167 168
   <!-- 三列图文轮播图 -->
168 169
   <Carousel

+ 3
- 2
src/pages/components/FirstScreen.astro Просмотреть файл

@@ -2,12 +2,13 @@
2 2
 import Img from '@/components/children/Img.astro'
3 3
 import Text from '@/components/children/Text.astro'
4 4
 
5
-const { list } = Astro.props
5
+const { data } = Astro.props
6
+const list = { title: data.title, content: data.subTitle }
6 7
 ---
7 8
 
8 9
 <div class="box">
9 10
   <Img
10
-    url="//e.huawei.com/-/mediae/images/home/banner/jiasu-banner-pc1.jpg"
11
+    url={data.thumb}
11 12
     ratio="16 / 9"
12 13
     class="img"
13 14
   />