|
@ -0,0 +1,128 @@ |
|
|
|
|
|
import React, { useState } from "react"; |
|
|
|
|
|
import WebpageBanner from "../../components/webpage_container/WebpageBanner"; |
|
|
|
|
|
import { |
|
|
|
|
|
StudySite, |
|
|
|
|
|
getHeatmapData, |
|
|
|
|
|
} from "../../components/webpage_container/StudySite"; |
|
|
|
|
|
import { pushToMouseLog } from "../../core/log/SensorLogger"; |
|
|
|
|
|
import { Spacer } from "@geist-ui/core"; |
|
|
|
|
|
import ScrollableTab from "../../components/ScrollableTab"; |
|
|
|
|
|
import { Tab } from "react-tabs-scrollable"; |
|
|
|
|
|
import { |
|
|
|
|
|
Info, |
|
|
|
|
|
Clipboard, |
|
|
|
|
|
Search, |
|
|
|
|
|
MapPin, |
|
|
|
|
|
Home, |
|
|
|
|
|
Star, |
|
|
|
|
|
Phone, |
|
|
|
|
|
Zap, |
|
|
|
|
|
CheckSquare, |
|
|
|
|
|
Cloud, |
|
|
|
|
|
} from "@geist-ui/icons"; |
|
|
|
|
|
import PropertyOverview from "./tab_content/PropertyOverview"; |
|
|
|
|
|
import PropertyFeatures from "./tab_content/PropertyFeatures"; |
|
|
|
|
|
import PropertyEnergyEfficiency from "./tab_content/PropertyEnergyEfficiency"; |
|
|
|
|
|
import PropertyLocation from "./tab_content/PropertyLocation"; |
|
|
|
|
|
import PropertyTransfer from "./tab_content/PropertyTransfer"; |
|
|
|
|
|
import PropertyConstruction from "./tab_content/PropertyConstruction"; |
|
|
|
|
|
import PropertyFacilities from "./tab_content/PropertyFacilities"; |
|
|
|
|
|
import PropertyOutsideSpace from "./tab_content/PropertyOutsideSpace"; |
|
|
|
|
|
import PropertyNotices from "./tab_content/PropertyNotices"; |
|
|
|
|
|
import PropertyContact from "./tab_content/PropertyContact"; |
|
|
|
|
|
|
|
|
|
|
|
const tabContent = [ |
|
|
|
|
|
<PropertyOverview />, |
|
|
|
|
|
<PropertyFeatures />, |
|
|
|
|
|
<PropertyEnergyEfficiency />, |
|
|
|
|
|
<PropertyLocation />, |
|
|
|
|
|
<PropertyTransfer />, |
|
|
|
|
|
<PropertyConstruction />, |
|
|
|
|
|
<PropertyFacilities />, |
|
|
|
|
|
<PropertyOutsideSpace />, |
|
|
|
|
|
<PropertyNotices />, |
|
|
|
|
|
<PropertyContact />, |
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
function StartPage5({ redirectLoc }) { |
|
|
|
|
|
const [activeTabIndex, setActiveTabIndex] = useState(0); |
|
|
|
|
|
|
|
|
|
|
|
var saveMouseLog = function () { |
|
|
|
|
|
pushToMouseLog(getHeatmapData()); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const onActiveTabChange = (index) => { |
|
|
|
|
|
setActiveTabIndex(index); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// TODO THINK IF I WANT TO JUST USE AN OVERLAY FOR OTHER DUMMY LINKS, WHICH ARENT CORRECT??? |
|
|
|
|
|
// IS THAT OKAY??? |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
<StudySite> |
|
|
|
|
|
<WebpageBanner translationKey="task_5_info" /> |
|
|
|
|
|
<Spacer h={2} /> |
|
|
|
|
|
<img |
|
|
|
|
|
src="/images/cheerful_chateaus_logo.png" |
|
|
|
|
|
width="150px" |
|
|
|
|
|
alt="Cheerful Chateaus Logo" |
|
|
|
|
|
/> |
|
|
|
|
|
<Spacer h={3} /> |
|
|
|
|
|
{tabContent[activeTabIndex]} |
|
|
|
|
|
<ScrollableTab onActiveTabChange={onActiveTabChange}> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Search viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Overview |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="button" redirectLoc={redirectLoc}> |
|
|
|
|
|
<Star viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Features |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Zap viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Energy Efficiency |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<MapPin viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Location |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<CheckSquare viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Transfer |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Home viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Construction |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Clipboard viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Facilities |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Cloud viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Outside Space |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Info viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Notices |
|
|
|
|
|
</Tab> |
|
|
|
|
|
<Tab actionType="text"> |
|
|
|
|
|
<Phone viewBox="0 -8 24 32" size={18} /> |
|
|
|
|
|
<Spacer inline w={0.35} /> |
|
|
|
|
|
Contact |
|
|
|
|
|
</Tab> |
|
|
|
|
|
</ScrollableTab> |
|
|
|
|
|
</StudySite> |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default StartPage5; |