forked from sashaastiadi/www_mycelium_net
		
	refactor: replace hardcoded text elements with reusable Text components in Hero section
This commit is contained in:
		@@ -3,6 +3,7 @@ import Image from 'next/image'
 | 
				
			|||||||
import clsx from 'clsx'
 | 
					import clsx from 'clsx'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { DownloadLink } from '@/components/DownloadLink'
 | 
					import { DownloadLink } from '@/components/DownloadLink'
 | 
				
			||||||
 | 
					import { H1, H2, H3, H4, H5, P } from '@/components/Texts'
 | 
				
			||||||
import { Button } from '@/components/Button'
 | 
					import { Button } from '@/components/Button'
 | 
				
			||||||
import phoneFrame from '@/images/phoneframe.png'
 | 
					import phoneFrame from '@/images/phoneframe.png'
 | 
				
			||||||
import { Container } from '@/components/Container'
 | 
					import { Container } from '@/components/Container'
 | 
				
			||||||
@@ -103,18 +104,17 @@ export function Hero() {
 | 
				
			|||||||
      <Container>
 | 
					      <Container>
 | 
				
			||||||
        <div className="flex flex-col-reverse gap-y-16 lg:grid lg:grid-cols-12 lg:gap-x-8 lg:gap-y-20">
 | 
					        <div className="flex flex-col-reverse gap-y-16 lg:grid lg:grid-cols-12 lg:gap-x-8 lg:gap-y-20">
 | 
				
			||||||
          <div className="relative z-10 mx-auto max-w-2xl lg:col-span-7 lg:max-w-none lg:pt-6 xl:col-span-6">
 | 
					          <div className="relative z-10 mx-auto max-w-2xl lg:col-span-7 lg:max-w-none lg:pt-6 xl:col-span-6">
 | 
				
			||||||
            <h1 className="text-4xl lg:text-6xl font-medium tracking-tight text-gray-900">
 | 
					            <H1>Mycelium</H1>
 | 
				
			||||||
              Mycelium
 | 
					            <H5 color="secondary" className="mt-6">
 | 
				
			||||||
            </h1>
 | 
					              Unleashing the Power of Decentralized Networks
 | 
				
			||||||
              <h2 className="mt-6 lg:text-2xl text-xl tracking-tight leading-normal text-gray-600">
 | 
					            </H5>
 | 
				
			||||||
                Unleashing the Power of Decentralized Networks
 | 
					            <P color="secondary" className="mt-6">
 | 
				
			||||||
            </h2>
 | 
					              Discover Mycelium, an end-to-end encrypted IPv6 overlay network. The
 | 
				
			||||||
            <p className="mt-6 lg:text-xl text-lg text-gray-600 lg:leading-normal leading-tight">
 | 
					              future of secure, efficient, and scalable networking.
 | 
				
			||||||
              Discover Mycelium, an end-to-end encrypted IPv6 overlay network. The future of secure, efficient, and scalable networking.
 | 
					            </P>
 | 
				
			||||||
            </p>
 | 
					            <P color="secondary" className="mt-6">
 | 
				
			||||||
            <p className="mt-6 text-lg text-gray-600 ">
 | 
					 | 
				
			||||||
              Coming Soon: New Decentralized Features
 | 
					              Coming Soon: New Decentralized Features
 | 
				
			||||||
            </p>
 | 
					            </P>
 | 
				
			||||||
            <div className="mt-8 flex flex-wrap gap-x-6 gap-y-4">
 | 
					            <div className="mt-8 flex flex-wrap gap-x-6 gap-y-4">
 | 
				
			||||||
              <DownloadLink />
 | 
					              <DownloadLink />
 | 
				
			||||||
              {/* <Button
 | 
					              {/* <Button
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,10 +59,11 @@ export const H1 = createTextComponent(
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
export const H2 = createTextComponent('h2', 'text-4xl lg:text-6xl font-medium')
 | 
					export const H2 = createTextComponent('h2', 'text-4xl lg:text-6xl font-medium')
 | 
				
			||||||
export const H3 = createTextComponent('h3', 'text-3xl lg:text-5xl font-medium')
 | 
					export const H3 = createTextComponent('h3', 'text-3xl lg:text-5xl font-medium')
 | 
				
			||||||
export const H4 = createTextComponent('h4', 'text-2xl lg:text-4xl font-semibold')
 | 
					export const H4 = createTextComponent('h4', 'text-2xl lg:text-4xl font-medium')
 | 
				
			||||||
export const P = createTextComponent(
 | 
					export const P = createTextComponent(
 | 
				
			||||||
  'p',
 | 
					  'p',
 | 
				
			||||||
  'text-base lg:text-lg leading-relaxed'
 | 
					  'text-base lg:text-lg leading-relaxed'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
export const Small = createTextComponent('small', 'text-sm font-medium')
 | 
					export const Small = createTextComponent('small', 'text-sm font-medium')
 | 
				
			||||||
export const Subtle = createTextComponent('p', 'text-sm text-gray-500')
 | 
					export const Subtle = createTextComponent('p', 'text-sm text-gray-500')
 | 
				
			||||||
 | 
					export const H5 = createTextComponent('h5', 'text-xl lg:text-2xl font-semibold')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user