design: tweak theming and remove questionable text in sign up page
This commit is contained in:
1 parent
4c8bbe4e64
commit
32c4a060a1
10 files changed
+103
-93
No files matched your search
@@ -39,6 +39,28 @@
|
||||
|
||||
<div class="shell {$$props.class}" style={colorsToVars($colors)}>
|
||||
<slot />
|
||||
<div
|
||||
class="
|
||||
{$userSettings.dock.noGap ? '' : 'p-4 max-w-3xl left-1/2 -translate-x-1/2'}
|
||||
{$userSettings.dock.top ? 'top-0' : 'bottom-0'}
|
||||
w-full fixed z-50 pointer-events-none"
|
||||
style="grid-area: navbar;"
|
||||
>
|
||||
<slot
|
||||
name="navbar"
|
||||
class="
|
||||
{$userSettings.dock.noGap
|
||||
? $userSettings.dock.top
|
||||
? 'border-b shadow-none'
|
||||
: 'border-t'
|
||||
: 'border rounded-full'}
|
||||
border-slate-200 dark:border-zinc-800 shadow-2xl
|
||||
backdrop-blur-xl dark:backdrop-brightness-[25%] bg-[#ffffff]/75 dark:bg-transparent transition-colors duration-500
|
||||
pointer-events-auto"
|
||||
style="grid-area: navbar"
|
||||
{title}
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="content md:divide-x divide-slate-200 dark:divide-zinc-900 min-h-screen {$userSettings.newWidth
|
||||
? 'limit-width'
|
||||
@@ -63,28 +85,6 @@
|
||||
style="grid-area: suffix;"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="
|
||||
{$userSettings.dock.noGap ? '' : 'p-4 max-w-3xl left-1/2 -translate-x-1/2'}
|
||||
{$userSettings.dock.top ? 'top-0' : 'bottom-0'}
|
||||
w-full fixed z-50 pointer-events-none"
|
||||
style="grid-area: navbar;"
|
||||
>
|
||||
<slot
|
||||
name="navbar"
|
||||
class="
|
||||
{$userSettings.dock.noGap
|
||||
? $userSettings.dock.top
|
||||
? 'border-b shadow-none'
|
||||
: 'border-t'
|
||||
: 'border rounded-full'}
|
||||
border-slate-200 dark:border-zinc-800 shadow-2xl
|
||||
backdrop-blur-xl dark:backdrop-brightness-[25%] bg-[#ffffff]/75 dark:bg-transparent transition-colors duration-500
|
||||
pointer-events-auto"
|
||||
style="grid-area: navbar"
|
||||
{title}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
InformationCircle,
|
||||
Moon,
|
||||
Sun,
|
||||
Swatch,
|
||||
UserCircle,
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
@@ -100,12 +101,7 @@
|
||||
<Icon src={Cog6Tooth} mini width={16} slot="prefix" />
|
||||
Settings
|
||||
</MenuButton>
|
||||
<MenuButton
|
||||
class="!py-0"
|
||||
on:click={() => {
|
||||
goto('/theme')
|
||||
}}
|
||||
>
|
||||
<MenuButton class="!py-0">
|
||||
<Icon
|
||||
src={$legacyTheme == 'system'
|
||||
? ComputerDesktop
|
||||
@@ -129,6 +125,10 @@
|
||||
</Select>
|
||||
</div>
|
||||
</MenuButton>
|
||||
<MenuButton href="/theme">
|
||||
<Icon src={Swatch} size="16" mini slot="prefix" />
|
||||
Theme
|
||||
</MenuButton>
|
||||
{#if $userSettings.debugInfo}
|
||||
<MenuButton link href="/util">
|
||||
<Icon src={BugAnt} mini width={16} slot="prefix" />
|
||||
|
||||
+10
-28
@@ -26,15 +26,11 @@ interface Settings {
|
||||
expandableImages: boolean
|
||||
// should have been named "fade" read posts
|
||||
markReadPosts: boolean
|
||||
// ???
|
||||
instance?: string
|
||||
showInstances: {
|
||||
user: boolean
|
||||
community: boolean
|
||||
comments: boolean
|
||||
}
|
||||
// deprecated
|
||||
showCompactPosts: boolean
|
||||
|
||||
view: View
|
||||
|
||||
@@ -49,18 +45,11 @@ interface Settings {
|
||||
}
|
||||
expandSidebar: boolean
|
||||
expandCommunities: boolean
|
||||
notifications: {
|
||||
enabled: boolean
|
||||
pollRate: number
|
||||
// how often to check in the background
|
||||
notifRate: number
|
||||
}
|
||||
displayNames: boolean
|
||||
nsfwBlur: boolean
|
||||
moderation: {
|
||||
presets: Preset[]
|
||||
}
|
||||
newVote: boolean
|
||||
randomPlaceholders: boolean
|
||||
modlogCardView: boolean | undefined
|
||||
debugInfo: boolean
|
||||
@@ -72,7 +61,6 @@ interface Settings {
|
||||
|
||||
newWidth: boolean
|
||||
markPostsAsRead: boolean
|
||||
separateVotes: boolean
|
||||
|
||||
openLinksInNewTab: boolean
|
||||
crosspostOriginalLink: boolean
|
||||
@@ -98,7 +86,6 @@ export const defaultSettings: Settings = {
|
||||
community: toBool(env.PUBLIC_SHOW_INSTANCES_COMMUNITY) ?? true,
|
||||
comments: toBool(env.PUBLIC_SHOW_INSTANCES_COMMENTS) ?? true,
|
||||
},
|
||||
showCompactPosts: toBool(env.PUBLIC_SHOW_COMPACT_POSTS) ?? true,
|
||||
defaultSort: {
|
||||
sort: env.PUBLIC_DEFAULT_FEED_SORT ?? ('Active' as any),
|
||||
feed: env.PUBLIC_DEFAULT_FEED ?? ('Local' as any),
|
||||
@@ -109,12 +96,7 @@ export const defaultSettings: Settings = {
|
||||
removed: toBool(env.PUBLIC_HIDE_REMOVED) ?? false,
|
||||
},
|
||||
expandSidebar: toBool(env.PUBLIC_EXPAND_SIDEBAR) ?? true,
|
||||
expandCommunities: true,
|
||||
notifications: {
|
||||
enabled: false,
|
||||
pollRate: 60 * 1000,
|
||||
notifRate: 10 * 60 * 1000,
|
||||
},
|
||||
expandCommunities: toBool(env.PUBLIC_EXPAND_COMMUNITIES) ?? true,
|
||||
displayNames: toBool(env.PUBLIC_DISPLAY_NAMES) ?? true,
|
||||
nsfwBlur: toBool(env.PUBLIC_NSFW_BLUR) ?? true,
|
||||
moderation: {
|
||||
@@ -125,18 +107,18 @@ export const defaultSettings: Settings = {
|
||||
},
|
||||
],
|
||||
},
|
||||
newVote: toBool(env.PUBLIC_NEW_VOTE_BUTTONS) ?? false,
|
||||
randomPlaceholders: toBool(env.PUBLIC_RANDOM_PLACEHOLDERS) ?? true,
|
||||
modlogCardView: toBool(env.PUBLIC_MODLOG_CARD_VIEW) ?? undefined,
|
||||
debugInfo: false,
|
||||
expandImages: true,
|
||||
view: 'cozy',
|
||||
font: 'inter',
|
||||
leftAlign: false,
|
||||
debugInfo: toBool(env.PUBLIC_DEBUG_INFO) ?? false,
|
||||
expandImages: toBool(env.PUBLIC_EXPAND_IMAGES) ?? true,
|
||||
// @ts-ignore
|
||||
view: env.PUBLIC_VIEW ?? 'cozy',
|
||||
// @ts-ignore
|
||||
font: env.PUBLIC_FONT ?? 'inter',
|
||||
leftAlign: toBool(env.PUBLIC_LEFT_ALIGN) ?? false,
|
||||
hidePhoton: toBool(env.PUBLIC_REMOVE_CREDIT) ?? false,
|
||||
newWidth: true,
|
||||
markPostsAsRead: true,
|
||||
separateVotes: false,
|
||||
newWidth: toBool(env.PUBLIC_LIMIT_LAYOUT_WIDTH) ?? true,
|
||||
markPostsAsRead: toBool(env.PUBLIC_MARK_POSTS_AS_READ) ?? true,
|
||||
openLinksInNewTab: false,
|
||||
crosspostOriginalLink: true,
|
||||
embeds: {
|
||||
|
||||
@@ -68,7 +68,7 @@ export interface Colors {
|
||||
|
||||
export const defaultColors = {
|
||||
slate: {
|
||||
25: 'var(--c-s-25,#fcfdfe)',
|
||||
25: `var(--c-s-25,#fcfdfe)`,
|
||||
50: `var(--c-s-50,#f8fafc)`,
|
||||
100: `var(--c-s-100,#f1f5f9)`,
|
||||
200: `var(--c-s-200,#e2e8f0)`,
|
||||
|
||||
Reference in new issue
Block a user