Skip to content

Commit 53123eb

Browse files
committed
Improve UI
1 parent 3c5407d commit 53123eb

File tree

10 files changed

+37
-34
lines changed

10 files changed

+37
-34
lines changed

web/components/home/home.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function LoggedOutHome() {
6565
className="text-2xl font-bold text-center">
6666
Find people who share your values, not just your photos.
6767
</h3>
68-
<div className="w-full bg-gray-50 dark:bg-gray-950 py-8 mt-20">
68+
<div className="w-full py-8 mt-20">
6969
<div className="max-w-6xl mx-auto px-4">
7070
<div className="grid md:grid-cols-3 gap-8 text-center">
7171
<AboutBox title="Radically Transparent" text="No algorithms. Every profile searchable."/>
@@ -74,6 +74,7 @@ export function LoggedOutHome() {
7474
</div>
7575
</div>
7676
</div>
77+
<div className="block lg:hidden h-12"></div>
7778
</>
7879
);
7980
}

web/components/love-page.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function LovePage(props: {
6262
<Col
6363
className={clsx(
6464
'pb-[58px] lg:pb-0', // bottom bar padding
65-
'text-ink-1000 mx-auto min-h-screen w-full max-w-[1440px] lg:grid lg:grid-cols-12'
65+
'text-ink-1000 mx-auto min-h-screen w-full lg:grid lg:grid-cols-12'
6666
)}
6767
>
6868
<Toaster
@@ -74,13 +74,13 @@ export function LovePage(props: {
7474
) : (
7575
<Sidebar
7676
navigationOptions={desktopSidebarOptions}
77-
className="sticky top-0 hidden self-start px-2 lg:col-span-2 lg:flex sidebar-nav"
78-
/>
77+
className="sticky top-0 hidden self-start px-2 lg:col-span-2 lg:flex sidebar-nav bg-canvas-25"
78+
/>
7979
)}
8080
<main
8181
className={clsx(
8282
'flex flex-1 flex-col lg:mt-6 xl:px-2',
83-
'col-span-10',
83+
'col-span-8',
8484
className
8585
)}
8686
>
@@ -100,8 +100,7 @@ export function LovePage(props: {
100100
const Profiles = { name: 'Profiles', href: '/', icon: SolidHomeIcon };
101101
const ProfilesHome = { name: 'Profiles', href: '/', icon: HomeIcon };
102102
const faq = { name: 'FAQ', href: '/faq', icon: SolidQuestionIcon };
103-
const About = { name: 'About', href: '/about', icon: SolidQuestionIcon };
104-
const AboutQuestionMark = { name: 'About', href: '/about', icon: QuestionMarkCircleIcon };
103+
const About = { name: 'About', href: '/about', icon: QuestionMarkCircleIcon };
105104
const Signin = { name: 'Sign in', href: '/signin', icon: UserCircleIcon };
106105
const Notifs = {name: 'Notifs', href: `/notifications`, icon: NotificationsIcon};
107106
const NotifsSolid = {name: 'Notifs', href: `/notifications`, icon: SolidNotificationsIcon};
@@ -138,21 +137,21 @@ const getDesktopNav = (user: User | null | undefined) => {
138137
ProfilesHome,
139138
Notifs,
140139
Messages,
141-
AboutQuestionMark,
140+
About,
142141
faq
143142
)
144143

145144
return buildArray(
146145
// { name: 'Profiles', href: '/', icon: HomeIcon },
147-
AboutQuestionMark,
146+
About,
148147
faq
149148
)
150149
}
151150

152151
// No sidebar when signed out
153152
const getSidebarNavigation = (_toggleModal: () => void) => {
154153
return buildArray(
155-
AboutQuestionMark,
154+
About,
156155
faq
157156
)
158157
}

web/components/markdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export default function MarkdownPage({content, filename}: Props) {
2929
return (
3030
<LovePage trackPageView={filename} className={'col-span-8'}>
3131
<Col className="items-center">
32-
<Col className='bg-canvas-0 w-full rounded px-3 py-4 sm:px-6 space-y-4 customlink'>
32+
<Col className='w-full rounded px-3 py-4 sm:px-6 space-y-4 customlink'>
3333
<ReactMarkdown
3434
components={{
35-
a: ({node, ...props}) => <MarkdownLink {...props} />
35+
a: ({node, children, ...props}) => <MarkdownLink {...props}>{children}</MarkdownLink>
3636
}}
3737
>{content}
3838
</ReactMarkdown>

web/components/nav/love-bottom-nav-bar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function BottomNavBar(props: {
3838
}
3939

4040
return (
41-
<nav className="border-ink-200 dark:border-ink-300 text-ink-700 bg-canvas-0 fixed inset-x-0 bottom-0 z-50 flex select-none items-center justify-between border-t-2 text-xs lg:hidden sidebar-nav">
41+
<nav className="border-ink-200 dark:border-ink-300 text-ink-700 bg-canvas-50 fixed inset-x-0 bottom-0 z-50 flex select-none items-center justify-between border-t-2 text-xs lg:hidden sidebar-nav">
4242
{navigationOptions.map((item) => (
4343
<NavBarItem
4444
key={item.name}
@@ -206,7 +206,7 @@ export function MobileSidebar(props: {
206206
leaveFrom="translate-x-0"
207207
leaveTo="-translate-x-full"
208208
>
209-
<div className="bg-canvas-0 relative flex w-full max-w-xs flex-1 flex-col">
209+
<div className="bg-canvas-25 relative flex w-full max-w-xs flex-1 flex-col">
210210
<div className="mx-2 h-0 flex-1 overflow-y-auto">
211211
<Sidebar
212212
navigationOptions={sidebarNavigationOptions}

web/components/profile-grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ function ProfilePreview(props: {
8484
<Link
8585
onClick={() => track('click love profile preview')}
8686
href={`/${user.username}`}
87-
className="cursor-pointer group block dark:bg-gray-800 rounded-lg overflow-hidden shadow hover:shadow-md transition-shadow duration-200 h-full"
87+
className="cursor-pointer group block bg-canvas-100 rounded-lg overflow-hidden shadow hover:shadow-md transition-shadow duration-200 h-full"
8888
>
8989
<Col
90-
className="relative h-40 w-full overflow-hidden rounded text-white transition-all hover:scale-y-105 hover:drop-shadow">
90+
className="relative h-40 w-full overflow-hidden rounded transition-all hover:scale-y-105 hover:drop-shadow">
9191
{/*{pinned_url ? (*/}
9292
{/* <Image*/}
9393
{/* src={pinned_url}*/}

web/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Document() {
99
<link rel="icon" href={ENV_CONFIG.faviconPath} />
1010
<Script src="/init-theme.js" strategy="beforeInteractive" />
1111
</Head>
12-
<body className="bg-canvas-50 text-ink-1000">
12+
<body className="bg-canvas-0 text-ink-1000">
1313
<Main />
1414
<NextScript />
1515
</body>

web/pages/about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const AboutBlock = (props: {
1717
export default function About() {
1818
return (
1919
<LovePage trackPageView={'about'}>
20-
<div className="bg-canvas-0 text-gray-600 dark:text-white min-h-screen p-6">
20+
<div className="text-gray-600 dark:text-white min-h-screen p-6">
2121
<div className="w-full">
2222
<div className="relative py-8 mb-8 overflow-hidden">
2323
<div className="relative z-10 max-w-3xl mx-auto px-4">

web/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function ProfilesPage() {
1212
return (
1313
<LovePage trackPageView={'user profiles'}>
1414
<Col className="items-center">
15-
<Col className={'bg-canvas-0 w-full rounded px-3 py-4 sm:px-6'}>
15+
<Col className={'w-full rounded px-3 py-4 sm:px-6'}>
1616
{user ? <ProfilesHome/> : <LoggedOutHome/>}
1717
</Col>
1818
</Col>

web/styles/globals.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737

3838
/* Background / Canvas Grey Scale */
3939
--color-canvas-0: 255 255 255; /* white */
40+
--color-canvas-25: 245 245 245;
4041
--color-canvas-50: 245 245 245;
41-
--color-canvas-100: 230 230 230;
42+
--color-canvas-100: 245 245 245;
4243
--color-canvas-200: 210 210 210;
4344
--color-canvas-300: 190 190 190;
4445
--color-canvas-400: 160 160 160;
@@ -109,9 +110,10 @@
109110
--color-ink-50: 17 17 17; /* #111111 */
110111
--color-ink-0: 0 0 0; /* black */
111112

112-
--color-canvas-0: 32 30 37;
113-
--color-canvas-50: 22 20 25;
114-
--color-canvas-100: 46 41 51;
113+
--color-canvas-25: 0 0 0;
114+
--color-canvas-0: 20 20 20;
115+
--color-canvas-50: 20 20 20;
116+
--color-canvas-100: 40 40 40;
115117

116118
--color-primary-950: 239 246 255; /* very light blue */
117119
--color-primary-900: 219 234 254; /* light blue */

web/tailwind.config.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ module.exports = {
310310
},
311311
canvas: {
312312
0: 'rgb(var(--color-canvas-0) / <alpha-value>)',
313+
25: 'rgb(var(--color-canvas-25) / <alpha-value>)',
313314
50: 'rgb(var(--color-canvas-50) / <alpha-value>)',
314315
100: 'rgb(var(--color-canvas-100) / <alpha-value>)',
315316
},
@@ -328,17 +329,17 @@ module.exports = {
328329
950: 'rgb(var(--color-primary-950) / <alpha-value>)',
329330
},
330331
gray: {
331-
50: 'hsl(240, 40%, 98%)',
332-
100: 'hsl(235, 46%, 95%)',
333-
200: 'hsl(236, 33%, 90%)',
334-
300: 'hsl(238, 26%, 81%)',
335-
400: 'hsl(238, 19%, 68%)',
336-
500: 'hsl(240, 12%, 52%)',
337-
600: 'hsl(240, 16%, 40%)',
338-
700: 'hsl(240, 20%, 30%)',
339-
800: 'hsl(240, 30%, 22%)',
340-
900: 'hsl(242, 45%, 15%)',
341-
950: 'hsl(264,11%,9%)',
332+
50: 'hsl(0, 0%, 95%)',
333+
100: 'hsl(0, 0%, 90%)',
334+
200: 'hsl(0, 0%, 80%)',
335+
300: 'hsl(0, 0%, 70%)',
336+
400: 'hsl(0, 0%, 60%)',
337+
500: 'hsl(0, 0%, 50%)',
338+
600: 'hsl(0, 0%, 40%)',
339+
700: 'hsl(0, 0%, 30%)',
340+
800: 'hsl(0, 0%, 20%)',
341+
900: 'hsl(0,0%,10%)',
342+
950: 'hsl(0,0%,5%)',
342343
},
343344
warning: '#F0D630',
344345
error: '#E70D3D',

0 commit comments

Comments
 (0)