Browse Source

首屏

master
maochaoying 2 years ago
parent
commit
698e27d9c3
  1. 4
      README.md
  2. 2
      index.html
  3. 44
      src/components/AboutUs.vue
  4. 39
      src/components/HeadLine.vue
  5. 63
      src/components/Header.vue
  6. 57
      src/components/HomeScreen.vue
  7. 1
      src/main.js
  8. 6
      src/pages/index.vue
  9. 133
      src/static/css/reset.css

4
README.md

@ -1,6 +1,4 @@
# zwsd@192.168.1.3:maochaoying/subsea-side-website.git
# 做专业的水下设备制造商
# 做铁路相关的设备研发和制造
静态网站,没有后台交互

2
index.html

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>产品梦工厂-做专业的水下设备制造商</title>
<title>产品梦工厂 - 做铁路相关的设备研发和制造</title>
</head>
<body>
<div id="app"></div>

44
src/components/AboutUs.vue

@ -0,0 +1,44 @@
<template>
<div class="about_us_container">
<HeadLine />
<div class="more_btn">
<span>了解更多</span>
<img :src="RightArrow" alt="right_arrow" class="right_arrow" />
</div>
</div>
</template>
<script setup>
import HeadLine from '@/components/HeadLine'
import RightArrow from '@/static/img/jiantou.png'
</script>
<style lang="scss" scoped>
.about_us_container {
margin: 0 auto;
width: 70vw;
padding: 103px 0;
.more_btn {
width: 173px;
height: 43px;
background: linear-gradient(90deg, #facc22, #f83600);
border-radius: 22px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 13px 30px;
font-size: 18px;
font-weight: 300;
color: #fafafa;
box-sizing: border-box;
margin: 0 auto;
margin-top: 36px;
margin-bottom: 86px;
.right_arrow {
width: 19px;
height: 10px;
}
}
}
</style>

39
src/components/HeadLine.vue

@ -1,7 +1,42 @@
<template>
<div>head line</div>
<div class="header_line_container">
<h2 class="title">关于我们</h2>
<p class="line"></p>
<p class="desc">
专业水下视学设备团队研发出品,多年的使用经验打磨的好产品支持定制想您所想,另外公司有硬件研发团队
</p>
<p class="desc">
软件研发团队结构研发团队外观研发团队也能帮您研发设计其他产品
</p>
</div>
</template>
<script setup></script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.header_line_container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
.title {
font-size: 30px;
font-weight: bold;
color: #000000;
margin-bottom: 24px;
}
.line {
width: 38px;
height: 4px;
background: #f95926;
border-radius: 2px;
margin-bottom: 24px;
}
.desc {
font-size: 18px;
font-weight: 300;
color: #686868;
line-height: 28px;
}
}
</style>

63
src/components/Header.vue

@ -1,7 +1,64 @@
<template>
<div>hader</div>
<div class="header_container">
<img :src="Logo" alt="logo" class="logo_img" />
<ul class="tab_group">
<li :class="activeTab == 0 ? 'active' : ''" @click="changeActiveTab(0)">
首页
</li>
<li :class="activeTab == 1 ? 'active' : ''" @click="changeActiveTab(1)">
关于我们
</li>
<li :class="activeTab == 2 ? 'active' : ''" @click="changeActiveTab(2)">
产品中心
</li>
<li :class="activeTab == 3 ? 'active' : ''" @click="changeActiveTab(3)">
联系我们
</li>
</ul>
</div>
</template>
<script setup></script>
<script setup>
import { ref } from 'vue'
import Logo from '@/static/img/2.png'
const activeTab = ref(0)
const changeActiveTab = index => {
activeTab.value = index
}
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.header_container {
padding: 23px 200px;
display: flex;
align-items: center;
justify-content: space-between;
position: absolute;
top: 0;
left: 0;
right: 0;
.logo_img {
width: 216px;
height: 44px;
cursor: pointer;
}
.tab_group {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 18px;
font-weight: 200;
color: #ffffff;
& > li {
margin-right: 65px;
cursor: pointer;
&:last-child {
margin-right: 0;
}
}
.active {
font-weight: 500;
}
}
}
</style>

57
src/components/HomeScreen.vue

@ -1,7 +1,58 @@
<template>
<div>home screen</div>
<div class="home_screen_container">
<Header />
<h1 class="main_title">
做铁路相关的设备<span class="sign">研发和制造</span>
</h1>
<div class="to_bottom">
<img :src="Arrow" alt="arrow" class="arrow" />
</div>
</div>
</template>
<script setup></script>
<script setup>
import Header from '@/components/Header'
import Arrow from '@/static/img/jiantou.png'
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.home_screen_container {
position: relative;
width: 100vw;
height: 100vh;
background: url(../static/img/1.png) no-repeat;
background-size: 100% 100%;
.main_title {
font-size: 76px;
font-family: Alibaba PuHuiTi;
font-weight: bold;
color: #f1f1f1;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
.sign {
color: RGBA(249, 89, 38, 1);
}
}
.to_bottom {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
cursor: pointer;
border: 2px solid #ffffff;
border-radius: 50%;
position: absolute;
bottom: 53px;
left: 50%;
transform: translateX(-50%);
.arrow {
width: 17px;
height: 10px;
}
}
}
</style>

1
src/main.js

@ -2,6 +2,7 @@ import { createApp } from 'vue'
import router from './router'
import store from './store'
import App from './App.vue'
import './static/css/reset.css'
import './style.scss'
createApp(App).use(router).use(store).mount('#app')

6
src/pages/index.vue

@ -1,15 +1,13 @@
<template>
<div class="main_container">
<Header />
<HomeSceen />
<HeadLine />
<AboutUs />
</div>
</template>
<script setup>
import Header from '@/components/Header'
import HomeSceen from '@/components/HomeScreen'
import HeadLine from '@/components/HeadLine'
import AboutUs from '@/components/AboutUs'
</script>
<style scoped lang="scss">

133
src/static/css/reset.css

@ -0,0 +1,133 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
* {
font-family: Source Han Sans CN;
}
Loading…
Cancel
Save