Add almost complete new stars theme.
This commit is contained in:
parent
d0acf2fe7a
commit
b71fb9f04a
BIN
backend/assets/images/themes/star-satellites.png
Normal file
BIN
backend/assets/images/themes/star-satellites.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
@ -29,7 +29,7 @@ const MessageContent: FunctionComponent<MessageContentProps> = ({ message }) =>
|
|||||||
{message.attachmentURLs?.map(imageURL =>
|
{message.attachmentURLs?.map(imageURL =>
|
||||||
<img
|
<img
|
||||||
key={imageURL}
|
key={imageURL}
|
||||||
style={{ maxWidth: '384px' }}
|
style={{ maxWidth: '384px', maxHeight: '384px' }}
|
||||||
className="my-2 cursor-pointer"
|
className="my-2 cursor-pointer"
|
||||||
onClick={() => dispatch(previewImage(imageURL))}
|
onClick={() => dispatch(previewImage(imageURL))}
|
||||||
src={process.env.REACT_APP_CDN_URL + imageURL}
|
src={process.env.REACT_APP_CDN_URL + imageURL}
|
||||||
|
@ -165,16 +165,19 @@ const UserSettingsThemes: React.FunctionComponent = () => {
|
|||||||
register={register}
|
register={register}
|
||||||
options={{ value: theme.name }} />
|
options={{ value: theme.name }} />
|
||||||
|
|
||||||
<div className="mt-8 bg-bg-secondary w-1/2 h-10 rounded-md p-2">
|
<div className="bg-bg-secondary w-1/2 h-10 rounded-md p-2">
|
||||||
<CircleButton
|
<label className="uppercase text-xs font-semibold">Share URL</label>
|
||||||
role="button"
|
<div className='mt-1.5'>
|
||||||
style={{ color: 'var(--font)', borderColor: 'var(--font)' }}
|
<CircleButton
|
||||||
onClick={copyCode}
|
role="button"
|
||||||
className="float-right py-0">Copy</CircleButton>
|
style={{ color: 'var(--font)', borderColor: 'var(--font)' }}
|
||||||
<span className="text-lg">
|
onClick={copyCode}
|
||||||
<span className='muted'>{shortURL + '/themes/'}</span>
|
className="float-right py-0">Copy</CircleButton>
|
||||||
<span className='primary'>{theme?.code}</span>
|
<span className="text-lg">
|
||||||
</span>
|
<span className='text-base muted'>{shortURL + '/themes/'}</span>
|
||||||
|
<span className='text-base primary'>{theme?.code}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* <Input
|
{/* <Input
|
||||||
disabled
|
disabled
|
||||||
|
@ -32,7 +32,7 @@ const UserSettings: React.FunctionComponent = () => {
|
|||||||
tabs={[
|
tabs={[
|
||||||
{ name: 'Overview', id: 'overview' },
|
{ name: 'Overview', id: 'overview' },
|
||||||
{ name: 'Security', id: 'security' },
|
{ name: 'Security', id: 'security' },
|
||||||
{ name: <>Themes <NewBadge /></>, id: 'themes' },
|
{ name: 'Themes', id: 'themes' },
|
||||||
{ name: 'Advanced', id: 'advanced' },
|
{ name: 'Advanced', id: 'advanced' },
|
||||||
]} />
|
]} />
|
||||||
<div className="rounded-sm bg-bg-modifier-accent h-px w-42 my-2 mx-2.5 " />
|
<div className="rounded-sm bg-bg-modifier-accent h-px w-42 my-2 mx-2.5 " />
|
||||||
|
@ -28,7 +28,7 @@ const SidebarIcon: React.FunctionComponent<SidebarIconProps> = (props) => {
|
|||||||
|
|
||||||
const Icon = () => (imageURL)
|
const Icon = () => (imageURL)
|
||||||
? <Image
|
? <Image
|
||||||
className="h-12 w-12"
|
className="object-scale-down h-12 w-12"
|
||||||
src={imageURL}
|
src={imageURL}
|
||||||
alt={name} />
|
alt={name} />
|
||||||
: <span className="select-none flex items-center justify-center h-12 w-12">{getAbbr(name)}</span>;
|
: <span className="select-none flex items-center justify-center h-12 w-12">{getAbbr(name)}</span>;
|
||||||
|
@ -44,7 +44,7 @@ const slice = createSlice({
|
|||||||
code: 'new_stars',
|
code: 'new_stars',
|
||||||
createdAt: new Date('30/12/2021'),
|
createdAt: new Date('30/12/2021'),
|
||||||
creatorId: process.env.REACT_APP_OWNER_USER_ID,
|
creatorId: process.env.REACT_APP_OWNER_USER_ID,
|
||||||
iconURL: '/images/themes/.svg',
|
iconURL: '/images/themes/star-satellites.png',
|
||||||
isFeatured: true,
|
isFeatured: true,
|
||||||
name: 'New Stars (built-in)',
|
name: 'New Stars (built-in)',
|
||||||
styles: newStarsTheme,
|
styles: newStarsTheme,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* newstarsgame.com */
|
/* newstarsgame.com */
|
||||||
|
/* Icon: Star satellites icon - by Lorc under CC-BY-3.0 - https://game-icons.net */
|
||||||
:root {
|
:root {
|
||||||
--primary: yellow;
|
--primary: yellow;
|
||||||
--secondary: yellow;
|
--secondary: yellow;
|
||||||
@ -52,6 +53,7 @@ body {
|
|||||||
div.ReactModal__Content:not(.w-full),
|
div.ReactModal__Content:not(.w-full),
|
||||||
.sidebar-icons *,
|
.sidebar-icons *,
|
||||||
.context-menu,
|
.context-menu,
|
||||||
|
.input,
|
||||||
input,
|
input,
|
||||||
textarea,
|
textarea,
|
||||||
label+* {
|
label+* {
|
||||||
|
@ -47,6 +47,10 @@ textarea:focus {
|
|||||||
border: 1px solid var(--primary);
|
border: 1px solid var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.object-scale-down {
|
||||||
|
object-fit: scale-down;
|
||||||
|
}
|
||||||
|
|
||||||
/* Util */
|
/* Util */
|
||||||
.light {
|
.light {
|
||||||
color: var(--light);
|
color: var(--light);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user