Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
221900204-陈鸿越
VueJS_02
提交
b70c95f5
V
VueJS_02
项目概览
221900204-陈鸿越
/
VueJS_02
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VueJS_02
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b70c95f5
编写于
4月 22, 2023
作者:
6
641c55cabd0a9b5151c42173
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Sat Apr 22 07:50:00 UTC 2023 inscode
上级
4f39fc67
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
219 addition
and
148 deletion
+219
-148
index.html
index.html
+2
-0
src/App.vue
src/App.vue
+5
-5
src/components/TheWelcome.vue
src/components/TheWelcome.vue
+2
-70
src/components/WelcomeItem.vue
src/components/WelcomeItem.vue
+210
-73
未找到文件。
index.html
浏览文件 @
b70c95f5
...
@@ -9,5 +9,7 @@
...
@@ -9,5 +9,7 @@
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.js"
></script>
<script
type=
"module"
src=
"/src/main.js"
></script>
</body>
</body>
</html>
</html>
src/App.vue
浏览文件 @
b70c95f5
...
@@ -4,13 +4,13 @@ import TheWelcome from './components/TheWelcome.vue'
...
@@ -4,13 +4,13 @@ import TheWelcome from './components/TheWelcome.vue'
</
script
>
</
script
>
<
template
>
<
template
>
<
header
>
<
!--
<header>
--
>
<
img
alt=
"Vue logo"
class=
"logo"
src=
"./assets/logo.svg"
width=
"125"
height=
"125"
/
>
<
!--
<img
alt=
"Vue logo"
class=
"logo"
src=
"./assets/logo.svg"
width=
"125"
height=
"125"
/>
--
>
<div
class=
"wrapper"
>
<
!--
<
div
class=
"wrapper"
>
<HelloWorld
msg=
"You did it!"
/>
<HelloWorld
msg=
"You did it!"
/>
</div>
</div>
-->
<
/header
>
<
!--
</header>
--
>
<main>
<main>
<TheWelcome
/>
<TheWelcome
/>
...
...
src/components/TheWelcome.vue
浏览文件 @
b70c95f5
...
@@ -9,76 +9,8 @@ import SupportIcon from './icons/IconSupport.vue'
...
@@ -9,76 +9,8 @@ import SupportIcon from './icons/IconSupport.vue'
<
template
>
<
template
>
<WelcomeItem>
<WelcomeItem>
<template
#icon
>
<DocumentationIcon
/>
</
template
>
<
template
#heading
>
Documentation
</
template
>
Vue’s
<a
target=
"_blank"
href=
"https://vuejs.org/"
>
official documentation
</a>
provides you with all information you need to get started.
</WelcomeItem>
<WelcomeItem>
<
template
#icon
>
<ToolingIcon
/>
</
template
>
<
template
#heading
>
Tooling
</
template
>
This project is served and bundled with
<a
href=
"https://vitejs.dev/guide/features.html"
target=
"_blank"
>
Vite
</a>
. The recommended IDE
setup is
<a
href=
"https://code.visualstudio.com/"
target=
"_blank"
>
VSCode
</a>
+
<a
href=
"https://github.com/johnsoncodehk/volar"
target=
"_blank"
>
Volar
</a>
. If you need to test
your components and web pages, check out
<a
href=
"https://www.cypress.io/"
target=
"_blank"
>
Cypress
</a>
and
<a
href=
"https://on.cypress.io/component"
target=
"_blank"
>
Cypress Component Testing
</a
>
.
<br
/>
More instructions are available in
<code>
README.md
</code>
.
</WelcomeItem>
<WelcomeItem>
<
template
#icon
>
<EcosystemIcon
/>
</
template
>
<
template
#heading
>
Ecosystem
</
template
>
Get official tools and libraries for your project:
<a
target=
"_blank"
href=
"https://pinia.vuejs.org/"
>
Pinia
</a>
,
<a
target=
"_blank"
href=
"https://router.vuejs.org/"
>
Vue Router
</a>
,
<a
target=
"_blank"
href=
"https://test-utils.vuejs.org/"
>
Vue Test Utils
</a>
, and
<a
target=
"_blank"
href=
"https://github.com/vuejs/devtools"
>
Vue Dev Tools
</a>
. If you need more
resources, we suggest paying
<a
target=
"_blank"
href=
"https://github.com/vuejs/awesome-vue"
>
Awesome Vue
</a>
a visit.
</WelcomeItem>
</WelcomeItem>
<WelcomeItem>
<
template
#icon
>
<CommunityIcon
/>
</
template
>
<
template
#heading
>
Community
</
template
>
Got stuck? Ask your question on
<a
target=
"_blank"
href=
"https://chat.vuejs.org"
>
Vue Land
</a>
, our official Discord server, or
<a
target=
"_blank"
href=
"https://stackoverflow.com/questions/tagged/vue.js"
>
StackOverflow
</a>
.
You should also subscribe to
<a
target=
"_blank"
href=
"https://news.vuejs.org"
>
our mailing list
</a>
and follow the official
<a
target=
"_blank"
href=
"https://twitter.com/vuejs"
>
@vuejs
</a>
twitter account for latest news in the Vue world.
</WelcomeItem>
<WelcomeItem>
<
template
#icon
>
<SupportIcon
/>
</
template
>
<
template
#heading
>
Support Vue
</
template
>
As an independent project, Vue relies on community backing for its sustainability. You can help
us by
<a
target=
"_blank"
href=
"https://vuejs.org/sponsor/"
>
becoming a sponsor
</a>
.
</WelcomeItem>
</
template
>
</
template
>
src/components/WelcomeItem.vue
浏览文件 @
b70c95f5
<
template
>
<
template
>
<div
class=
"item"
>
<div
class=
"container"
>
<i>
<div
class=
"from-box"
>
<slot
name=
"icon"
></slot>
<!-- 注册 -->
</i>
<div
class=
"register-box hidden"
>
<div
class=
"details"
>
<h1>
register
</h1>
<h3>
<input
type=
"text"
placeholder=
"用户名"
id=
"reg_user"
>
<slot
name=
"heading"
></slot>
<input
type=
"number"
placeholder=
"手机号"
id=
"reg_phone"
>
</h3>
<input
type=
"password"
placeholder=
"密码"
>
<slot></slot>
<input
type=
"password"
placeholder=
"确认密码"
>
<button
id=
"reg_submit"
>
注册
</button>
</div>
<!-- 登录 -->
<div
class=
"login-box"
>
<h1>
login
</h1>
<input
type=
"text"
placeholder=
"用户名"
>
<input
type=
"password"
placeholder=
"密码"
>
<button>
登录
</button>
</div>
</div>
<div
class=
"con-box left"
>
<img
src=
"./img/1.png"
alt=
""
>
<p>
已有账号
</p>
<button
id=
"login"
>
去登录
</button>
</div>
<div
class=
"con-box right"
>
<img
src=
"./img/1.png"
alt=
""
>
<p>
没有账号?
</p>
<button
id=
"register"
>
去注册
</button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
style
scoped
>
<
style
scoped
>
.item
{
*
{
margin-top
:
2rem
;
/* 初始化 */
padding
:
0
;
margin
:
0
;
}
html
,
body
{
/* 100%的窗口高度 */
height
:
100vh
;
/* 弹性布局 水平+垂直居中 */
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
/* 渐变背景 */
background
:
linear-gradient
(
200deg
,
#f3e7e9
,
#e3eeff
);
-ms-overflow-style
:
none
;
}
input
::-webkit-outer-spin-button
,
input
::-webkit-inner-spin-button
{
-webkit-appearance
:
none
;
}
.container
{
background-color
:
#fff
;
width
:
650px
;
height
:
415px
;
/* 阴影 */
box-shadow
:
5px
5px
5px
rgba
(
0
,
0
,
0
,
0.1
);
/* 相对定位 */
position
:
relative
;
}
.from-box
{
/* 绝对定位 */
position
:
absolute
;
top
:
-10%
;
left
:
5%
;
background-color
:
#d3b7d8
;
width
:
320px
;
height
:
500px
;
border-radius
:
5px
;
box-shadow
:
2px
0
10px
rgba
(
0
,
0
,
0
,
0.1
);
/* 弹性布局 水平+垂直居中 */
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
z-index
:
2
;
/* 动画过渡 加速之后 减速 */
transition
:
0.5s
ease-in-out
;
}
.register-box
,
.login-box
{
/* 弹性布局 垂直排列 */
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
width
:
100%
;
}
.hidden
{
display
:
none
;
transition
:
0.5s
;
}
h1
{
text-align
:
center
;
margin-bottom
:
25px
;
/* 大写字母 */
text-transform
:
uppercase
;
color
:
#fff
;
/* 字间距 */
letter-spacing
:
5px
;
}
input
{
background-color
:
transparent
;
width
:
70%
;
color
:
#fff
;
border
:
none
;
/* 下边框样式 */
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0.4
);
padding
:
10px
0
;
text-indent
:
10px
;
margin
:
8px
0
;
font-size
:
14px
;
/* 字间距 */
letter-spacing
:
2px
;
}
input
::placeholder
{
color
:
#fff
;
}
input
:focus
{
color
:
#a262ad
;
outline
:
none
;
border-bottom
:
1px
solid
#a262ad80
;
transition
:
0.5s
;
}
input
:focus::placeholder
{
opacity
:
0
;
}
}
.details
{
.from-box
button
{
flex
:
1
;
width
:
70%
;
margin-left
:
1rem
;
margin-top
:
35px
;
background-color
:
#f6f6f6
;
outline
:
none
;
border-radius
:
8px
;
padding
:
13px
;
color
:
#a262ad
;
letter-spacing
:
2px
;
border
:
none
;
cursor
:
pointer
;
}
}
i
{
.from-box
button
:hover
{
background-color
:
#a262ad
;
color
:
#f6f6f6
;
transition
:
background-color
0.5s
ease
;
}
.con-box
{
width
:
50%
;
/* 弹性布局 垂直排列 居中 */
display
:
flex
;
display
:
flex
;
place-items
:
center
;
flex-direction
:
column
;
place-content
:
center
;
justify-content
:
center
;
width
:
32px
;
align-items
:
center
;
height
:
32px
;
/* 绝对定位 */
position
:
absolute
;
color
:
var
(
--color-text
);
top
:
50%
;
}
transform
:
translateY
(
-50%
);
}
h3
{
font-size
:
1.2rem
;
.con-box.left
{
font-weight
:
500
;
left
:
-2%
;
margin-bottom
:
0.4rem
;
}
color
:
var
(
--color-heading
);
}
.con-box.right
{
right
:
-2%
;
@media
(
min-width
:
1024px
)
{
}
.item
{
margin-top
:
0
;
.con-box
h2
{
padding
:
0.4rem
0
1rem
calc
(
var
(
--section-gap
)
/
2
);
color
:
#8e9aaf
;
}
font-size
:
25px
;
font-weight
:
bold
;
i
{
letter-spacing
:
3px
;
top
:
calc
(
50%
-
25px
);
text-align
:
center
;
left
:
-26px
;
margin-bottom
:
4px
;
position
:
absolute
;
}
border
:
1px
solid
var
(
--color-border
);
background
:
var
(
--color-background
);
.con-box
p
{
border-radius
:
8px
;
font-size
:
12px
;
width
:
50px
;
letter-spacing
:
2px
;
height
:
50px
;
color
:
#8e9aaf
;
}
text-align
:
center
;
.item
:before
{
content
:
' '
;
border-left
:
1px
solid
var
(
--color-border
);
position
:
absolute
;
left
:
0
;
bottom
:
calc
(
50%
+
25px
);
height
:
calc
(
50%
-
25px
);
}
.item
:after
{
content
:
' '
;
border-left
:
1px
solid
var
(
--color-border
);
position
:
absolute
;
left
:
0
;
top
:
calc
(
50%
+
25px
);
height
:
calc
(
50%
-
25px
);
}
.item
:first-of-type:before
{
display
:
none
;
}
.item
:last-of-type:after
{
display
:
none
;
}
}
}
.con-box
span
{
color
:
#d3b7d8
;
}
.con-box
img
{
width
:
150px
;
height
:
150px
;
opacity
:
0.9
;
margin
:
40px
0
;
}
.con-box
button
{
margin-top
:
3%
;
background-color
:
#fff
;
color
:
#a262ad
;
border
:
1px
solid
#d3b7d8
;
padding
:
6px
10px
;
letter-spacing
:
1px
;
outline
:
none
;
/* 鼠标放上变小手 */
cursor
:
pointer
;
}
.con-box
button
:hover
{
background-color
:
#a262ad
;
color
:
#f6f6f6
;
}
</
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录