Commit 93b6a910 authored by Steven's avatar Steven

chore: update logo resources

parent 8d161b45
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="0.1em" y=".9em" font-size="90">✍️</text></svg>
\ No newline at end of file
web/public/logo.png

26.7 KB | W: | H:

web/public/logo.png

156 KB | W: | H:

web/public/logo.png
web/public/logo.png
web/public/logo.png
web/public/logo.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -13,14 +13,10 @@
@apply flex flex-col justify-start items-start w-full mb-4;
> .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 {
@apply text-2xl mb-2;
> .icon-text {
@apply text-4xl;
}
> .logo-img {
@apply h-16 w-auto;
}
}
......@@ -61,7 +57,7 @@
@apply flex flex-row justify-end items-center w-full mt-2;
> .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 {
@apply bg-green-600 text-white px-3 shadow;
......@@ -70,6 +66,10 @@
&.requesting {
@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 useLoading from "../hooks/useLoading";
import { globalService, locationService, userService } from "../services";
import Icon from "../components/Icon";
import Only from "../components/common/OnlyWhen";
import toastHelper from "../components/Toast";
import GitHubBadge from "../components/GitHubBadge";
import "../less/auth.less";
interface Props {}
......@@ -123,10 +124,7 @@ const Auth: React.FC<Props> = () => {
<div className="auth-form-wrapper">
<div className="page-header-container">
<div className="title-container">
<p className="title-text">
<span className="icon-text">✍️</span> Memos
</p>
<GitHubBadge />
<img className="logo-img" src="/logo-full.png" alt="" />
</div>
<p className="slogan-text">{t("slogan")}</p>
</div>
......@@ -141,21 +139,17 @@ const Auth: React.FC<Props> = () => {
</div>
</div>
<div className="action-btns-container">
{siteHost || pageLoadingState.isLoading ? (
<Only when={!pageLoadingState.isLoading}>
<button
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
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
onClick={() => handleSignUpAsHostBtnsClick()}
>
{t("auth.signup-as-host")}
</button>
)}
</Only>
</div>
<p className={`tip-text ${siteHost || pageLoadingState.isLoading ? "" : "host-tip"}`}>
{siteHost || pageLoadingState.isLoading ? t("auth.not-host-tip") : t("auth.host-tip")}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment