Categories

Thursday, December 26, 2024
#919814419350 therichposts@gmail.com
ReactjsReactjs Templates

Reactjs Restaurant Template Free

Reactjs Restaurant Template Free

Hello my friends, welcome back to my blog. Today in this blog post, I am going to show you, Reactjs Restaurant Template Free.

Reactjs Restaurant Template

Guys here is one more free react restaurant template:

For react js new comers, please check the below link:
React js Basic Tutorials


Friends now I proceed onwards and here is the working code snippet for Reactjs Restaurant Template Free and please use this carefully to avoid the mistakes:

1. Firstly friends we need fresh reactjs setup and for that we need to run below commands into our terminal and also w should have latest node version installed on our system:

Guys you can skip this first step if you already have reactjs fresh setup:

npx create-react-app reacttemplate

cd reacttemplate

npm start // run the project

2. Now friends, please download zip(in this zip file there are js, css and images for ecommerce template) file from below path and extract zip and get all the folders.

Create assets folder inside reactecommerce/public folder.

Now please put that folders(which we will get from zip file) in “assets” folder.

https://therichpost.com/downloadssss.zip

3. Now friends please add below inside  reactecommerce/public/index.html file:

<head>
...
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="assets/css/style.css">
  <link href='https://fonts.googleapis.com/css?family=Merienda' rel='stylesheet'>
 
  <script src="assets/js/jquery-3.3.1.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
  
  <script type="text/javascript" src="assets/js/smooth-scroll.js"></script>
</head>

4. Finally friends we need to add below code into our src/App.js file to get final output on web browser:

import React from 'react';

import './App.css';


class App extends React.Component
{
  
  render()
  {
    
   
    return (
      <div>
        <div id="Welcome">
  
          <nav class="navbar navbar-expand-lg navbar fixed-top  navbar-light bg-light">
          <a class="navbar-brand" href="#Welcome">
              <img src="assets/images/logo.png" width="50" height="50" class="d-inline-block" alt="" /> Punjabi Restaurant
          </a>
          <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
              <span class="navbar-toggler-icon"></span>
          </button>
            <div class="collapse navbar-collapse" id="navbarText">
              <ul class="navbar-nav ml-auto">
                  <li class="nav-item">
                    <a class="nav-link" href="#Welcome">Welcome</a>
                  </li>
                <li class="nav-item">
                  <a class="nav-link" href="#Restaurant">Restaurant</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="#Menu">Menu</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="#Reservation">Reservation</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="#OurLocation">Our Location</a>
                </li>
              
              </ul>
          </div>
        </nav>

        <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
          <ol class="carousel-indicators">
            <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
              <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
              <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
          </ol>
          <div class="carousel-inner">
            <div class="carousel-item active">
                <img class="d-block w-100 img-fluid img-slider" src="assets/images/slider1.jpg" alt="First slide" />
                <div class="carousel-caption">
                  <h2>Welcome!</h2>
                <p>...</p>
              </div>
              </div>
              <div class="carousel-item">
                  <img class="d-block w-100 img-fluid img-slider" src="assets/images/slider2.jpg" alt="Second slide" />
                  <div class="carousel-caption">
                  <h2>Traditional Italian Cuisine</h2>
                <p>...</p>
              </div>
              </div>
              <div class="carousel-item">
                  <img class="d-block w-100 img-fluid img-slider" src="assets/images/slider3.jpg" alt="Third slide" />
                  <div class="carousel-caption">
                  <h2>Selected Products</h2>
                <p>...</p>
              </div>
              </div>
          </div>
          <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
              <span class="sr-only">Previous</span>
          </a>
          <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
              <span class="sr-only">Next</span>
          </a>
        </div>
        </div>

        <div class="container">
        <div class="row" id="Restaurant">
            <div class="col navMenu">
                <h2 class="text-center" >~ Restaurant ~</h2>
            </div>
          </div>
          <div class="row bg-light" >
            <div class="col-md-6">
              <h3>Location</h3>
              <p>Thanks for stopping by. We are the last authentic Italian restaurant in Milan, serving delicious Italian cuisine cooked by the best chefs. It only takes a few minutes to browse through our website and check out our menu. We hope you'll soon join us for a superb Italian culinary experience.</p>
              <h5>A Unique Experience</h5>
              <p>Thanks for stopping by. We are the last authentic Italian restaurant in Milan, serving delicious Italian cuisine cooked by the best chefs. It only takes a few minutes to browse through our website and check out our menu. We hope you'll soon join us for a superb Italian culinary experience.</p>
            </div>
            <div class="col-md-6" data-aos="fade-up">
              <img class="img-fluid" src="assets/images/location.jpg" />
            </div>
          </div>
          <div class="row bg-light"><br /></div>
          <div class="row bg-light">
            <div class="col-md-6 order-md-1 order-2" data-aos="fade-up">
              <img class="img-fluid " src="assets/images/cuisine.jpg" />
            </div>
            <div class="col-md-6 order-md-12 order-1">
              <h3>Cuisine</h3>
              <p>Thanks for stopping by. We are the last authentic Italian restaurant in Milan, serving delicious Italian cuisine cooked by the best chefs. It only takes a few minutes to browse through our website and check out our menu. We hope you'll soon join us for a superb Italian culinary experience.</p>
              <h5>A Unique Experience</h5>
              <p>Thanks for stopping by. We are the last authentic Italian restaurant in Milan, serving delicious Italian cuisine cooked by the best chefs. It only takes a few minutes to browse through our website and check out our menu. We hope you'll soon join us for a superb Italian culinary experience.</p>
            </div>
          </div>
        
        <div class="row" id="Menu">
          <div class="col navMenu">
                <h2 class="text-center" >~ Menu ~</h2>
          </div>
        </div>
        <div class="row bg-light">
          <div class="col-md-4" data-aos="slide-up">
            <div class="card view zoom">
                <img class="card-img-top img-fluid " src="assets/images/meat-menu.jpg" />
                <div class="card-body">
                  <h5 class="card-title">~ Meat Menu ~</h5>
                  <ul class="list-group list-group-flush">
                    <li class="list-group-item">Bocconcini di carne in nido di sfoglia</li>
                    <li class="list-group-item">Bruschette con maiale al curry</li>
                  <li class="list-group-item">Uova al prosciutto</li>
                  <li class="list-group-item">Vitello tonnato</li>
                  <li class="list-group-item">Fesa di tacchino marinata con olive</li>
                </ul>
                </div>
            </div>
          </div>
          <div class="col-md-4" data-aos="slide-up">
            <div class="card">
                <img class="card-img-top img-fluid " src="assets/images/fish-menu.jpg" />
                <div class="card-body">
                  <h5 class="card-title">~ Fish Menu ~</h5>
                  <ul class="list-group list-group-flush">
                    <li class="list-group-item">Carpaccio di polpo</li>
                    <li class="list-group-item">Cozze al verde</li>
                  <li class="list-group-item">Cocktail di gamberi</li>
                  <li class="list-group-item">Risotto alla crema di scampi</li>
                  <li class="list-group-item">Ravioli di pesce con crema di scampi</li>
                </ul>
                </div>
            </div>
          </div>
          <div class="col-md-4" data-aos="slide-up">
            <div class="card">
                <img class="card-img-top img-fluid" src="assets/images/menu-vegetarian.jpg" />
                <div class="card-body">
                  <h5 class="card-title">~ Vegetarian Menu ~</h5>
                  <ul class="list-group list-group-flush">
                    <li class="list-group-item">Parmigiana di melanzane</li>
                    <li class="list-group-item">Strudel con ricotta e spinaci</li>
                  <li class="list-group-item">Polpette di spinaci e ricotta</li>
                  <li class="list-group-item">Frittata di patate al forno</li>
                  <li class="list-group-item">Spaghetti con le polpettine vegetariane</li>
                </ul>
                </div>
            </div>
          </div>
        </div>

        <div class="row" id="Reservation">
          <div class="col navMenu">
                <h2 class="text-center">~ Reservation ~</h2>
          </div>
        </div>
        <div class="row">
          <div class=" col-lg-12 reserve-container" data-aos="fade-up">
            <img class="img-fluid image-reserve" src="assets/images/reserve.jpg" />
            <div class="reserve-text col-lg-12 ">
              <h1 class="text-center">Timetables</h1>
              <div class="row">
                <div class="col-6">
                    <h2 class="text-center">Lunch</h2>
                    <h5 class="text-center">12:00 - 15:00</h5>
                </div>
                <div class="col-6">
                    <h2 class="text-center">Dinner</h2>
                    <h5 class="text-center">19:30 - 23:30</h5>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br />
        <div class="row bg-light">
          <div class="col">
            <form>
              <div class="form-row">
                  <div class="form-group col-6">
                    <h3>Reserve</h3>
                    <label for="inputDate"> Date</label>
                    <input type="date" class="form-control" id="inputDate" placeholder="Data gg/mm/aaaa" />
                  </div>
                  <div class="form-group col-6">
                    <h3>Details</h3>
                    <label for="inputName"> Name</label>
                    <input type="text" class="form-control" id="inputName" placeholder="Name" />
                  </div>
                  <div class="form-group col-6">
                    <label for="inputTime"> Timetables</label>
                    <input type="time" class="form-control" id="inputTime" placeholder="Timetables" />
                  </div>
                  <div class="form-group col-6">
                    <label for="inputEmail"> Email</label>
                    <input type="email" class="form-control" id="inputEmail" placeholder="Email" />
                  </div>
                  <div class="form-group col-6">
                    <label for="inputNumber"> Number of Guests</label>
                    <input type="number" class="form-control" id="inputNumber" placeholder="Number of Guests" />
                  </div>
                  <div class="form-group col-6">
                    <label for="inputCel"> Phone</label>
                    <input type="tel" class="form-control" id="inputCel" placeholder="Phone" />
                  </div>
                  <div class="form-group col-12">
                    <label for="inputComment"> Further requests</label>
                  <textarea class="form-control" rows="4" id="inputComment" placeholder="Further requests"></textarea>
                </div>
              </div>
              <div class="row">
                  <div class="col-md-4 col-md-offset-4">
                    <button type="submit" class="btn btn-secondary btn-block">Reserve</button>
                  </div>
                </div>
            </form>
          </div>
        </div>

        <div class="row" id="OurLocation">
          <div class="col navMenu">
            <h2 class="text-center">~ Our Location ~</h2>
          </div>
        </div>
        <div class="row">
          <div class="col-md-3">
            <h3>Address:</h3>
            <p>Test street no 78963 </p>
            <h3>Email:</h3>
            <p>mail@example.com</p>
          </div>
          <div class="col-md-3">
            <h3>Address:</h3>
            <p>Test street no 78963 </p>
            <h3>Email:</h3>
            <p>mail@example.com</p>
          </div>
          <div class="col-md-3">
            <h3>Address:</h3>
            <p>Test street no 78963 </p>
            <h3>Email:</h3>
            <p>mail@example.com</p>
          </div>
          <div class="col-md-3">
            <h3>Address:</h3>
            <p>Test street no 78963 </p>
            <h3>Email:</h3>
            <p>mail@example.com</p>
          </div>
        </div>

        <div class="row footer bg-light">
          <div class="col">
            <p class="text-center">Follow us: 
              <a class="social-icon" href="#"><i class="fab fa-facebook"></i></a> 
              <a class="social-icon" href="#"><i class="fab fa-instagram"></i></a></p>
          </div>
          <div class="col">
            <p class="text-center">Copyright &copy; 2020</p>
          </div>
          <div class="col">
            <p class="text-center">Powered by: <a href="#">with love</a></p>
          </div>
        </div>
    </div>
  </div>
) } }
 export default App;

Now we are done friends also and If you have any kind of query or suggestion or any requirement then feel free to comment below.

Note: Friends, I just tell the basic setup and things, you can change the code according to your requirements. For better understanding must watch video above.

I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad.

Jassa

Thanks

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.