DEV Community

Cover image for Create a beginner-level project Make A Modern Website Using React Js | Hero Section
ziontutorial
ziontutorial

Posted on

2

Create a beginner-level project Make A Modern Website Using React Js | Hero Section

Image description
Today we we will learn how to make A Modern Website Using React Js. However, i think there are many beginner who do not know How to Make A Modern Website Using React Js | Hero Section. Hopefully, this article will help you out.

If you want you can watch the live demo with this link.

App.js




import logo from './logo.svg';
import './App.css';
import backgroundImage from './bg.png';

function App() {
  return (
    <div className="container">
      {/* navbar */}
      <nav>
        <div className="logo_container">
          // paste the svg Link from below Link 
        </div>

        <div className="menu_container">
          <ul>
            <li>
              <a href="www.ziontutorial.com" className="active">Home</a>
            </li>
            <li>
              <a href="www.ziontutorial.com">Why Us</a>
            </li>
            <li>
              <a href="www.ziontutorial.com"> Review</a>
            </li>
            <li>
              <a href="www.ziontutorial.com"> Blog</a>
            </li>
          </ul>
        </div>

        <div className="btn_container">
          <ul>
            <li>
              <a href="www.ziontutorial.com"> Sign In</a>
            </li>
          </ul>
          <button className="btn_register">
            Register
          </button>
        </div>
      </nav>

      {/* hero section */}
      <div className="content">
        <div class="hero-text">
          {/* <p className="content_para">Trusted by over 2800+ companies</p> */}
          <h1>Delievr  <span className="content_span">Your Food </span></h1>
          <h1>Easy And Fast.</h1>
          <p className="content_alice">Vivamus vitae odio quam. Etiam non nibh luctus ligula tristique tristique.</p>
          <form>
            <input type="text" placeholder="Enter delivery address" />
            <button type="submit" className="btn_sec">
            Search
            </button>
          </form>
        </div>
        <div className="hero-image">
          <img className="image" src={backgroundImage} alt="Background" />
        </div>
      </div>
      <p></p>
    </div>
  );
}

export default App;





Enter fullscreen mode Exit fullscreen mode

For App.css Part Visit this page.
Link

All the assets are mention here Like SVG and Logo everything you can get it from here.Link

Conclusion

I hope you enjoyed this little tutorial. Let me know over on

Happy Coding! πŸ˜‡

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay