зеркало из https://github.com/github/docs.git
updated search bar for copilot landing page (#53180)
This commit is contained in:
Родитель
a53bec55ad
Коммит
eef38a554f
|
@ -86,14 +86,14 @@ export const CategoryLanding = () => {
|
||||||
|
|
||||||
<h2 className="py-5">Spotlight</h2>
|
<h2 className="py-5">Spotlight</h2>
|
||||||
<div className="d-md-flex d-sm-block">
|
<div className="d-md-flex d-sm-block">
|
||||||
<CookBookArticleCard image="DeleteMe" spotlight={true} />
|
<CookBookArticleCard image="DeleteMe" spotlight={true} url="#" />
|
||||||
<CookBookArticleCard image="DeleteMe" spotlight={true} />
|
<CookBookArticleCard image="DeleteMe" spotlight={true} url="#" />
|
||||||
<CookBookArticleCard image="DeleteMe" spotlight={true} />
|
<CookBookArticleCard image="DeleteMe" spotlight={true} url="#" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="pt-8">
|
<div className="pt-8">
|
||||||
<div className="py-5 border-bottom">
|
<div className="py-5 border-bottom">
|
||||||
<div className="col-lg-4 col-sm-12 float-md-left pb-3 mr-5 ml-1">
|
<div className="pb-3 mr-5 ml-1 float-xl-left">
|
||||||
<h2>Explore {searchResults.length} prompt articles</h2>
|
<h2>Explore {searchResults.length} prompt articles</h2>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -96,9 +96,9 @@ export const CookBookArticleCard = ({
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div>
|
<div>
|
||||||
<Link href={url}>
|
<h3 className="h4">
|
||||||
<h3 className="h4">{title}</h3>
|
<Link href={url}>{title}</Link>
|
||||||
</Link>
|
</h3>
|
||||||
<div className="fgColor-muted mb-3 mt-2">{description}</div>
|
<div className="fgColor-muted mb-3 mt-2">{description}</div>
|
||||||
<LabelGroup>
|
<LabelGroup>
|
||||||
{tags.map((tag, index) => (
|
{tags.map((tag, index) => (
|
||||||
|
|
|
@ -54,13 +54,13 @@ export const CookBookFilter = ({
|
||||||
}, [isSearchOpen])
|
}, [isSearchOpen])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="d-lg-flex d-sm-block">
|
||||||
<div>
|
<div className="col-12 mr-2">
|
||||||
<form onSubmit={(e) => e.preventDefault()}>
|
<form onSubmit={(e) => e.preventDefault()}>
|
||||||
<TextInput
|
<TextInput
|
||||||
leadingVisual={SearchIcon}
|
leadingVisual={SearchIcon}
|
||||||
className="float-lg-left m-1"
|
className="m-1"
|
||||||
sx={{ minWidth: ['stretch', 'stretch', 'stretch', 250] }}
|
sx={{ minWidth: ['stretch', 'stretch', 'stretch', 'stretch'] }}
|
||||||
placeholder="Search articles"
|
placeholder="Search articles"
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
autoComplete="false"
|
autoComplete="false"
|
||||||
|
@ -73,7 +73,7 @@ export const CookBookFilter = ({
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<ActionMenu>
|
<ActionMenu>
|
||||||
<ActionMenu.Button className="col-md-1 col-sm-2 float-md-left m-1">
|
<ActionMenu.Button className="col-md-1 col-sm-2 m-1">
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
color: 'fg.muted',
|
color: 'fg.muted',
|
||||||
|
@ -100,7 +100,7 @@ export const CookBookFilter = ({
|
||||||
</ActionMenu>
|
</ActionMenu>
|
||||||
|
|
||||||
<ActionMenu>
|
<ActionMenu>
|
||||||
<ActionMenu.Button className="col-md-1 col-sm-2 float-md-left m-1">
|
<ActionMenu.Button className="col-md-1 col-sm-2 m-1">
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
color: 'fg.muted',
|
color: 'fg.muted',
|
||||||
|
@ -126,14 +126,10 @@ export const CookBookFilter = ({
|
||||||
</ActionMenu.Overlay>
|
</ActionMenu.Overlay>
|
||||||
</ActionMenu>
|
</ActionMenu>
|
||||||
|
|
||||||
<Button
|
<Button variant="invisible" className="col-md-1 col-sm-2 mt-1" onClick={onResetFilter}>
|
||||||
variant="invisible"
|
|
||||||
className="col-md-1 col-sm-2 float-left mt-1"
|
|
||||||
onClick={onResetFilter}
|
|
||||||
>
|
|
||||||
Reset filters
|
Reset filters
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче