2
* Copyright 2021 The Backstage Authors
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
23
HomePageStarredEntities,
26
HomePageRecentlyVisited,
28
} from '@backstage/plugin-home';
29
import { Content, Header, Page } from '@backstage/core-components';
30
import { HomePageCalendar } from '@backstage/plugin-gcalendar';
31
import { MicrosoftCalendarCard } from '@backstage/plugin-microsoft-calendar';
32
import React from 'react';
33
import HomeIcon from '@material-ui/icons/Home';
34
import { HomePagePagerDutyCard } from '@backstage/plugin-pagerduty';
36
const clockConfigs: ClockConfig[] = [
39
timeZone: 'America/New_York',
47
timeZone: 'Europe/Stockholm',
51
timeZone: 'Asia/Tokyo',
55
const timeFormat: Intl.DateTimeFormatOptions = {
61
const defaultConfig = [
63
component: 'CompanyLogo',
73
component: 'WelcomeTitle',
80
component: 'HomePageSearchBar',
88
export const homePage = (
90
<Header title={<WelcomeTitle />} pageTitleOverride="Home">
92
clockConfigs={clockConfigs}
93
customTimeFormat={timeFormat}
97
<CustomHomepageGrid config={defaultConfig}>
98
<HomePageRandomJoke />
100
<HomePagePagerDutyCard name="Rota" />
101
<MicrosoftCalendarCard />
102
<HomePageStarredEntities />
103
<HomePageCompanyLogo />
108
url: 'https://backstage.io',
109
label: 'Backstage Homepage',
114
<HomePageTopVisited />
115
<HomePageRecentlyVisited />
116
</CustomHomepageGrid>