react-spinners#ScaleLoader JavaScript Examples

The following examples show how to use react-spinners#ScaleLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.js    From iiitt with MIT License 4 votes vote down vote up
function App() {
  const loading = (
    <div className="sweet-loading">
      <ScaleLoader
        css={override}
        sizeUnit={"px"}
        color={"#2e8b57"}
        size={80}
        height={35}
        width={12}
        radius={2}
        loading={true}
      />
      <div style={{ fontSize: "30px" }}>Loading...</div>
    </div>
  );

  const Home = Loadable({
    loader: () => import("./pages/home/index"),
    loading: () => loading,
  });
  const WebDevClub = Loadable({
    loader: () => import("./pages/webDevClub/index"),
    loading: () => loading,
  })
  const About = Loadable({
    loader: () => import("./pages/about/index"),
    loading: () => loading,
  });

  const Faculty = Loadable({
    loader: () => import("./pages/faculty/index"),
    loading: () => loading,
  });

  const Staff = Loadable({
    loader: () => import("./pages/staff/index"),
    loading: () => loading,
  });

  const AdmissionProcedure = Loadable({
    loader: () => import("./pages/admissionprocedure/index"),
    loading: () => loading,
  });

  // const AdmissionFeeStructure = Loadable({
  //   loader: () => import("./pages/admissionfeestructure/index"),
  //   loading: () => loading,
  // });

  // const AdmissionForms = Loadable({
  //   loader: () => import("./pages/admissionforms/index"),
  //   loading: () => loading,
  // });

  const AntiRagging = Loadable({
    loader: () => import("./pages/antiragging/index.js"),
    loading: () => loading,
  });

  // const AdmissionContact = Loadable({
  //   loader: () => import("./pages/admissioncontact/index"),
  //   loading: () => loading,
  // });

  const Notices = Loadable({
    loader: () => import("./pages/notices/index"),
    loading: () => loading,
  });

  const Tenders = Loadable({
    loader: () => import("./pages/tenders/index"),
    loading: () => loading,
  });

  const News = Loadable({
    loader: () => import("./pages/news/index"),
    loading: () => loading,
  });

  const Events = Loadable({
    loader: () => import("./pages/events/index"),
    loading: () => loading,
  });

  const Programs = Loadable({
    loader: () => import("./pages/programs/index"),
    loading: () => loading,
  });
  const Scholarship = Loadable({
    loader: () => import("./pages/scholarship/index"),
    loading: () => loading,
  });

  const Departments = Loadable({
    loader: () => import("./pages/departments/index"),
    loading: () => loading,
  });

  const Curriculum = Loadable({
    loader: () => import("./pages/curriculum/index"),
    loading: () => loading,
  });

  const Calendar = Loadable({
    loader: () => import("./pages/calendar/index"),
    loading: () => loading,
  });

  const Holidays = Loadable({
    loader: () => import("./pages/holidays/index"),
    loading: () => loading,
  });

  const Undergraduate = Loadable({
    loader: () => import("./pages/undergraduate/index"),
    loading: () => loading,
  });
  const Postgraduate = Loadable({
    loader: () => import("./pages/postgraduate/index"),
    loading: () => loading,
  });
  const PHDprogram = Loadable({
    loader: () => import("./pages/doctorate/index"),
    loading: () => loading,
  });
  const Faq = Loadable({
    loader: () => import("./pages/faqs/index"),
    loading: () => loading,
  });

  const Festivals = Loadable({
    loader: () => import("./pages/festivals/index"),
    loading: () => loading,
  });

  const Clubs = Loadable({
    loader: () => import("./pages/clubs/index"),
    loading: () => loading,
  });

  const ContactUs = Loadable({
    loader: () => import("./pages/contactus/index"),
    loading: () => loading,
  });

  const BoG = Loadable({
    loader: () => import("./pages/bog/index"),
    loading: () => loading,
  });

  const Senate = Loadable({
    loader: () => import("./pages/senate/index"),
    loading: () => loading,
  });

  const Fc = Loadable({
    loader: () => import("./pages/fc/index"),
    loading: () => loading,
  });

  const BWC = Loadable({
    loader: () => import("./pages/bwc/index"),
    loading: () => loading,
  });

  const RTI = Loadable({
    loader: () => import("./pages/rti/index"),
    loading: () => loading,
  });

  const Partners = Loadable({
    loader: () => import("./pages/partners/index"),
    loading: () => loading,
  });

  const Director = Loadable({
    loader: () => import("./pages/director/index"),
    loading: () => loading,
  });

  const Registrar = Loadable({
    loader: () => import("./pages/registrar/index"),
    loading: () => loading,
  });

  const GenderData = Loadable({
    loader: () => import("./pages/genderdata/index"),
    loading: () => loading,
  });

  const Biography = Loadable({
    loader: () => import("./pages/biography/index"),
    loading: () => loading,
  });

  const Vla = Loadable({
    loader: () => import("./pages/vla/index"),
    loading: () => loading,
  });

  const VlaRegistration = Loadable({
    loader: () => import("./pages/vlaregistration/index"),
    loading: () => loading,
  });

  const VlaResources = Loadable({
    loader: () => import("./pages/vlaresources/index"),
    loading: () => loading,
  });

  const VlaWorkshops = Loadable({
    loader: () => import("./pages/vlaworkshops/index"),
    loading: () => loading,
  });

  const VlaContact = Loadable({
    loader: () => import("./pages/vlacontact/index"),
    loading: () => loading,
  });

  const VlaRegistrationInfo = Loadable({
    loader: () => import("./pages/vlaregistrationinfo/index"),
    loading: () => loading,
  });

  const VlaWorkshopProposalTerms = Loadable({
    loader: () => import("./pages/vlaworkshopproposalterms/index"),
    loading: () => loading,
  });

  const VlaAttend = Loadable({
    loader: () => import("./pages/vlaattend/index"),
    loading: () => loading,
  });

  const VlaWorkshopProposal = Loadable({
    loader: () => import("./pages/vlaworkshopproposal/index"),
    loading: () => loading,
  });

  const VlaParticipants = Loadable({
    loader: () => import("./pages/vlaparticipants/index"),
    loading: () => loading,
  });

  const VlaSummary = Loadable({
    loader: () => import("./pages/vlasummary/index"),
    loading: () => loading,
  });

  const VlaVideos = Loadable({
    loader: () => import("./pages/vlavideos/index"),
    loading: () => loading,
  });

  const StudentCouncil = Loadable({
    loader: () => import("./pages/studentcouncil/index"),
    loading: () => loading,
  });

  const Admission_ug = Loadable({
    loader: () => import("./pages/Admission_ug/index"),
    loading: () => loading,
  });

  const Admission_pg = Loadable({
    loader: () => import("./pages/Admission_pg/index"),
    loading: () => loading,
  });

  const Admission_program = Loadable({
    loader: () => import("./pages/Admission_program/index"),
    loading: () => loading,
  });

  return (
    <BrowserRouter history={window.history} basename={process.env.PUBLIC_URL}>
      <link
        rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
      />
      <link
        rel="stylesheet"
        href="https://fonts.googleapis.com/icon?family=Material+Icons"
      />

      <Switch>
        <Route exact path="/" component={Home} />
        <Route path="/about" component={About} />
        <Route path="/faculty" component={Faculty} />
        <Route path="/staff" component={Staff} />
        <Route path="/admission" component={AdmissionProcedure} />
        {/* <Route
          path="/admission_fee_structure"
          component={AdmissionFeeStructure}
        /> */}
          <Route path="/webDevClub" component={WebDevClub} />
        {/* <Route path="/admission_forms" component={AdmissionForms} /> */}
        <Route path="/admission_ug" component={Admission_ug} />
        <Route path="/admission_pg" component={Admission_pg} />
        <Route path="/programs" component={Admission_program} />
        <Route path="/anti_ragging_committee" component={AntiRagging} />
        {/* <Route path="/admission_contact" component={AdmissionContact} /> */}
        <Route path="/general" component={Notices} />
        <Route path="/tenders" component={Tenders} />
        <Route path="/news" component={News} />
        <Route path="/events" component={Events} />
        <Route path="/programs" component={Programs} />
        <Route path="/scholarship" component={Scholarship} />
        <Route path="/departments" component={Departments} />
        <Route path="/curriculum" component={Curriculum} />
        <Route path="/calendar" component={Calendar} />
        <Route path="/holidays" component={Holidays} />
        <Route path="/undergraduate" component={Undergraduate} />
        <Route path="/postgraduate" component={Postgraduate} />
        <Route path="/doctorate" component={PHDprogram} />
        <Route path="/faq" component={Faq} />
        <Route path="/festivals" component={Festivals} />
        <Route path="/clubs" component={Clubs} />
        <Route path="/contactus" component={ContactUs} />
        <Route path="/bog" component={BoG} />
        <Route path="/senate" component={Senate} />
        <Route path="/fc" component={Fc} />
        <Route path="/bwc" component={BWC} />
        <Route path="/rti" component={RTI} />
        <Route path="/industry_partners" component={Partners} />
        <Route path="/director" component={Director} />
        <Route path="/registrar" component={Registrar} />
        <Route path="/genderwisedata" component={GenderData} />
        <Route exact path="/faculty_detail/:dept/:id" component={Biography} />
        <Route path="/vla" component={Vla} />
        <Route path="/vla_registration" component={VlaRegistration} />
        <Route path="/vla_resources" component={VlaResources} />
        <Route path="/vla_workshops" component={VlaWorkshops} />
        <Route path="/vla_contact" component={VlaContact} />
        <Route path="/vla_registration_info" component={VlaRegistrationInfo} />
        <Route
          path="/vla_workshop_proposal_terms"
          component={VlaWorkshopProposalTerms}
        />
        <Route path="/vla_attend" component={VlaAttend} />
        <Route path="/vla_workshop_proposal" component={VlaWorkshopProposal} />
        <Route path="/studentcouncil" component={StudentCouncil} />
        <Route
          path={/\/vla_workshop\d_participants/}
          component={VlaParticipants}
        />
        <Route path={/\/vla_workshop\d_summary/} component={VlaSummary} />
        <Route
          path={/\/vla_videos_\d\d?-\d\d?[a-zA-Z]*\d\d\d\d/}
          component={VlaVideos}
        />
        <Route path="/*" component={PageNotFound} />
      </Switch>
    </BrowserRouter>
  );
}