2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-31 17:28:52 +00:00
|
|
|
/**
|
|
|
|
* @module SplashPage
|
|
|
|
* SplashPage component is used as a landing page with a box horizontally and center aligned on the page. It's used as the login landing page.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```js
|
|
|
|
* <SplashPage >
|
|
|
|
* content here
|
|
|
|
* </SplashPage
|
|
|
|
* ```
|
2023-02-16 22:44:33 +00:00
|
|
|
* @param {boolean} [hasAltContent] - boolean to bypass container styling
|
2022-05-31 17:28:52 +00:00
|
|
|
* @param {boolean} [showTruncatedNavBar = true] - boolean to hide or show the navBar. By default this is true.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import Component from '@glimmer/component';
|
2018-09-25 16:28:26 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
2022-05-31 17:28:52 +00:00
|
|
|
export default class SplashPage extends Component {
|
|
|
|
@service version;
|
|
|
|
@service auth;
|
|
|
|
@service store;
|
|
|
|
|
|
|
|
get showTruncatedNavBar() {
|
|
|
|
// default is true unless showTruncatedNavBar is defined as false
|
|
|
|
return this.args.showTruncatedNavBar === false ? false : true;
|
|
|
|
}
|
|
|
|
}
|