-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds a fallback image that displays when the Three.js context fails to render.
- Loading branch information
1 parent
81f8381
commit 3e6af40
Showing
9 changed files
with
128 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/studiocms_auth/src/components/StudioCMSLogoSVG.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
import type { HTMLAttributes } from 'astro/types'; | ||
interface Props extends HTMLAttributes<'svg'> {} | ||
const { class: className } = Astro.props; | ||
--- | ||
|
||
<svg class:list={[className]} width="755" height="792" viewBox="0 0 755 792" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<rect x="295" width="460" height="466" rx="32" fill="currentColor"/> | ||
<path d="M272 434V166H180C162.327 166 148 180.327 148 198V597C148 614.673 162.327 629 180 629H577.5C595.173 629 609.5 614.673 609.5 597V490H328C297.072 490 272 464.928 272 434Z" fill="currentColor"/> | ||
<path d="M124 597V329H32C14.3269 329 0 343.327 0 361V760C0 777.673 14.3269 792 32 792H429.5C447.173 792 461.5 777.673 461.5 760V653H180C149.072 653 124 627.928 124 597Z" fill="currentColor"/> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import studiocmsBlobsDark from '../loginBackgrounds/studiocms-blobs-dark.png'; | ||
import studiocmsBlobsLight from '../loginBackgrounds/studiocms-blobs-light.png'; | ||
import studiocmsBlocksDark from '../loginBackgrounds/studiocms-blocks-dark.png'; | ||
import studiocmsBlocksLight from '../loginBackgrounds/studiocms-blocks-light.png'; | ||
import studiocmsCurvesDark from '../loginBackgrounds/studiocms-curves-dark.png'; | ||
import studiocmsCurvesLight from '../loginBackgrounds/studiocms-curves-light.png'; | ||
|
||
/** | ||
* The valid images that can be used as a background for the StudioCMS Logo. | ||
*/ | ||
const validImages = [ | ||
{ | ||
name: 'studiocms-blobs', | ||
format: 'png', | ||
light: studiocmsBlobsLight, | ||
dark: studiocmsBlobsDark, | ||
}, | ||
{ | ||
name: 'studiocms-blocks', | ||
format: 'png', | ||
light: studiocmsBlocksLight, | ||
dark: studiocmsBlocksDark, | ||
}, | ||
{ | ||
name: 'studiocms-curves', | ||
format: 'png', | ||
light: studiocmsCurvesLight, | ||
dark: studiocmsCurvesDark, | ||
}, | ||
{ | ||
name: 'custom', | ||
format: 'web', | ||
light: null, | ||
dark: null, | ||
}, | ||
] as const; | ||
|
||
export { validImages }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.