diff --git a/public/configuration.json b/public/configuration.json index 4a81f531..d93080f3 100644 --- a/public/configuration.json +++ b/public/configuration.json @@ -92,8 +92,8 @@ "slot.1.widget": "promoarticle", "slot.1.conf": "", "slot.2.widget": "widgetcontainer", - "slot.2.conf": "image:${image.library.url}web_promo_small/spromo_Canal_Bundle.png,btn:HelloHELLO,btnLink:https://google.com/", - "slot.3.widget": "", + "slot.2.conf": "image:${image.library.url}web_promo_small/spromo_Canal_Bundle.png,texts:2021NitroPromo,btnLink:https://google.com", + "slot.3.widget": "promoarticle", "slot.3.conf": "", "slot.4.widget": "", "slot.4.conf": "", diff --git a/src/views/hotel-view/HotelView.tsx b/src/views/hotel-view/HotelView.tsx index d2abb427..dd83ed44 100644 --- a/src/views/hotel-view/HotelView.tsx +++ b/src/views/hotel-view/HotelView.tsx @@ -52,25 +52,25 @@ export const HotelView: FC = props => widgetSlot={ 2 } widgetType={GetConfiguration('hotelview')['widgets']['slot.' + 2 + '.widget']} widgetConf={GetConfiguration('hotelview')['widgets']['slot.' + 2 + '.conf']} - className="col-6" + className="col-7" /> = props => { - const [data, setData] = useState(null); + const [data, setData] = useState(null); - useEffect(() => - { - SendMessageHook(new GetCommunityGoalHallOfFameMessageComposer(props.conf)); - }, [props.conf]); + useEffect(() => + { + SendMessageHook(new GetCommunityGoalHallOfFameMessageComposer(props.conf)); + }, [props.conf]); - const onCommunityGoalHallOfFameMessageEvent = useCallback((event: CommunityGoalHallOfFameMessageEvent) => - { - const parser = event.getParser(); - setData(parser.data); - }, []); + const onCommunityGoalHallOfFameMessageEvent = useCallback((event: CommunityGoalHallOfFameMessageEvent) => + { + const parser = event.getParser(); + setData(parser.data); + }, []); - CreateMessageHook(CommunityGoalHallOfFameMessageEvent, onCommunityGoalHallOfFameMessageEvent); + CreateMessageHook(CommunityGoalHallOfFameMessageEvent, onCommunityGoalHallOfFameMessageEvent); - if (!data) return null; + if (!data) return null; - return ( -
- {data.hof && (data.hof.length > 0) && data.hof.map((entry, ind) => -
-
{entry.userName}
- -
- )} -
- ); + return ( +
+ {data.hof && (data.hof.length > 0) && data.hof.map((entry, ind) => +
+
+
+
{ind + 1}. { entry.userName }
+
{LocalizeText('landing.view.competition.hof.points', ['points'], [entry.currentScore.toString()])}
+
+
+ +
+ )} +
+ ); } diff --git a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx index 5b110db6..f124ab60 100644 --- a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx +++ b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx @@ -30,7 +30,7 @@ export const PromoArticleWidgetView: FC = props => if (!articles) return null; return ( -
+
{ LocalizeText('landing.view.promo.article.header') }
diff --git a/src/views/hotel-view/views/widgets/widgetcontainer/WIdgetContainerView.tsx b/src/views/hotel-view/views/widgets/widgetcontainer/WIdgetContainerView.tsx index d8a903ef..9541333f 100644 --- a/src/views/hotel-view/views/widgets/widgetcontainer/WIdgetContainerView.tsx +++ b/src/views/hotel-view/views/widgets/widgetcontainer/WIdgetContainerView.tsx @@ -1,5 +1,6 @@ import { FC, useCallback, useMemo } from 'react'; import { GetConfigurationManager } from '../../../../../api/core/'; +import { LocalizeText } from '../../../../../utils/LocalizeText'; import { WidgetContainerViewProps } from './WidgetContainerView.types'; export const WidgetContainerView: FC = props => @@ -40,8 +41,13 @@ export const WidgetContainerView: FC = props => }, [ config ]); return ( -
- { getOption('image') } +
+
+
+

{LocalizeText(`landing.view.${getOption('texts')}.header`)}

+ { LocalizeText(`landing.view.${getOption('texts')}.body`) } + +
); } diff --git a/src/views/hotel-view/views/widgets/widgetcontainer/WidgetContainerView.scss b/src/views/hotel-view/views/widgets/widgetcontainer/WidgetContainerView.scss index e69de29b..131b5603 100644 --- a/src/views/hotel-view/views/widgets/widgetcontainer/WidgetContainerView.scss +++ b/src/views/hotel-view/views/widgets/widgetcontainer/WidgetContainerView.scss @@ -0,0 +1,9 @@ +.widgetcontainer { + .widgetcontainer-image { + width: 150px; + height: 150px; + margin-right: 10px; + background-repeat: no-repeat; + background-position: top center; + } +}