Skip to content

Commit

Permalink
chore: replace refine logos with CDN hosted files (refinedev#3159)
Browse files Browse the repository at this point in the history
* fix(chakra-ui): fix vite error in sider

* fix(chakra-ui): update logo link

* fix(mantine): update ready page logo

* fix(mui): remove svg icon usage

* chore: remove unused svgs

* chore: add changesets

* chore: get refine logo from cdn instead of importing it (refinedev#3158)

* fix(sider): add collapsed logo max height

* fix(antd): sider collapsed icon alignment

* fix(chakra-ui): avoid title collapse/full jump

* chore(antd): remove collapsed svg

* fix: update collapsed refine logos

* chore: update changeset

Co-authored-by: Alican Erdurmaz <[email protected]>
  • Loading branch information
aliemir and alicanerdurmaz authored Dec 8, 2022
1 parent c558fb4 commit af2eefb
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 81 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-trees-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-antd": minor
---

Updated `LoginPage` and `ReadyPage` to use **refine** logos from CDN rather than bundled svg files.
5 changes: 5 additions & 0 deletions .changeset/rare-zebras-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-chakra-ui": minor
---

Updated `LoginPage` and `ReadyPage` to use **refine** logos from CDN rather than bundled svg files.
5 changes: 5 additions & 0 deletions .changeset/shiny-badgers-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-mantine": minor
---

Updated `LoginPage` and `ReadyPage` to use **refine** logos from CDN rather than bundled svg files.
5 changes: 5 additions & 0 deletions .changeset/violet-kangaroos-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-mui": minor
---

Updated `LoginPage` and `ReadyPage` to use **refine** logos from CDN rather than bundled svg files.
3 changes: 0 additions & 3 deletions packages/antd/src/assets/images/refine-collapsed.svg

This file was deleted.

10 changes: 0 additions & 10 deletions packages/antd/src/assets/images/refine.svg

This file was deleted.

17 changes: 12 additions & 5 deletions packages/antd/src/components/layout/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ export const Title: React.FC<TitleProps> = ({ collapsed }) => {
return (
<Link to="/">
{collapsed ? (
<img
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine-collapsed.svg"
alt="Refine"
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
padding: "12px 24px",
}}
/>
>
<img
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine-mini.svg"
alt="Refine"
style={{
margin: "0 auto",
padding: "12px 0",
maxHeight: "65.5px",
}}
/>
</div>
) : (
<img
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg"
Expand Down
6 changes: 4 additions & 2 deletions packages/antd/src/components/pages/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
titleStyles,
imageContainer,
} from "./styles";
import logo from "../../../assets/images/refine.svg";

const { Text, Title } = Typography;
export interface ILoginForm {
Expand Down Expand Up @@ -58,7 +57,10 @@ export const LoginPage: React.FC<LoginPageProps> = () => {
<Col xs={22}>
<div style={containerStyles}>
<div style={imageContainer}>
<img src={logo} alt="Refine Logo" />
<img
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg"
alt="Refine Logo"
/>
</div>
<Card title={CardTitle} headStyle={{ borderBottom: 0 }}>
<Form<ILoginForm>
Expand Down
4 changes: 1 addition & 3 deletions packages/antd/src/components/pages/ready/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { RefineReadyPageProps } from "@pankod/refine-ui-types";
import { Row, Col, Typography, Space, Button } from "antd";
import { ReadOutlined, FolderOutlined, TeamOutlined } from "@ant-design/icons";

import logo from "../../../assets/images/refine.svg";

const styles: { [key: string]: React.CSSProperties } = {
root: {
height: "100vh",
Expand Down Expand Up @@ -48,7 +46,7 @@ export const ReadyPage: React.FC<RefineReadyPageProps> = () => {
<Col style={{ textAlign: "center" }}>
<img
style={{ marginBottom: "48px" }}
src={logo}
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg"
alt="Refine Logo"
/>
<Title style={styles.title}>Welcome on board</Title>
Expand Down
4 changes: 0 additions & 4 deletions packages/chakra-ui/src/assets/images/refine-collapsed.svg

This file was deleted.

Loading

0 comments on commit af2eefb

Please sign in to comment.