Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate background images to fix improve performance on larger displays #10

Merged
merged 3 commits into from
Feb 26, 2023
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 apps/web/docs/getting-started/create-a-interprocess.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ order: 3

# Create a interprocess

Let's build something simple that can show you some of the interprocess's power!
Let's build something simple that can show you some of the interprocess' power!

<br />

Expand Down
2 changes: 1 addition & 1 deletion apps/web/docs/getting-started/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Features:
<br />

- 🚀 Best-in-class DX with a fully-typed API
- 🧠 Enchanced and consistent API
- 🧠 Enhanced and consistent API
- 🔥 Type-safe and scalable
- 🪄 Code splitting support
- 🕸️ All edges connected (APIs to handle all processes)
Expand Down
211 changes: 0 additions & 211 deletions apps/web/public/background.svg

This file was deleted.

Binary file added apps/web/public/blur.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/web/public/pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion apps/web/src/components/CodeEditorPresenter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
import React, { useCallback, useEffect, useRef, useState } from 'react'
import ScrollableContainer from 'react-indiana-drag-scroll'

import { getPublicPath } from 'shared/utils'
import { codes, tabs } from 'shared/constants'

import { Button, CodeSandboxIcon, FileIcon, Separator } from 'components'
Expand Down
10 changes: 6 additions & 4 deletions apps/web/src/components/Layout/Background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export const Background = styled('div', {
left: 0,
width: '100%',
height: '100%',
backgroundImage: `url("${getPublicPath('/background.svg')}")`,
backgroundRepeat: 'no-repeat',
backgroundSize: '300%',
backgroundPosition: 'top center',
backgroundImage: `url("${getPublicPath(
'/pattern.svg'
)}"), url(${getPublicPath('/blur.jpg')})`,
backgroundRepeat: 'repeat, no-repeat',
backgroundSize: '30%, 200%',
backgroundPosition: 'top center, center center',
zIndex: -1,
position: 'fixed',
overflowX: 'hidden',
Expand Down