Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: update login image #17

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"eslint.autoFixOnSave": true,
"source.fixAll.stylelint": true
},
"files.autoSaveDelay": 500
"files.autoSaveDelay": 500,
"vue.codeActions.enabled": false
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[🔥 Live Demo 在线体验](https://pdsuwwz.github.io/vite-naive-template)


> 账号:`admin@test.com` (随意, 邮箱格式就行)
> 账号:`123456@admin.com` (随意邮箱)
>
> 密码:123456 (随意)

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite Naive Template</title>
</head>
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
Binary file removed public/favicon.png
Binary file not shown.
Binary file added src/assets/images/dark-logo-background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/logo-background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/logo-background.jpg
Binary file not shown.
2 changes: 2 additions & 0 deletions src/components/Footer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export default defineComponent({
margin: 0 auto;
width: 100%;

--at-apply: flex justify-center;

.container {
padding: 14px 0;

Expand Down
11 changes: 6 additions & 5 deletions src/modules/UserAccount/components/ContainerLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="user-account-container-layout bg-#fff">
<div class="user-account-container-layout">
<div class="form-title">
<div class="form-title-icon">
<IconFont
Expand Down Expand Up @@ -41,6 +41,7 @@
text
tag="a"
type="primary"
tabindex="-1"
@click="handleClickLink(formItem.link)"
>
{{ formItem.link.text }}
Expand Down Expand Up @@ -208,12 +209,13 @@ defineExpose({
<style lang="scss" scoped>
.user-account-container-layout {
width: 438px;
margin-right: 80px;
padding: 50px 34px 60px;
box-shadow: 3px 6px 12px 0 rgb(0 0 0 / 15%), 1px 4px 8px 0 rgb(0 0 0 / 15%);
border-radius: 6px;
user-select: none;

--at-apply: bg-#fff:98%;

&:deep(){

.n-form-item-label__text {
Expand All @@ -231,11 +233,10 @@ defineExpose({
}

.form-title {
display: flex;
flex-wrap: wrap;
align-items: center;
padding-bottom: 30px;

--at-apply: flex flex-wrap items-center justify-center;

.form-title-icon {
width: 32px;
font-size: 0;
Expand Down
13 changes: 11 additions & 2 deletions src/modules/UserAccount/pages/login.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<template>
<div class="user-account-login light:bg-[url(@/assets/images/logo-background.jpg)] dark:bg-#1e1e20 bg-no-repeat bg-cover">
<div
:class="[
'user-account-login',
'light:bg-[url(@/assets/images/logo-background.jpeg)]',
'dark:bg-[url(@/assets/images/dark-logo-background.jpeg)]',
'dark:bg-#1e1e20',
'bg-no-repeat',
'bg-cover'
]"
>
<NavigationNavBar
:fixed="false"
:auth="false"
Expand Down Expand Up @@ -173,7 +182,7 @@ onMounted(() => {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
justify-content: center;
}
}

Expand Down