Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
11
DESKTOP-ZTS2NQJNA99301a6b2dcd
diff --git a/electron/main/index.ts b/electron/main/index.tsindex ca380854..ca5bdf25 100644--- a/electron/main/index.ts+++ b/electron/main/index.ts@@ -9,6 +9,7 @@ import App from './app';import { getAssetPath } from '../util/index';import windowOperate from '../util/windowOperate';import { logger } from '../global/log';+import { SplashWindow } from './splash';const __dirname = path.dirname(fileURLToPath(import.meta.url));@@ -33,10 +34,19 @@ if (!app.requestSingleInstanceLock()) {}let win: BrowserWindow | null = null;+let splashWindow: SplashWindow | null = null;const preload = path.join(__dirname, '../preload/index.mjs');const indexHtml = path.join(RENDERER_DIST, 'index.html');async function createWindow() {+ // 创建启动窗口+ splashWindow = new SplashWindow();+ splashWindow.create();++ // 等待一会儿确保启动窗口显示+ await new Promise(resolve => setTimeout(resolve, 500));++ // 创建主窗口但先不显示win = new BrowserWindow({title: '爱团团AiToEarn',icon: path.join(getAssetPath('favicon.ico')),@@ -44,7 +54,7 @@ async function createWindow() {height: 1080,minWidth: 1280,minHeight: 800,- // show: false, // 最小化显示+ show: false,webPreferences: {preload,webviewTag: true,@@ -60,21 +70,30 @@ async function createWindow() {logger.error('系统托盘启动失败', error);}+ // 等待主窗口加载完成if (VITE_DEV_SERVER_URL) {-- win.webContents.openDevTools({ mode: 'right' });- // #298- win.loadURL(VITE_DEV_SERVER_URL);- // Open devTool if the app is not packaged--- ipcMain.handle('OPEN_DEV_TOOLS', (_, mode) => {- win!.webContents.openDevTools({ mode: mode || 'right' });- });+ await win.loadURL(VITE_DEV_SERVER_URL);} else {- win.loadFile(indexHtml);+ await win.loadFile(indexHtml);}+ // 延长启动窗口显示时间+ setTimeout(() => {+ if (splashWindow) {+ win?.show();+ // 在主窗口显示后再打开开发者工具+ if (VITE_DEV_SERVER_URL) {+ win?.webContents.openDevTools({ mode: 'right' });+ }+ setTimeout(() => {+ if (splashWindow) {+ splashWindow.close();+ splashWindow = null;+ }+ }, 500);+ }+ }, 2000);+// 隐藏菜单栏win.setMenu(null);diff --git a/electron/main/splash.ts b/electron/main/splash.tsnew file mode 100644index 00000000..68c458a6--- /dev/null+++ b/electron/main/splash.ts@@ -0,0 +1,53 @@+import { BrowserWindow } from 'electron';+import path from 'node:path';+import { VITE_DEV_SERVER_URL, RENDERER_DIST } from './index';++export class SplashWindow {+ private window: BrowserWindow | null = null;++ create() {+ this.window = new BrowserWindow({+ width: 400,+ height: 400,+ transparent: true,+ frame: false,+ alwaysOnTop: true,+ skipTaskbar: true,+ center: true,+ backgroundColor: '#ffffff', // 添加背景色+ webPreferences: {+ nodeIntegration: true,+ contextIsolation: false+ }+ });++ // 根据开发环境和生产环境使用不同的加载方式+ const splashPath = VITE_DEV_SERVER_URL+ ? path.join(process.env.VITE_PUBLIC!, 'splash.html')+ : path.join(RENDERER_DIST, 'splash.html');++ console.log('Splash path:', splashPath); // 调试路径++ this.window.loadFile(splashPath).catch(err => {+ console.error('Failed to load splash window:', err);+ });++ // 只在开发环境打印日志+ if (VITE_DEV_SERVER_URL) {+ this.window.webContents.on('did-finish-load', () => {+ console.log('Splash window loaded');+ });++ this.window.webContents.on('did-fail-load', (_, code, description) => {+ console.error('Splash window failed to load:', code, description);+ });+ }+ }++ close() {+ if (this.window) {+ this.window.close();+ this.window = null;+ }+ }+}\ No newline at end of filediff --git a/public/.project b/public/.projectnew file mode 100644index 00000000..1e4aa8f1--- /dev/null+++ b/public/.project@@ -0,0 +1,28 @@+<?xml version="1.0" encoding="UTF-8"?>+<projectDescription>+ <name>public</name>+ <comment></comment>+ <projects>+ </projects>+ <buildSpec>+ <buildCommand>+ <name>com.aptana.ide.core.unifiedBuilder</name>+ <arguments>+ </arguments>+ </buildCommand>+ </buildSpec>+ <natures>+ <nature>com.aptana.projects.webnature</nature>+ </natures>+ <filteredResources>+ <filter>+ <id>1740588515250</id>+ <name></name>+ <type>26</type>+ <matcher>+ <id>org.eclipse.ui.ide.multiFilter</id>+ <arguments>1.0-name-matches-false-false-node_modules</arguments>+ </matcher>+ </filter>+ </filteredResources>+</projectDescription>diff --git a/public/assets/splash.png b/public/assets/splash.pngnew file mode 100644index 00000000..84cbad3cBinary files /dev/null and b/public/assets/splash.png differdiff --git a/public/splash.html b/public/splash.htmlnew file mode 100644index 00000000..3d775132--- /dev/null+++ b/public/splash.html@@ -0,0 +1,61 @@+<!DOCTYPE html>+<html>+<head>+ <style>+ body {+ margin: 0;+ padding: 0;+ display: flex;+ justify-content: center;+ align-items: center;+ height: 100vh;+ background: #ffffff;+ overflow: hidden;+ }+ .splash-container {+ width: 300px;+ height: 300px;+ position: relative;+ display: flex;+ justify-content: center;+ align-items: center;+ }+ .splash-image {+ width: 100%;+ height: 100%;+ object-fit: contain;+ animation: fadeInAndScale 1.5s ease-out;+ }+ @keyframes fadeInAndScale {+ 0% {+ opacity: 0;+ transform: scale(0.8);+ }+ 50% {+ opacity: 1;+ transform: scale(1.1);+ }+ 100% {+ opacity: 1;+ transform: scale(1);+ }+ }+ </style>+</head>+<body>+ <div class="splash-container">+ <img+ src="assets/splash.png"+ class="splash-image"+ alt="启动图"+ onerror="console.error('Failed to load splash image')"+ />+ </div>+ <script>+ console.log('Splash HTML loaded');+ document.querySelector('.splash-image').onload = () => {+ console.log('Splash image loaded');+ };+ </script>+</body>+</html>\ No newline at end of filediff --git a/src/components/GetCode.tsx b/src/components/GetCode.tsxindex 485afb86..c877ea60 100644--- a/src/components/GetCode.tsx+++ b/src/components/GetCode.tsx@@ -22,6 +22,7 @@ function GetCode({ onGetCode }: { onGetCode: (unlock: () => void) => void }) {styles['loginForm-getCode'] +` ${isCode ? styles['loginForm-getCode--disable'] : ''}`}+ style={{display: 'flex'}}onClick={() => {if (isCode) return;lockCode();diff --git a/src/views/login/components/LoginCore.tsx b/src/views/login/components/LoginCore.tsxindex d9985178..9bf911de 100644--- a/src/views/login/components/LoginCore.tsx+++ b/src/views/login/components/LoginCore.tsx@@ -1,10 +1,31 @@+import { useState } from 'react';import styles from '../login.module.scss';-import PhoneLogin from '@/views/login/components/PhoneLogin';+import PhoneLogin from './PhoneLogin';+import QrcodeLogin from './qrcodeLogin';+import { WechatOutlined, MobileOutlined } from '@ant-design/icons';++export const LoginCore = () => {+ const [loginType, setLoginType] = useState<'phone' | 'qrcode'>('phone');-export function LoginCore() {return (- <div className={styles.loginCore}>- <PhoneLogin />+ <div className={styles.loginCore} style={{position: 'relative'}}>+ <div className={styles.switch_login_type}>+ {loginType === 'phone' ? (+ <WechatOutlined+ className={styles.switch_icon}+ onClick={() => setLoginType('qrcode')}+ />+ ) : (+ <MobileOutlined+ className={styles.switch_icon}+ onClick={() => setLoginType('phone')}+ />+ )}+ </div>++ <div className={styles.login_content}>+ {loginType === 'phone' ? <PhoneLogin /> : <QrcodeLogin />}+ </div></div>);-}+};diff --git a/src/views/login/components/PhoneLogin.tsx b/src/views/login/components/PhoneLogin.tsxindex 8acd38d6..0b57af5f 100644--- a/src/views/login/components/PhoneLogin.tsx+++ b/src/views/login/components/PhoneLogin.tsx@@ -1,6 +1,6 @@import { ForwardedRef, forwardRef, memo, useState } from 'react';import styles from '../login.module.scss';-import { Tabs, Button, Form, Input, message } from 'antd';+import { Button, Form, Input, message } from 'antd';import { phoneReg } from '@/utils/regulars';import GetCode from '@/components/GetCode';import { userApi } from '@/api/user';@@ -9,134 +9,115 @@ import { useNavigate } from 'react-router-dom';import { useUserStore } from '@/store/user';export interface IPhoneLoginProps {}-export interface IPhoneLoginRef {}-// 密码登录-const PasswordLogin = () => {- return <>未开发</>;-};--// 短信登录-const MsgLogin = () => {- const [form] = Form.useForm();- const [loginLoading, setLoginLoading] = useState(false);- const navigate = useNavigate();- const userStore = useUserStore();-- const loginCore = async (params: PhoneLoginParams) => {- setLoginLoading(true);- const res = await userApi- .phoneLogin(params)- .catch(() => setLoginLoading(true));- setLoginLoading(false);- LoginSuccess(res);- };-- // 登录成功后的统一初始化方法- const LoginSuccess = (res: IRefreshToken | void) => {- if (!res) return;- window.ipcRenderer.invoke('ICP_USER_ADD', res.userInfo);- userStore.setToken(res);- userStore.getUserInfo(res.userInfo);- message.success('登录成功!');- navigate('/');+const PhoneLogin = memo(+ forwardRef(({}: IPhoneLoginProps, ref: ForwardedRef<IPhoneLoginRef>) => {+ const [form] = Form.useForm();+ const [loginLoading, setLoginLoading] = useState(false);+ const [formValid, setFormValid] = useState(false);+ const navigate = useNavigate();+ const userStore = useUserStore();- return <></>;- };+ const handleValuesChange = () => {+ const values = form.getFieldsValue();+ setFormValid(!!values.phone && !!values.code);+ };- const MyInput = (props: any) => (- <div style={{ display: 'flex', width: '100%' }}>- <div className={styles['loginForm-phone-site']}>+86</div>- <Input {...props} style={{ width: '100%' }} />- </div>- );+ const loginCore = async (params: PhoneLoginParams) => {+ setLoginLoading(true);+ const res = await userApi+ .phoneLogin(params)+ .catch(() => setLoginLoading(true));+ setLoginLoading(false);+ LoginSuccess(res);+ };- return (- <Form- form={form}- className={styles.loginForm}- onFinish={loginCore}- autoComplete="off"- >- <Form.Item<PhoneLoginParams>- name="phone"- className={styles['loginForm-phone']}- rules={[- { required: true, message: '请输入手机号' },- {- pattern: phoneReg,- message: '手机号格式错误,请重新输入',- },- ]}- >- <MyInput placeholder="请输入您的手机号码" />- </Form.Item>+ const LoginSuccess = (res: IRefreshToken | void) => {+ if (!res) return;+ window.ipcRenderer.invoke('ICP_USER_ADD', res.userInfo);+ userStore.setToken(res);+ userStore.getUserInfo(res.userInfo);+ message.success('登录成功!');+ navigate('/');+ };- <div style={{ position: 'relative', height: '43px' }}>- <Form.Item<PhoneLoginParams>- name="code"- rules={[{ required: true, message: '验证码不能为空' }]}- >- <Input placeholder="请输入您的验证码" />- </Form.Item>- <GetCode- onGetCode={async (unlock) => {- const validateRes = await form- .validateFields(['phone'])- .catch(() => unlock());- console.log(validateRes);- if (!validateRes) return;- const res = await userApi.getUserCode({- phone: form.getFieldValue('phone'),- });- if (!res) return;- message.success('验证码已发送');- form.setFieldsValue({- // code: import.meta.env.MODE === 'development' ? res : '',- code: res,- });- }}- />+ const MyInput = (props: any) => (+ <div style={{ display: 'flex', width: '100%' }}>+ <div className={styles['loginForm-phone-site']}>+86</div>+ <Input {...props} style={{ width: '100%' }} /></div>+ );- <Form.Item- className={styles['loginForm-buttonWrapper']}- wrapperCol={{ offset: 0 }}- style={{ marginTop: '30px' }}- >- <Button loading={loginLoading} className="customBtn4" htmlType="submit">- 登录- </Button>- </Form.Item>- </Form>- );-};--const PhoneLogin = memo(- forwardRef(({}: IPhoneLoginProps, ref: ForwardedRef<IPhoneLoginRef>) => {return (<div className={styles.phoneLogin}>- <Tabs- defaultActiveKey="0"- indicator={{ size: (origin) => origin - 30 }}- items={[- {- key: '0',- label: '密码登录',- children: <PasswordLogin />,- },- {- key: '1',- label: '短信登录',- children: <MsgLogin />,- },- ]}- />+ <div className={styles.loginHeader}>+ <h2>欢迎来到爱团团</h2>+ <p>请使用手机号登录</p>+ </div>+ <Form+ form={form}+ className={styles.loginForm}+ onFinish={loginCore}+ autoComplete="off"+ onValuesChange={handleValuesChange}+ >+ <Form.Item<PhoneLoginParams>+ name="phone"+ className={styles['loginForm-phone']}+ rules={[+ { required: true, message: '请输入手机号' },+ {+ pattern: phoneReg,+ message: '手机号格式错误,请重新输入',+ },+ ]}+ >+ <MyInput placeholder="请输入您的手机号码" />+ </Form.Item>++ <div style={{ position: 'relative', height: '43px' }}>+ <Form.Item<PhoneLoginParams>+ name="code"+ rules={[{ required: true, message: '验证码不能为空' }]}+ >+ <Input placeholder="请输入您的验证码" />+ </Form.Item>+ <GetCode+ onGetCode={async (unlock) => {+ const validateRes = await form+ .validateFields(['phone'])+ .catch(() => unlock());+ if (!validateRes) return;+ const res = await userApi.getUserCode({+ phone: form.getFieldValue('phone'),+ });+ if (!res) return;+ message.success('验证码已发送');+ form.setFieldsValue({+ code: res,+ });+ }}+ />+ </div>++ <Form.Item+ className={styles['loginForm-buttonWrapper']}+ wrapperCol={{ offset: 0 }}+ >+ <Button+ loading={loginLoading}+ className={`${styles.submitBtn} ${formValid ? styles.active : ''}`}+ htmlType="submit"+ >+ 登录+ </Button>+ </Form.Item>+ </Form></div>);}),);-PhoneLogin.displayName = 'PhoneLogin';+PhoneLogin.displayName = 'PhoneLogin';export default PhoneLogin;diff --git a/src/views/login/components/qrcodeLogin.tsx b/src/views/login/components/qrcodeLogin.tsxindex 52469b50..9f2eb2c7 100644--- a/src/views/login/components/qrcodeLogin.tsx+++ b/src/views/login/components/qrcodeLogin.tsx@@ -5,31 +5,42 @@* @LastEditors: nevin* @Description: 微信二维码登录*/-import { forwardRef, useImperativeHandle, useState } from 'react';+import { forwardRef, useImperativeHandle, useState, useEffect } from 'react';import { userApi } from '@/api/user';import { Button } from 'antd';+import { ReloadOutlined } from '@ant-design/icons';+import styles from '../login.module.scss';+export interface PubItemRef {init: (pubRecord: any) => Promise<void>;}export default forwardRef<PubItemRef>((props, ref) => {- const [ticketInfo, setTicketInfo] = useState<{ ticket: string; key: string }>(- {- ticket: '',- key: '',- },- );+ const [ticketInfo, setTicketInfo] = useState<{ ticket: string; key: string }>({+ ticket: '',+ key: '',+ });+ const [showMask, setShowMask] = useState(false);++ useEffect(() => {+ getQrcode();+ const timer = setTimeout(() => {+ setShowMask(true);+ }, 30000); // 30秒后显示遮罩- async function init(info: any) {}+ return () => {+ clearTimeout(timer);+ };+ }, []);async function getQrcode() {const res = await userApi.getWxLoginQrcode({});- console.log('---- res', res);if (res) {setTicketInfo({ticket: res.ticket,key: res.key,});+ setShowMask(false);}}@@ -42,19 +53,47 @@ export default forwardRef<PubItemRef>((props, ref) => {}useImperativeHandle(ref, () => ({- init: init,+ init: async (info: any) => {},}));return (- <div>- <Button onClick={getQrcode}>获取二维码</Button>- <Button onClick={wxGzhQrcodelogin}>登录</Button>- {ticketInfo.ticket && (- <img- src={`https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${ticketInfo.ticket}`}- alt="微信登录二维码"- />- )}+ <div className={styles.qrcodeLogin}>+ <div className={styles.qrcodeHeader}>+ <h2>微信扫码登录</h2>+ <p>请使用微信扫描二维码关注爱团团公众号</p>+ </div>++ <div className={styles.qrcodeWrapper}>+ {ticketInfo.ticket && (+ <img+ src={`https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${ticketInfo.ticket}`}+ alt="微信登录二维码"+ />+ )}++ {showMask && (+ <div className={styles.qrcodeMask}>+ <p>二维码已过期</p>+ <Button+ type="link"+ icon={<ReloadOutlined />}+ onClick={getQrcode}+ className={styles.refreshBtn}+ >+ 刷新二维码+ </Button>+ </div>+ )}+ </div>++ <div className={styles['loginForm-buttonWrapper']}>+ <Button+ onClick={wxGzhQrcodelogin}+ className={`${styles.submitBtn} ${ticketInfo.ticket ? styles.active : ''}`}+ >+ 登录+ </Button>+ </div></div>);});diff --git a/src/views/login/index.tsx b/src/views/login/index.tsxindex c984c474..776021ff 100644--- a/src/views/login/index.tsx+++ b/src/views/login/index.tsx@@ -14,7 +14,6 @@ import platformSvg from './svgs/icon-platform.svg';import accountSvg from './svgs/icon-account.svg';import mediaSvg from './svgs/icon-media.svg';import logo from '@/assets/logo.png';-import QrcodeLogin from './components/qrcodeLogin';const Login = () => {const features = [@@ -46,7 +45,6 @@ const Login = () => {return (<div className={`${styles.login}`}>- <QrcodeLogin /><div className={`${styles.login_wrap} ${styles.login_left}`}><div className={styles.login_left_top}><img src={logo} alt="logo" width={80} />@@ -67,7 +65,7 @@ const Login = () => {})}</ul></div>- <div className={styles.login_wrap}>+ <div className={styles.login_wrap} ><LoginCore /></div></div>diff --git a/src/views/login/login.module.scss b/src/views/login/login.module.scssindex cedc8639..e4393f48 100644--- a/src/views/login/login.module.scss+++ b/src/views/login/login.module.scss@@ -49,100 +49,240 @@}.loginCore {+ width: 400px;+ min-height: 380px;+ padding: 40px;+ background: #fff;+ border-radius: 8px;+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);}.phoneLogin {- width: 300px;- :global {- .ant-tabs-nav {- &::before {- content: none;- }+ width: 100%;+ padding: 20px 0;++ .loginHeader {+ text-align: center;+ margin-bottom: 40px;++ h2 {+ font-size: 24px;+ font-weight: 600;+ color: #333;+ margin-bottom: 8px;+ }++ p {+ font-size: 14px;+ color: #666;+ margin: 0;+ }+ }+ }++ .switch_login_type {+ position: absolute;+ right: 30px;+ top: 30px;+ z-index: 1;++ .switch_icon {+ font-size: 20px;+ padding: 8px;+ border-radius: 50%;+ background: #f5f5f5;+ color: #666;+ cursor: pointer;+ transition: all 0.3s;++ &:hover {+ background: #e6f7ff;+ color: #1890ff;+ }+ }+ }++ .qrcodeLogin {+ width: 100%;+ padding: 20px 0;+ text-align: center;++ .qrcodeHeader {+ margin-bottom: 40px;++ h2 {+ font-size: 24px;+ font-weight: 600;+ color: #333;+ margin-bottom: 8px;+ }++ p {+ font-size: 14px;+ color: #666;+ margin: 0;}- .ant-tabs-nav-list {+ }++ .qrcodeWrapper {+ position: relative;+ width: 200px;+ height: 200px;+ margin: 0 auto 40px;++ img {width: 100%;+ height: 100%;+ object-fit: contain;+ }++ .qrcodeMask {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ background: rgba(255, 255, 255, 0.95);+ display: flex;+ flex-direction: column;justify-content: center;- .ant-tabs-tab {- &:nth-of-type(2) {- margin-left: 50px;+ align-items: center;+ border-radius: 8px;++ p {+ color: #666;+ margin-bottom: 12px;+ }++ .refreshBtn {+ color: #C367EF;+ font-size: 14px;++ &:hover {+ color: #64C9ED;}- .ant-tabs-tab-btn {- font-size: var(--fs-md);++ .anticon {+ margin-right: 4px;}}}- .ant-form-item-explain-error {- text-align: left;- }+ }++ .loginForm-buttonWrapper {+ margin-top: 0;+ padding: 0 40px;}}}.loginForm {input {- padding: 10px 15px;- }- .loginForm-buttonWrapper {- margin-top: 50px;- button {- width: 100%;- margin: 20px auto 0 auto;- padding: 20px 0;+ padding: 12px 16px;+ font-size: 14px;+ border-radius: 8px;+ border: 1px solid #e8e8e8;+ transition: all 0.3s;++ &::placeholder {+ color: #999;+ }++ &:focus {+ border-color: #C367EF;+ box-shadow: 0 0 0 2px rgba(195, 103, 239, 0.1);}}.loginForm-phone {- :global {- .ant-form-item-control-input-content {- display: flex;- align-items: center;- }- }&-site {- border: 1px solid var(--lightGreyColor);- color: var(--lightGreyColor);- padding: 1px 10px;- line-height: 40px;- border-radius: 6px;+ border: 1px solid #e8e8e8;+ color: #666;+ padding: 0 12px;+ line-height: 42px;+ border-radius: 8px;margin-right: 8px;- font-size: var(--fs-sm);- height: 100%;+ font-size: 14px;+ background: #f9f9f9;+ }+ }++ .submitBtn {+ width: 100%;+ height: 44px;+ font-size: 16px;+ border-radius: 8px;+ border: none;+ background: #f0f0f0;+ color: #999;+ transition: all 0.3s;++ &.active {+ background: linear-gradient(135deg, #C367EF 0%, #64C9ED 100%);+ color: white;+ box-shadow: 0 8px 16px rgba(195, 103, 239, 0.2);++ &:hover {+ opacity: 0.9;+ }++ &:active {+ opacity: 0.8;+ }}}.loginForm-getCode {- color: var(--colorPrimary5);+ color: #C367EF;position: absolute;top: 50%;transform: translateY(-50%);- right: 10px;+ right: 16px;cursor: pointer;- display: flex;- align-items: center;font-size: 14px;+ font-weight: 500;+ background: linear-gradient(135deg, #C367EF 0%, #64C9ED 100%);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ transition: opacity 0.3s;+ z-index: 1;&:hover {- color: var(--colorPrimary3);+ opacity: 0.8;}+&:active {- color: var(--colorPrimary6);+ opacity: 0.6;+ }++ &--disable {+ opacity: 0.5;+ cursor: not-allowed;}:global {+ .ant-statistic {+ position: static;+ }+.ant-statistic-content {display: flex;align-items: center;- }- span {- font-size: 14px;- font-weight: 400;- color: var(--colorPrimary5);+ background: linear-gradient(135deg, #C367EF 0%, #64C9ED 100%);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ white-space: nowrap;++ &-value {+ font-size: 14px !important;+ font-weight: 500;+ }}}}- .loginForm-getCode--disable {- cursor: no-drop;+ .loginForm-buttonWrapper {+ margin-top: 40px;}}