Skip to content

Commit

Permalink
fix: 💄 Correção do background do Loading Componente
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellington Braga committed Mar 14, 2024
1 parent 8d9eeed commit 38262f2
Show file tree
Hide file tree
Showing 10 changed files with 893 additions and 893 deletions.
Binary file added public/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 18 additions & 18 deletions src/app/(app)/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { LoginMobile, Logo } from "@/screens/login/styles";
import Image from "next/image";

export default function Loading() {
// You can add any UI inside Loading, including a Skeleton.
return (
<LoginMobile>
<Logo>
<Image
width={120}
height={120}
alt="Services logo"
src="/android-chrome-512x512.png"
/>
</Logo>
</LoginMobile>
);
}
"use client";

import { PageContainer } from "@/styles";
import Image from "next/image";

export default function Loading() {
// You can add any UI inside Loading, including a Skeleton.
return (
<PageContainer>
<Image
width={120}
height={120}
alt="Services logo"
src="/Icon.png"
/>
</PageContainer>
);
}
20 changes: 20 additions & 0 deletions src/assets/Icons/EmptyBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { IconProps } from "..";

export const EmptyBox = ({
color,
height = 32,
width = 32,
size
}: IconProps) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
width={size || width}
height={size || height}
viewBox="0 0 24 24">
<path d="M 5.75 3 A 1.0001 1.0001 0 0 0 4.8867188 3.4960938 L 3.1425781 6.4863281 L 3.1367188 6.4960938 L 0.14257812 11.486328 L 1.8574219 12.513672 L 3 10.609375 L 3 19 C 3 20.093063 3.9069372 21 5 21 L 19 21 C 20.093063 21 21 20.093063 21 19 L 21 10.609375 L 22.142578 12.513672 L 23.857422 11.486328 L 20.876953 6.5214844 A 1.0001 1.0001 0 0 0 20.863281 6.4960938 L 19.113281 3.4960938 A 1.0001 1.0001 0 0 0 18.25 3 L 5.75 3 z M 6.3242188 5 L 17.675781 5 L 18.841797 7 L 5.1582031 7 L 6.3242188 5 z M 5 9 L 19 9 L 19 19 L 5 19 L 5 9 z M 9 11 L 9 13 L 15 13 L 15 11 L 9 11 z"></path>
</svg>
);
};
1,181 changes: 581 additions & 600 deletions src/assets/Icons/index.tsx

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/assets/Images/fcLogoRed.svg

This file was deleted.

9 changes: 6 additions & 3 deletions src/components/NoContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"use client";

import { NoContentProps } from "@/types";
import EmptyBox from "@/assets/Images/EmptyBox.png";

import { NoContentContainer, NoContentTitle } from "./styles";
import Image from "next/image";
import { useTheme } from "styled-components";
import { EmptyBox } from "@/assets";

export const NoContent = ({
title,
Expand All @@ -16,11 +17,13 @@ export const NoContent = ({
const theme = useTheme();
return (
<NoContentContainer>
{typeof icon === "string" || typeof icon === "undefined" ? (
{typeof icon === "string" ? (
<Image
src={icon || EmptyBox}
src={icon}
alt={alt || "caixa vazia"}
/>
) : typeof icon === "undefined" ? (
<EmptyBox size={92} />
) : (
icon
)}
Expand Down
5 changes: 2 additions & 3 deletions src/components/NoContent/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ export const NoContentContainer = styled.div`
`;

export const NoContentTitle = styled.h1<NoContentProps>`
font-size: ${({ fontSize }) => fontSize || "24px"};
font-size: ${({ fontSize }) => fontSize || "1.5rem"};
font-weight: 600;
line-height: 29px;
letter-spacing: -0.005em;
line-height: 132%;
line-height: 108%;
text-align: center;
word-wrap: break-word;
color: ${({ color }) => color ?? "#494949"};
Expand Down
2 changes: 1 addition & 1 deletion src/screens/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Homepage = () => {
<NoContent
alt="caixa vazia"
title="Não há chamados no momento."
color={theme.colors.neutral["55"]}
color={theme.colors.neutral["5"]}
/>
)}
</MainContainer>
Expand Down
Loading

0 comments on commit 38262f2

Please sign in to comment.