mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update logo resources
This commit is contained in:
BIN
resources/logo-full.png
Normal file
BIN
resources/logo-full.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
BIN
resources/logo.png
Normal file
BIN
resources/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="0.1em" y=".9em" font-size="90">✍️</text></svg>
|
|
Before Width: | Height: | Size: 121 B |
BIN
web/public/logo-full.png
Normal file
BIN
web/public/logo-full.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 156 KiB |
@ -13,14 +13,10 @@
|
|||||||
@apply flex flex-col justify-start items-start w-full mb-4;
|
@apply flex flex-col justify-start items-start w-full mb-4;
|
||||||
|
|
||||||
> .title-container {
|
> .title-container {
|
||||||
@apply w-full flex flex-row justify-between items-center;
|
@apply w-full flex flex-row justify-between items-center mb-2;
|
||||||
|
|
||||||
> .title-text {
|
> .logo-img {
|
||||||
@apply text-2xl mb-2;
|
@apply h-16 w-auto;
|
||||||
|
|
||||||
> .icon-text {
|
|
||||||
@apply text-4xl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +57,7 @@
|
|||||||
@apply flex flex-row justify-end items-center w-full mt-2;
|
@apply flex flex-row justify-end items-center w-full mt-2;
|
||||||
|
|
||||||
> .btn {
|
> .btn {
|
||||||
@apply px-1 py-2 text-sm rounded hover:opacity-80;
|
@apply flex flex-row justify-center items-center px-1 py-2 text-sm rounded hover:opacity-80;
|
||||||
|
|
||||||
&.signin-btn {
|
&.signin-btn {
|
||||||
@apply bg-green-600 text-white px-3 shadow;
|
@apply bg-green-600 text-white px-3 shadow;
|
||||||
@ -70,6 +66,10 @@
|
|||||||
&.requesting {
|
&.requesting {
|
||||||
@apply cursor-wait opacity-80;
|
@apply cursor-wait opacity-80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .img-icon {
|
||||||
|
@apply w-4 h-auto mr-1 animate-spin;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ import { validate, ValidatorConfig } from "../helpers/validator";
|
|||||||
import useI18n from "../hooks/useI18n";
|
import useI18n from "../hooks/useI18n";
|
||||||
import useLoading from "../hooks/useLoading";
|
import useLoading from "../hooks/useLoading";
|
||||||
import { globalService, locationService, userService } from "../services";
|
import { globalService, locationService, userService } from "../services";
|
||||||
|
import Icon from "../components/Icon";
|
||||||
|
import Only from "../components/common/OnlyWhen";
|
||||||
import toastHelper from "../components/Toast";
|
import toastHelper from "../components/Toast";
|
||||||
import GitHubBadge from "../components/GitHubBadge";
|
|
||||||
import "../less/auth.less";
|
import "../less/auth.less";
|
||||||
|
|
||||||
interface Props {}
|
interface Props {}
|
||||||
@ -123,10 +124,7 @@ const Auth: React.FC<Props> = () => {
|
|||||||
<div className="auth-form-wrapper">
|
<div className="auth-form-wrapper">
|
||||||
<div className="page-header-container">
|
<div className="page-header-container">
|
||||||
<div className="title-container">
|
<div className="title-container">
|
||||||
<p className="title-text">
|
<img className="logo-img" src="/logo-full.png" alt="" />
|
||||||
<span className="icon-text">✍️</span> Memos
|
|
||||||
</p>
|
|
||||||
<GitHubBadge />
|
|
||||||
</div>
|
</div>
|
||||||
<p className="slogan-text">{t("slogan")}</p>
|
<p className="slogan-text">{t("slogan")}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -141,21 +139,17 @@ const Auth: React.FC<Props> = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="action-btns-container">
|
<div className="action-btns-container">
|
||||||
{siteHost || pageLoadingState.isLoading ? (
|
<Only when={!pageLoadingState.isLoading}>
|
||||||
<button
|
<button
|
||||||
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
|
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
|
||||||
onClick={() => handleSigninBtnsClick()}
|
onClick={() => (siteHost ? handleSigninBtnsClick() : handleSigninBtnsClick())}
|
||||||
>
|
>
|
||||||
{t("common.sign-in")}
|
<Only when={actionBtnLoadingState.isLoading}>
|
||||||
|
<Icon.Loader className="img-icon" />
|
||||||
|
</Only>
|
||||||
|
{siteHost ? t("common.sign-in") : t("auth.signup-as-host")}
|
||||||
</button>
|
</button>
|
||||||
) : (
|
</Only>
|
||||||
<button
|
|
||||||
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
|
|
||||||
onClick={() => handleSignUpAsHostBtnsClick()}
|
|
||||||
>
|
|
||||||
{t("auth.signup-as-host")}
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<p className={`tip-text ${siteHost || pageLoadingState.isLoading ? "" : "host-tip"}`}>
|
<p className={`tip-text ${siteHost || pageLoadingState.isLoading ? "" : "host-tip"}`}>
|
||||||
{siteHost || pageLoadingState.isLoading ? t("auth.not-host-tip") : t("auth.host-tip")}
|
{siteHost || pageLoadingState.isLoading ? t("auth.not-host-tip") : t("auth.host-tip")}
|
||||||
|
Reference in New Issue
Block a user