Skip to content

Commit 2f451a3

Browse files
Merge pull request #2 from TechInnovatorAI/new
New
2 parents 1dcd267 + 178bc50 commit 2f451a3

File tree

6 files changed

+44
-21
lines changed

6 files changed

+44
-21
lines changed

packages/guider/src/client/partials/header/header.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ export function HeaderInternal() {
4646
<header
4747
className={classNames(
4848
'gd-max-w-[1480px] gd-mx-auto',
49-
'gd-p-6 gd-pb-0 gd-border-b gd-border-line',
49+
'gd-py-3 gd-px-8 gd-border-b gd-border-line',
5050
isScrolledFromTop ? 'gd-bg-opacity-100' : 'gd-bg-opacity-0'
5151
)}
5252
>
5353
<div className="gd-fixed neato-guider-overlay gd-transition-opacity gd-duration-150 gd-opacity-0 gd-inset-0 gd-bg-gradient-to-b gd-from-black/80 gd-to-transparent gd-z-[60] gd-pointer-events-none" />
54-
<div className="gd-flex gd-justify-between gd-mb-6 gd-items-center">
54+
<div className="gd-flex gd-justify-between gd-items-center">
5555
<div>
5656
<GuiderLogo />
5757
</div>
5858
<HeaderSearch />
5959
<div className='gd-flex gd-items-center gd-space-x-6'>
60-
<h4 className='gd-text-sm'>Email Support</h4>
61-
<button className='gd-text-sm dark:gd-bg-transparent dark:gd-border dark:gd-border-[#2E5CFF] dark:gd-bg-[#0E1226] dark:gd-text-[#2E5CFF] gd-bg-[#2E5CFF] gd-text-white gd-py-1 gd-px-4 gd-rounded-full'>Polymarket</button>
60+
<h4 className='gd-text-sm gd-text-gray-600 gd-font-normal hover:gd-text-gray-900 gd-cursor-pointer'>Email Support</h4>
61+
<a href="https://polymarket.com" target={'_blank'} className='hover:gd-bg-[#426CFF] gd-flex gd-gap-2 gd-items-center gd-text-sm dark:gd-bg-transparent dark:gd-border dark:gd-border-[#2E5CFF] dark:gd-bg-[#0E1226] dark:gd-text-[#2E5CFF] gd-bg-[#2E5CFF] gd-text-white gd-py-1 gd-px-4 gd-rounded-full'>Polymarket <svg width="3" height="24" viewBox="0 -9 3 24" class="h-5 rotate-0 overflow-visible text-white/90 dark:text-primary-light"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></a>
6262
{isDark ?
63-
<Moon onClick={() => setIsDark(false)} /> :
64-
<Sun onClick={() => setIsDark(true)} />
63+
<Moon onClick={() => setIsDark(false)} className='gd-cursor-pointer gd-w-5 gd-opacity-50 hover:gd-opacity-100'/> :
64+
<Sun onClick={() => setIsDark(true)} className='gd-cursor-pointer gd-w-5 gd-opacity-50 hover:gd-opacity-100'/>
6565
}
6666
</div>
6767
<div className="gd-flex md:gd-hidden gd-items-center">

packages/guider/src/client/partials/header/search/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function SearchButton(props: { onClick?: () => void }) {
55
<button
66
type="button"
77
onClick={props.onClick}
8-
className="header-search-btn !gd-bg-bgDark gd-gap-2 gd-py-1.5 gd-px-2 gd-text-left md:gd-w-48 hover:!gd-bg-bgLight active:gd-scale-95 hover:gd-text-textHeading gd-transition-[color,transform] gd-border gd-border-bgLightest gd-rounded-md gd-flex gd-items-center"
8+
className="header-search-btn !gd-bg-bgDark gd-gap-2 gd-py-1.5 gd-px-2 gd-text-left md:gd-w-48 active:gd-scale-95 hover:gd-text-textHeading gd-transition-[color,transform] gd-border gd-border-bgLightest gd-rounded-md gd-flex gd-items-center"
99
>
1010
<Icon
1111
icon="mingcute:search-2-fill"

packages/guider/src/client/partials/header/search/screen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ export function SearchScreen(props: {
114114

115115
return (
116116
<Combobox value={null} onChange={onChange}>
117-
<div className="gd-bg-bg gd-border gd-border-bgLightest gd-rounded-lg">
117+
<div className="dark:gd-bg-bg gd-bg-white gd-border gd-border-bgLightest gd-rounded-2xl gd-p-2">
118118
<div className="gd-w-full gd-h-14 gd-relative">
119119
<Combobox.Input
120-
className="gd-w-full gd-pl-16 gd-h-full gd-text-textHeading gd-bg-transparent focus:gd-outline-none placeholder:gd-text-text placeholder:gd-text-opacity-75"
120+
className="gd-border gd-rounded-xl gd-border-black gd-w-full gd-pl-16 gd-h-full gd-text-textHeading gd-bg-transparent focus:gd-outline-none placeholder:gd-text-text placeholder:gd-text-opacity-75"
121121
placeholder="Search for anything you wish to know..."
122122
value={query}
123123
onChange={(e) => {

packages/guider/src/client/partials/sidebar/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function SidebarInternal() {
1515

1616
return (
1717
<div className="gd-flex gd-flex-col">
18-
<div className="gd-space-y-1 neato-guider-sidebar -gd-mx-4">
18+
<div className="gd-space-y-1 neato-guider-sidebar -gd-mx-4 sidebar-top">
1919
{directory.sidebar.map((link, i) => {
2020
const key = makeKey(i, link);
2121
if (link.type === 'link' && link.style === 'star')

packages/guider/src/client/partials/sidebar/star-link.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ export function SidebarStarLink(props: { link: LinkComponent }) {
77
const link = props.link;
88
return (
99
<ActiveLink
10-
className="gd-flex gd-w-full gd-items-center gd-gap-3 gd-py-1.5 gd-text-sm gd-px-4 !gd-my-0 gd-group"
10+
className="gd-flex gd-w-full gd-items-center gd-gap-3 gd-py-1.5 gd-text-sm gd-px-4 !gd-my-0 gd-group top-left-icon"
1111
activeClassName="gd-text-primary"
1212
exact={props.link.exact ?? true}
13-
inactiveClassName="hover:gd-text-textLight"
13+
inactiveClassName=""
1414
href={link.to}
1515
target={link.newTab ? '_blank' : undefined}
1616
>
1717
{({ isActive }) => (
1818
<>
1919
<span
2020
className={classNames({
21-
'gd-size-7 gd-flex gd-text-sm gd-border-t-2 gd-justify-center gd-items-center gd-rounded-md gd-transition-[background-color,color,border-color] gd-duration-100':
21+
'gd-size-7 gd-flex gd-text-sm icons-left-sidebar gd-justify-center gd-items-center gd-rounded-md gd-transition-[background-color,color,border-color] gd-duration-100':
2222
true,
23-
'group-hover:gd-bg-bgLightest group-hover:gd-text-textHeading':
23+
'':
2424
true,
25-
'!gd-border-primary !gd-bg-primaryDark !gd-text-textHeading':
25+
'':
2626
isActive,
27-
'gd-border-bgLightest gd-bg-bgLight': !isActive,
27+
'': !isActive,
2828
})}
2929
>
3030
{link.icon ? <Icon icon={link.icon} /> : null}

packages/guider/src/styles/global.css

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ a.neato-guider-active-link.gd-flex.gd-items-center.gd-w-full.gd-py-1\.5.gd-text-
6060
font-weight: 500 !important;
6161
}
6262

63+
a.gd-flex.gd-items-center.gd-w-full.gd-py-1\.5.gd-text-sm.gd-px-4.gd-rounded-lg.hover\:gd-text-textLight.hover\:gd-bg-bgLight:hover{
64+
background-color: var(--menu-bg-color) !important;
65+
}
66+
6367
a.hover\:gd-text-textLight.gd-transition-colors.gd-duration-100.gd-text-primary {
6468
color: #2E5CFF;
6569
}
@@ -146,13 +150,36 @@ header span.gd-flex-1.gd-hidden.md\:gd-inline-block{
146150
color: #99A1B1;
147151
}
148152

153+
.icons-left-sidebar{
154+
border: 1px solid var(--box-border-color) !important;
155+
}
156+
157+
header{
158+
background-color: var(--background-color) !important;
159+
}
160+
161+
.gd-text-textHeading{
162+
color: var(--heading-text-color) !important;
163+
164+
}
165+
166+
.icons-left-sidebar:hover {
167+
background: linear-gradient(45deg, rgb(45, 156, 219), rgb(187, 107, 217));
168+
color: white;
169+
}
170+
171+
.top-left-icon:hover .icons-left-sidebar {
172+
background: linear-gradient(45deg, rgb(45, 156, 219), rgb(187, 107, 217)) !important;
173+
color: white !important;
174+
}
175+
149176

150177
/* Light theme */
151178
:root {
152179
--background-color: #ffffff;
153180
--text-color: #374256;
154181
--heading-text-color: #121A2E;
155-
--menu-bg-color: #EAEEFF;
182+
--menu-bg-color: #F6F6F7;
156183
--box-border-color: #DFE3EC;
157184
}
158185

@@ -171,7 +198,3 @@ body {
171198
color: var(--text-color);
172199
}
173200

174-
.gd-text-textHeading{
175-
color: var(--heading-text-color) !important;
176-
177-
}

0 commit comments

Comments
 (0)