Enhance global styles and components: add new breakpoint in globals.css, update SearchInput for improved styling and responsiveness, and modify Navbar for sticky positioning and better layout.
This commit is contained in:
parent
5c3423c353
commit
285c12e682
|
|
@ -64,8 +64,12 @@
|
||||||
--color-hippie-blue-800: #2c4a60;
|
--color-hippie-blue-800: #2c4a60;
|
||||||
--color-hippie-blue-900: #283f52;
|
--color-hippie-blue-900: #283f52;
|
||||||
--color-hippie-blue-950: #1b2936;
|
--color-hippie-blue-950: #1b2936;
|
||||||
|
|
||||||
|
--breakpoint-xs: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@custom-variant hover-any (&:hover);
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
body {
|
body {
|
||||||
@apply bg-pink-lady-50 text-text;
|
@apply bg-pink-lady-50 text-text;
|
||||||
|
|
@ -102,5 +106,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility grid-auto-cols-* {
|
@utility grid-auto-cols-* {
|
||||||
grid-template-columns: repeat(auto-fill, --value(integer));
|
grid-template-columns: repeat(--value(integer), 1fr);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ export const SearchInput: FC<Props> = ({
|
||||||
<div className={`relative text-gray-600 inline-block ${className}`}>
|
<div className={`relative text-gray-600 inline-block ${className}`}>
|
||||||
<input
|
<input
|
||||||
type="search"
|
type="search"
|
||||||
name="serch"
|
name="search"
|
||||||
className="bg-white h-10 px-5 pr-10 rounded-full text-sm focus:outline-none w-48 focus:w-[400px] transition-all"
|
className="bg-white h-10 px-5 pr-10 rounded-full text-md md:text-sm focus:outline-none w-52 focus:w-[400px] transition-all max-w-[90vw]"
|
||||||
value={value}
|
value={value}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onChange={(e) => setValue(e.target.value)}
|
onChange={(e) => setValue(e.target.value)}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const links = [
|
||||||
|
|
||||||
export const Navbar = () => {
|
export const Navbar = () => {
|
||||||
return (
|
return (
|
||||||
<header className="bg-white shadow-sm">
|
<header className="bg-white shadow-sm max-sm:sticky top-0 w-full z-30">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className="flex items-center gap-8 py-4">
|
<div className="flex items-center gap-8 py-4">
|
||||||
<Link className="block text-teal-600" href="/">
|
<Link className="block text-teal-600" href="/">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue