NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import * as React from 'react';
import { Link, NavLink } from 'react-router-dom';
// hotel tabs

import Box from '@mui/material/Box';
import Tab from '@mui/material/Tab';
import TabContext from '@mui/lab/TabContext';
import TabList from '@mui/lab/TabList';
import TabPanel from '@mui/lab/TabPanel';
import HomeForm from "./home_form";
import Button from '@mui/material/Button';
import { display } from '@mui/system';
import Card from "../components/Card";
import { Grid, Radio, Typography } from '@mui/material';
import Checkbox from '@mui/material/Checkbox';
import FavoriteBorder from '@mui/icons-material/FavoriteBorder';
import Favorite from '@mui/icons-material/Favorite';
import NavigateNextIcon from '@mui/icons-material/NavigateNext';
import Classselect from "../components/Classselect"
import Avatar from '@mui/material/Avatar';
import SwapHorizIcon from '@mui/icons-material/SwapHoriz';
import { FormatAlignJustifyRounded } from '@mui/icons-material';
// import Searchresult from './Searchresult';


// slider
import Slider from "react-slick";
import nepal from "../images/card/nepal.png";

// bootstrap
import "../../node_modules/bootstrap/dist/css/bootstrap.min.css"

// css
import './card.css';

const label = { inputProps: { 'aria-label': 'Checkbox demo' } };
// const openInNewTab = url => {
// window.open(url, '_blank', 'noopener,noreferrer');
// };
const Homeform = (props) => {

const settings = {
speed: 500,
slidesToShow: 7,
slidesToScroll: 1,
initialSlide: 1,
responsive: [
{
breakpoint: 1400,
settings: {
slidesToShow: 6,
slidesToScroll: 1,
}
},
{
breakpoint: 1200,
settings: {
slidesToShow: 5,
slidesToScroll: 1,
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 4,
slidesToScroll: 1
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
},
{
breakpoint: 500,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}
]
};
const [value, setValue] = React.useState('1');

const handleChange = (event, newValue) => {
setValue(newValue);
};
return (
<section>
<div className="container homeform_container">
<p className="header_row">
<h5>{props.header}</h5>
</p>
<div className="row content_row" >

<div className="col-12" mx={5}>
<Box sx={{ width: '100%', typography: 'body1' }} >
<TabContext value={value} centered>
<Box pt={5}>
<TabList onChange={handleChange} aria-label="lab API tabs example"
TabIndicatorProps={{ style: { display: "none", }, }}
sx={{ marginX: "60px", }}>
<Radio /><Tab label="Oneway" value="1" sx={{ fontSize: '15px', color: 'black', fontWeight: 'bold' }} ></Tab>
<Radio /><Tab label="Round Trip" value="2" sx={{ fontSize: '15px', color: 'black', fontWeight: 'bold' }} />
<Radio /><Tab label="Multycity " value="3" sx={{ fontSize: '15px', color: 'black', fontWeight: 'bold' }} />


</TabList>
</Box>


<TabPanel value="1" >
<Box py={2} sx={{ backgroundColor: "white", borderRadius: "20px", }}>

<form action="">
<div className="row">
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="from" className="form_lable">FROM</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20px", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
{/* <Avatar mt={5}>
<SwapHorizIcon />
</Avatar> */}



<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="to" className="form_lable">TO</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<div class="dot"></div><option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">DEPARTURE</label>

<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" >

</input>
</div>
</div>

<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">RETURN</label>
<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" disabled>

</input>
</div>
</div>

<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">TRAVELLERS & CLASS </label>
<div name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069", textAlign: 'center', alignItems: 'center', display: 'flex' }}>

<Typography>1 Adult Business</Typography>
<Classselect />

</div>

</div>
</div>

</div>
</form>

</Box>
<form action='/Searchresult'>
<Box display='flex' justifyContent='center'>
<div class="wrapper">

<text>Select A Fare Type:</text>
<input type="radio" name="select" id="option-1" checked />
<input type="radio" name="select" id="option-2" />
<input type="radio" name="select" id="option-3" />
<input type="radio" name="select" id="option-4" />
<input type="radio" name="select" id="option-5" />
<input type="radio" name="select" id="option-6" />
<label for="option-1" class="option option-1">
<div class="dot"></div>
<text >Regular Fares</text>
</label>
<label for="option-2" class="option option-2">
<div class="dot"></div>
<text>Armed Forces Fares</text>
</label>
<label for="option-3" class="option option-3">
<div class="dot"></div>
<text>Student Fares</text>
</label>
<label for="option-4" class="option option-4">
<div class="dot"></div>
<text>Senior Citizen Fares</text>
</label>
<label for="option-5" class="option option-5">
<div class="dot"></div>
<text>Doctors & Nurses Fares</text>
</label>
<label for="option-6" class="option option-6">
<div class="dot"></div>
<text>Double Seat Fares</text>
</label>
<text className='col-auto fare_search ' >
<button type='submit' path="" className='search' > Search</button>

{/* <button className='search' onClick={() => openInNewTab(<Searchresult />)}>
Search
</button> */}
</text>


</div>
</Box>
</form>
</TabPanel>
<TabPanel value="2" >
<Box py={2} sx={{ backgroundColor: "white", borderRadius: "20px", }}>

<form action="">
<div className="row">
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="from" className="form_lable">FROM</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="to" className="form_lable">TO</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label for="departure" className="form_lable">DEPARTURE</label>

<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" >

</input>
</div>
</div>

<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">RETURN</label>
<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport">

</input>
</div>
</div>

<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">TRAVELLERS & CLASS </label>



<div name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069", textAlign: 'center', alignItems: 'center', display: 'flex' }}>

<Typography>1 Adult Business</Typography>
<Classselect />

</div>

</div>
</div>

</div>
</form>

</Box>
<Box display='flex' justifyContent='center'>
<div class="wrapper">
<text>Select A Fare Type:</text>
<input type="radio" name="select" id="option-1" checked />
<input type="radio" name="select" id="option-2" />
<input type="radio" name="select" id="option-3" />
<input type="radio" name="select" id="option-4" />
<input type="radio" name="select" id="option-5" />
<input type="radio" name="select" id="option-6" />
<label for="option-1" class="option option-1">
<div class="dot"></div>
<text >Regular Fares</text>
</label>
<label for="option-2" class="option option-2">
<div class="dot"></div>
<text>Armed Forces Fares</text>
</label>
<label for="option-3" class="option option-3">
<div class="dot"></div>
<text>Student Fares</text>
</label>
<label for="option-4" class="option option-4">
<div class="dot"></div>
<text>Senior Citizen Fares</text>
</label>
<label for="option-5" class="option option-5">
<div class="dot"></div>
<text>Doctors & Nurses Fares</text>
</label>
<label for="option-6" class="option option-6">
<div class="dot"></div>
<text>Double Seat Fares</text>
</label>
<text className='col-auto fare_search ' >
<button type='search' className='search' >Search</button>
</text>
</div>
</Box>
</TabPanel>
<TabPanel value="3">
<Box py={2} sx={{ backgroundColor: "white", borderRadius: "20px", }}>

<form action="">
<div className="row">
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="from" className="form_lable">FROM</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="to" className="form_lable">TO</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label for="departure" className="form_lable">DEPARTURE</label>

<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" >

</input>
</div>
</div>

{/* <div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">RETURN</label>
<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport">

</input>
</div>
</div> */}

<div className="col-12 col-md-6 col-lg-4 mb-3">
<div className="form_input">
<label className="form_lable">TRAVELLERS & CLASS </label>



<div name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069", textAlign: 'center', alignItems: 'center', display: 'flex' }}>

<Typography>1 Adult Business</Typography>
<Classselect />

</div>

</div>
</div>

</div>
</form>

</Box>
<Box py={2} sx={{ backgroundColor: "white", borderRadius: "20px", }}>

<form action="">
<div className="row">
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="from" className="form_lable">FROM</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-3 mb-3">
<div className="form_input">
<label for="to" className="form_lable">TO</label>
<select name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069" }}>
<option mx={5}>Enter City or airport </option>
<option px={5} sx={{ fontSize: "9px", fontWeight: "bold" }}>hello1</option>
<option px={5}>hello2</option>
<option px={5}>hello3</option>
<option mx={5}>hello4</option>
</select>
</div>
</div>
<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label for="departure" className="form_lable">DEPARTURE</label>

<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" >

</input>
</div>
</div>

{/* <div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">RETURN</label>
<input type="date" name="departure" id="departure" className="deaprture_input" placeholder="Enter city or airport" >

</input>
</div>
</div> */}

<div className="col-12 col-md-6 col-lg-2 mb-3">
<div className="form_input">
<label className="form_lable">TRAVELLERS & CLASS </label>


<div name="" id="" style={{ width: "100%", borderRadius: "20PX", height: "5rem", border: "3px solid #70707069", textAlign: 'center', alignItems: 'center', display: 'flex' }}>

<Typography>1 Adult Business</Typography>
<Classselect />

</div>

</div>
</div>

<div className="col-12 col-md-6 col-lg-2 " >

<Button variant='outlined' sx={{ fontSize: "13px", marginTop: "20px" }}>+ Add Another City</Button>


</div>

</div>
</form>

</Box>
<Box display='flex' justifyContent='center'>
<div class="wrapper">
<text>Select A Fare Type:</text>
<input type="radio" name="select" id="option-1" checked />
<input type="radio" name="select" id="option-2" />
<input type="radio" name="select" id="option-3" />
<input type="radio" name="select" id="option-4" />
<input type="radio" name="select" id="option-5" />
<input type="radio" name="select" id="option-6" />
<label for="option-1" class="option option-1">
<div class="dot"></div>
<text >Regular Fares</text>
</label>
<label for="option-2" class="option option-2">
<div class="dot"></div>
<text>Armed Forces Fares</text>
</label>
<label for="option-3" class="option option-3">
<div class="dot"></div>
<text>Student Fares</text>
</label>
<label for="option-4" class="option option-4">
<div class="dot"></div>
<text>Senior Citizen Fares</text>
</label>
<label for="option-5" class="option option-5">
<div class="dot"></div>
<text>Doctors & Nurses Fares</text>
</label>
<label for="option-6" class="option option-6">
<div class="dot"></div>
<text>Double Seat Fares</text>
</label>
<text className='col-auto fare_search ' >
<button type='submit' className='search' >Search</button>
</text>
</div>
</Box>
</TabPanel>

</TabContext>
</Box>
</div>

</div>
</div>
</section>
)
}

export default Homeform;
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.