Skip to content
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
2 changes: 1 addition & 1 deletion src/app/auth/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const InfoColumn = () => {
bgcolor="#000"
color="#fff"
>
<SignInTexts />
<SignInTexts prefix={SITE_NAME} />
</Box>
)
}
Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.
9 changes: 6 additions & 3 deletions src/features/auth/view/SignInTexts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Box, Typography, SxProps } from "@mui/material"
import { useEffect, useState, useMemo } from "react"

const SignInTexts = () => {
const SignInTexts = ({ prefix }: { prefix: string }) => {
const getRandomTextColor = ({ excluding }: { excluding?: string }) => {
const colors = ["#01BBFE", "#00AE47", "#FCB23D"]
.filter(e => e !== excluding)
Expand Down Expand Up @@ -42,8 +42,9 @@ const SignInTexts = () => {
return (
<>
<Box sx={{ position: "relative" }}>
<Text text={longestText} sx={{ visibility: "hidden" }} />
<Text prefix={prefix} text={longestText} sx={{ visibility: "hidden" }} />
<Text
prefix={prefix}
text={displayedText}
textColor={textColor}
sx={{ position: "absolute", top: 0, left: 0, right: 0 }}
Expand All @@ -69,11 +70,13 @@ const SignInTexts = () => {
export default SignInTexts

const Text = ({
prefix,
text,
textColor,
children,
sx
}: {
prefix: string,
text: string,
textColor?: string,
children?: React.ReactNode,
Expand All @@ -85,7 +88,7 @@ const Text = ({
paddingLeft: { md: 5, lg: 10 },
paddingRight: { md: 5, lg: 10 }
}}>
Shape Docs <span style={{ color: textColor }}>{text}</span>
{prefix} <span style={{ color: textColor }}>{text}</span>
{children}
</Typography>
)
Expand Down