Guest User

Untitled

a guest
Sep 6th, 2023
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. app.jsx code:
  2. import {
  3. CustomerReviews,
  4. Footer,
  5. Hero,
  6. PopularProducts,
  7. Services,
  8. SpecialOffer,
  9. Subscribe,
  10. SuperQuality,
  11. } from "./sections";
  12. import Nav from "./components/Nav";
  13.  
  14. const App = () => (
  15. <main className="relative">
  16. <Nav />
  17. <section className="xl:padding-1 wide:padding-r padding-b">
  18. <Hero />
  19. </section>
  20. <section className="padding">
  21. <PopularProducts />
  22. </section>
  23. <section className="padding">
  24. <SuperQuality />
  25. </section>
  26. <section className="padding-x py-10">
  27. <Services />
  28. </section>
  29. <section className="padding">
  30. <SpecialOffer />
  31. </section>
  32. <section className="bg-pale-blue padding">
  33. <CustomerReviews />
  34. </section>
  35. <section className="padding-x sm:py-32 py-16 w-full">
  36. <Subscribe />
  37. </section>
  38. <section className="bg-black padding-x padding-t pb-8">
  39. <Footer />
  40. </section>
  41. </main>
  42. );
  43.  
  44. export default App;
  45.  
  46.  
  47.  
  48. nav.jsx code (nav jsx is a component):
  49. import { hamburger } from "../assets/icons";
  50. import { headerLogo } from "../assets/images";
  51.  
  52. const Nav = () => {
  53. return;
  54. <header>
  55. <nav>
  56. <a href="/">
  57. <img src={headerLogo} />
  58. </a>
  59. </nav>
  60. </header>;
  61. };
  62.  
  63. export default Nav;
  64.  
Advertisement
Add Comment
Please, Sign In to add comment