MeDo

AI हेडर जेनरेटर।

अपने पेज का ऊपरी हिस्सा बताएं और MeDo पूरी पट्टी बना देता है — लोगो और ब्रांड लॉकअप, उसके ऊपर एक वैकल्पिक अनाउंसमेंट बार, फ्रॉस्टेड-ग्लास ब्लर वाला स्टिकी स्क्रॉल बिहेवियर, और CTA। नेविगेशन लिंक इसी के अंदर रहते हैं; हेडर वह सब कुछ है जो उन्हें फ्रेम करता है।

हेडर
हेडर

हेडर ही वह एकमात्र कंपोनेंट है जो हर एक पेज पर होता है

आपके लैंडिंग पेज, डॉक्स और चेकआउट फ्लो के बीच बाकी सब कुछ बदल जाए, हेडर स्थिर रहता है। इसी वजह से यह ब्रांड पहचान ढोने वाला एलिमेंट है, और परफॉर्मेंस बिगाड़ने की सबसे महंगी जगह भी: वह हेडर जो फ़ॉन्ट लोड होते समय शिफ्ट हो जाए, या हाइड्रेशन से पहले कोई हाइट रिजर्व न करे, सिर्फ एक पेज पर नहीं बल्कि विजिटर के देखे हर पेज पर लेआउट शिफ्ट पैदा करता है। स्टिकी बिहेवियर पर भी वही गुणक लागू होता है। हर स्क्रॉल फ्रेम पर रीपेंट होने वाला ब्लर पूरी साइट की स्मूदनेस छीन लेता है। चूंकि यह एक बार बनता है और हर जगह इस्तेमाल होता है, हेडर को प्रॉम्प्ट में जरूरत से ज्यादा बारीकी से बताना फायदेमंद है।

6 टेम्पलेट

हेडर टेम्पलेट जो आप जेनरेट कर सकते हैं

हर टेम्पलेट एक असली प्रॉम्प्ट है, स्क्रीनशॉट नहीं। इसे किसी भी AI एडिटर में कॉपी करें, या MeDo में चलाकर React + Tailwind कोड सीधे पाएं।

Fixed heightAcme

Sticky Header With a Frosted Scroll State

The default worth starting from: a pinned height and a blur that only appears once you have scrolled. Specifying the height is the whole point — a header that sizes to its content shifts on every page as the webfont swaps in.

Create a sticky website header with an explicit 64px height set on the container so the space is reserved before the logo and webfonts load. Logo mark plus wordmark on the left, four navigation links in the middle, one filled Get started button on the right. Start with a solid white background and a 1px bottom border, then switch to a semi-transparent surface with a backdrop blur once the page scrolls past 80px, transitioning over 200ms. Drive the state from an IntersectionObserver watching a 1px sentinel above the header rather than a scroll listener, so nothing runs on the scroll thread. Below 768px, replace the links with a hamburger that opens a drawer.

MeDo में आज़माएं
Announcement barMega

Promo Bar Above a Sticky Row

Two stacked strips where only the lower one stays pinned. The trap is the sticky offset: dismiss the bar without recomputing it and the header floats 36px below the viewport top for the rest of the session.

Create a two-part header: a dismissible 36px announcement bar on an accent background with a short promo line, an inline link and a close button, and beneath it a 64px main row with logo, links and a CTA. Only the main row is sticky. Persist the dismissal in localStorage so the bar does not return on the next page, and recompute the sticky top offset when it is removed so the main row still pins flush to the viewport top. Render the bar server-side and hide it with a class rather than mounting it after hydration, so dismissing it never causes a visible reflow of the page below.

MeDo में आज़माएं
TransparentShipfast

Transparent Over Hero, Solid on Scroll

For landing pages with a full-bleed hero behind the header. Everything that depends on the background — logo variant, link color, border, button style — has to flip in one state change, not four.

Create a header that overlays a full-bleed hero image: fully transparent with no border at the top of the page, with a light logo variant and white links. Once the page scrolls past the hero height, switch in a single state change to a solid white surface, a dark logo variant, dark links and a 1px bottom border, transitioning over 200ms. Keep the header height fixed at 72px in both states so the switch does not move the links. Add a scroll-margin-top equal to the header height on all headings so in-page anchors do not land behind the bar.

MeDo में आज़माएं
Two-rowShop

Utility Row Over a Sticky Search Row

A storefront header where the top row scrolls away and the search row stays. Pinning both eats 100px of a phone viewport, which is most of a product image.

Create a two-row e-commerce header. The top row, 32px tall, carries a free-shipping message on the left and Track order, Help and account links on the right, and scrolls away with the page. The bottom row, 64px tall, holds the logo, a wide search input, a wishlist icon and a cart button with a count badge, and is the only row that stays sticky. Announce cart count changes through an aria-live="polite" region. Below 768px, collapse the top row entirely, keep logo, search icon and cart in the sticky row, and open search as a full-width overlay when the icon is tapped.

MeDo में आज़माएं
App shellDocs

Fixed Header With a Sidebar Toggle

A docs header that has to coordinate with a sidebar below it. Reserve the toggle button's space at every breakpoint, otherwise the logo jumps sideways when the button appears at the tablet threshold.

Create a fixed 56px documentation header: a sidebar toggle button on the far left that is only interactive below 1024px but keeps its 40px slot reserved at every breakpoint so the logo never shifts, then the logo, a version switcher, a search button with a Command-K hint, a theme toggle and a GitHub link. Because the header is fixed rather than sticky, add matching top padding to the page body and set scroll-margin-top on every heading so deep links from search land below the bar. Give the toggle aria-expanded and aria-controls pointing at the sidebar element.

MeDo में आज़माएं
StaticStudio

Oversized Wordmark, No Sticky

Not everything needs to be pinned. A tall static header that scrolls away gives an agency site its full viewport back, and removes the scroll listener along with it.

Create a static header for a design studio that scrolls away with the page rather than sticking: 120px tall, with an oversized lowercase wordmark on the left, a one-line location and availability note beneath it, and four right-aligned links in a light weight with wide letter spacing. No border, no background change, no scroll listener at all. Below 640px, reduce the height to 80px, keep the wordmark, and move the four links into a full-screen overlay opened by a text Menu button — labelled Menu rather than a hamburger icon, and closing on Escape with focus returned to the button.

MeDo में आज़माएं

अपने हेडर को कैसे कस्टमाइज़ करें

स्टाइलिंग शुरू करने से पहले हाइट तय करें

हेडर की स्पष्ट हाइट मांगें। यह एक लाइन में हो जाता है और उस लेआउट शिफ्ट को हटा देता है जो वरना लोगो और वेब फ़ॉन्ट लोड होते समय हर पेज पर होता है — यह हेडर से जुड़ी सबसे आम Core Web Vitals गिरावट है।

स्क्रॉल स्टेट को थ्रॉटल करें

सीधे स्क्रॉल लिसनर पर टॉगल होने वाला backdrop blur प्रति सेकंड दर्जनों बार रीपेंट होता है। बताएं कि स्क्रॉल हैंडलर requestAnimationFrame से थ्रॉटल किया जाए, या IntersectionObserver सेंटिनल से चलाया जाए, ताकि मिड-रेंज हार्डवेयर पर भी स्क्रॉलिंग स्मूद रहे।

अनाउंसमेंट बार को हेडर का हिस्सा मानें

अगर मुख्य रो के ऊपर प्रोमो पट्टी चाहिए, तो उसे उसी प्रॉम्प्ट में बताएं ताकि उसकी हाइट स्टिकी ऑफसेट में गिनी जाए। बाद में जोड़ने पर वह या कंटेंट ढक लेती है या डिसमिस होने के बाद अपनी हाइट दोबारा गिन लेती है।

ब्रांड लॉकअप को ठीक-ठीक बताएं

बताएं कि आपको सिर्फ मार्क चाहिए, मार्क के साथ वर्डमार्क, या ऐसा वर्डमार्क जो छोटी स्क्रीन पर सिर्फ मार्क रह जाए। हेडर हर पेज पर मौजूद एकमात्र कंपोनेंट है, इसलिए ब्रांड की एकरूपता यहीं बनती या बिगड़ती है।

हेडर कंपोनेंट का उपयोग कौन करता है

SaaS प्रोडक्ट साइट

64px का सफेद हेडर फिक्स्ड हाइट के साथ, स्क्रॉल करने पर फ्रॉस्टेड ब्लर, और उसके ऊपर एक डिसमिस करने योग्य अनाउंसमेंट बार जो कैंपेन भर लॉन्च प्रोमो चलाता है।

ई-कॉमर्स स्टोर

दो-रो वाला हेडर जिसमें ऊपरी रो में फ्री-शिपिंग बैनर और अकाउंट लिंक हैं और निचली रो में सर्च और कार्ट, और खरीदार के स्क्रॉल करते समय सिर्फ निचली रो स्टिकी रहती है।

मार्केटिंग या लैंडिंग पेज

फुल-ब्लीड हीरो इमेज पर बैठा एक ट्रांसपेरेंट हेडर जो स्क्रॉल पर सॉलिड बैकग्राउंड में बदलता है, और उसी ब्रेकपॉइंट पर लोगो लाइट से डार्क वेरिएंट में स्विच हो जाता है।

डेवलपर डॉक्यूमेंटेशन साइट

वर्जन स्विचर और सर्च ट्रिगर वाला फिक्स्ड हेडर, साथ में एक साइडबार टॉगल जो टैबलेट ब्रेकपॉइंट से नीचे दिखता है और अपनी जगह खुद रिजर्व करता है ताकि डॉक्स कंटेंट कभी रीफ्लो न हो।

अलग-अलग वेबसाइटों के लिए हेडर पैटर्न

वही हेडर कंपोनेंट, उस वेबसाइट के प्रकार के हिसाब से ढाला गया जहाँ वह लगेगा।

01 / 06

SaaS Product Header

One fixed-height sticky strip with a brand lockup, links and a single CTA. Because it renders on every route, any layout shift here is multiplied across your whole Core Web Vitals field data rather than isolated to the landing page.

हेडर की शैलियाँ और वेरिएंट

जो वेरिएंट बाकी पेज से मेल खाता है उसे चुनें और जेनरेट करें।

01 / 06

Fixed-Height Sticky Header

An explicit height on the container, pinned to the top. The height is not a styling detail — without it the strip resizes as the logo and webfonts resolve, and that shift lands on every page a visitor opens.

React, Next.js, Vue और Svelte में हेडर

React, Next.js, Vue 3, SvelteKit, Astro या सादा HTML — वही हेडर, जोड़ने के छह तरीके।

01 / 06

React Header

Keep the scroll state in the header itself with an IntersectionObserver on a sentinel div, not a scroll listener. Render it once above your router outlet so the observer is created once per session.

src/components/Header.tsx

export function Header() {
  const [pinned, setPinned] = useState(false)
  const ref = useRef(null)

  useEffect(() => {
    const io = new IntersectionObserver(
      ([e]) => setPinned(!e.isIntersecting)
    )
    io.observe(ref.current)
    return () => io.disconnect()
  }, [])

  return <header className={pinned ? 'backdrop-blur' : ''} />
}

अपने हेडर को प्रोजेक्ट में कैसे जोड़ें

हेडर टेम्पलेट चुनने से प्रोडक्शन में भेजने तक, चार चरण।

01~30s

Pick a Header Template

Decide two things first: does the strip stay pinned, and is there an announcement bar. Those choices drive the sticky offset and the scroll state, and they are the awkward ones to retrofit.

02~10s

Copy the Prompt

Paste it into MeDo, Lovable, Bolt, v0 or Cursor. Keep the explicit pixel height and the sentinel-based scroll state in the text — those two sentences are what stop the header shifting and repainting on every page.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "make the blur stronger", "persist the dismissed announcement bar", "flip the logo variant on scroll".

04~2min

Mount It in Your Layout

Put the header above {children} in your root layout. If it is fixed rather than sticky, add matching top padding to the body and scroll-margin-top to your headings so anchor links do not land underneath it.

हेडर के बारे में सामान्य प्रश्न

AI हेडर जेनरेटर क्या है?

AI हेडर जेनरेटर एक टूल है जो आपकी वेबसाइट की प्राकृतिक भाषा में दी गई जानकारी लेता है और पूर्ण, स्टाइल्ड हेडर कंपोनेंट के लिए HTML, CSS और JavaScript स्वचालित रूप से बनाता है। स्क्रैच से लेआउट कोड लिखने की बजाय, आप बताते हैं कि क्या चाहिए और काम करने वाला कोड मिलता है।

AI से वेबसाइट हेडर कैसे बनाएं?

MeDo खोलें, "एक डिज़ाइन एजेंसी के लिए स्टिकी हेडर बनाएं जिसमें बाईं ओर लोगो, वर्क, अबाउट और कॉन्टैक्ट के लिंक, और दाईं ओर 'बात करें' बटन हो" जैसा प्रॉम्प्ट टाइप करें, और MeDo पूरा कंपोनेंट जेनरेट करता है। फिर आप कोड कॉपी कर सकते हैं या फॉलो-अप प्रॉम्प्ट से एडिट जारी रख सकते हैं।

क्या AI से रेस्पॉन्सिव हेडर बनाया जा सकता है?

हां। MeDo डिफ़ॉल्ट रूप से मोबाइल-फर्स्ट हेडर बनाता है। ब्रेकपॉइंट्स या डिवाइस बताएं — "768px से नीचे हैमबर्गर मेनू में बदलें" — और यह रेस्पॉन्सिव लॉजिक संभाल लेता है।

हेडर और नेविबार में क्या अंतर है?

हेडर हर पेज के सबसे ऊपर की पूरी चौड़ाई वाली पट्टी है: ब्रांड लॉकअप, वैकल्पिक अनाउंसमेंट बार, स्टिकी और स्क्रॉल बिहेवियर, और वह कंटेनर जो सब कुछ समेटे रहता है। नेविबार उसके अंदर के नेविगेशन लिंक हैं। जब आपकी चिंता यह हो कि पूरी साइट पर पेज का ऊपरी हिस्सा कैसा दिखे और कैसा व्यवहार करे, तो हेडर बनाएं; जब सवाल दरअसल लिंक स्ट्रक्चर, ड्रॉपडाउन और मोबाइल मेनू का हो, तो AI नेविबार जेनरेटर देखें।

अपने हेडर को लेआउट शिफ्ट पैदा करने से कैसे रोकें?

प्रॉम्प्ट में हेडर को स्पष्ट हाइट दें ताकि ब्राउज़र फ़ॉन्ट और लोगो लोड होने से पहले जगह रिजर्व कर ले, और किसी भी अनाउंसमेंट बार के लिए भी जगह रखें, बजाय इसके कि वह हाइड्रेशन के बाद कंटेंट को नीचे धकेले। अगर हेडर sticky के बजाय fixed है, तो पेज बॉडी में उतनी ही टॉप पैडिंग जोड़ें। MeDo से फिक्स्ड हेडर हाइट मांगें और वह दोनों लागू कर देगा।

वेबसाइट हेडर जेनरेट करने के लिए सबसे अच्छा AI टूल कौन सा है?

MeDo विशेष रूप से प्रॉम्प्ट से व्यक्तिगत वेबसाइट कंपोनेंट जेनरेट करने के लिए बना है, जिसमें हेडर शामिल हैं। जनरल-पर्पस AI चैट टूल्स के विपरीत, MeDo कंपोनेंट स्ट्रक्चर, एक्सेसिबिलिटी रिक्वायरमेंट्स और वास्तविक UX पैटर्न समझता है — इसलिए आउटपुट वही होता है जो एक सीनियर फ्रंटएंड डेवलपर देगा।

अभी अपना हेडर जेनरेट करें।

कोई भी प्रॉम्प्ट आज़माएं — मुफ्त, कोई साइन अप नहीं।