Skip to content

Commit deca038

Browse files
committed
feat(home-page): adds starter for homepage
1 parent 7ff4fe7 commit deca038

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1045
-8
lines changed
3.01 MB
Binary file not shown.
12.4 MB
Binary file not shown.
6.38 KB
Binary file not shown.

.yarn/install-state.gz

3.91 KB
Binary file not shown.

apps/www/project.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
"main": "apps/www/src/main.ts",
1515
"polyfills": ["zone.js"],
1616
"tsConfig": "apps/www/tsconfig.app.json",
17-
"assets": ["apps/www/src/favicon.ico", "apps/www/src/assets"],
17+
"assets": [
18+
"apps/www/src/favicon.ico",
19+
"apps/www/src/assets",
20+
{
21+
"glob": "**/*.svg",
22+
"input": "node_modules/@coreui/icons/sprites",
23+
"output": "assets/core-ui"
24+
}
25+
],
1826
"styles": ["apps/www/src/styles.css"],
1927
"scripts": []
2028
},

apps/www/src/app/app.component.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:host {
2+
display: flex;
3+
flex-direction: column;
4+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
<router-outlet></router-outlet>
1+
<header app-masthead>
2+
</header>
3+
<main>
4+
<router-outlet></router-outlet>
5+
</main>

apps/www/src/app/app.module.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import { RouterModule } from '@angular/router';
44

55
import { AppComponent } from './app.component';
66
import { appRoutes } from './app.routes';
7+
import {MastheadComponent} from "./components/masthead";
78

89
@NgModule({
910
declarations: [AppComponent],
1011
imports: [
11-
BrowserModule.withServerTransition({ appId: 'serverApp' }),
12-
RouterModule.forRoot(appRoutes, { initialNavigation: 'enabledBlocking' }),
12+
BrowserModule.withServerTransition({appId: 'serverApp'}),
13+
RouterModule.forRoot(appRoutes, {initialNavigation: 'enabledBlocking'}),
14+
MastheadComponent,
1315
],
1416
providers: [],
1517
bootstrap: [AppComponent],

apps/www/src/app/app.routes.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
import { Route } from '@angular/router';
1+
import {Route, Routes} from '@angular/router';
22

3-
export const appRoutes: Route[] = [];
3+
const home: Route = {
4+
path: '',
5+
loadComponent: () => import('./pages/home').then(mod => mod.HomePageComponent),
6+
}
7+
8+
export const appRoutes: Routes = [
9+
home,
10+
];
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:host(.container) {
2+
display: block;
3+
margin: auto;
4+
width: 100%;
5+
max-width: var(--grid-max-width);
6+
padding-inline: var(--grid-gutter);
7+
}
8+
9+
:host(.container--wide) {
10+
max-width: var(--grid-wide-max-width);
11+
}

0 commit comments

Comments
 (0)