Skip to content

Commit f1f95eb

Browse files
docs: fix for #396
1 parent 3a24498 commit f1f95eb

File tree

13 files changed

+169
-202
lines changed

13 files changed

+169
-202
lines changed

projects/bulma-app/src/app/app-routing.module.ts

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,93 +15,99 @@ const routes: Routes = [
1515
import('./gettingstarted/gettingstarted.module').then((gs) => gs.GettingstartedModule),
1616
},
1717
{
18-
path: 'home',
19-
loadChildren: () => import('./home/home.module').then((home) => home.HomeModule),
20-
},
21-
{
22-
path: 'menu',
18+
path: 'components/menu',
2319
loadChildren: () => import('./menu/menu.module').then((menu) => menu.MenuModule),
2420
},
2521
{
26-
path: 'navbar',
22+
path: 'components/navbar',
2723
loadChildren: () => import('./navbar/navbar.module').then((navbar) => navbar.NavbarModule),
2824
},
2925
{
30-
path: 'message',
26+
path: 'components/message',
3127
loadChildren: () => import('./message/message.module').then((message) => message.MessageModule),
3228
},
3329
{
34-
path: 'card',
30+
path: 'components/card',
3531
loadChildren: () => import('./card/card.module').then((card) => card.CardModule),
3632
},
3733
{
38-
path: 'modal',
34+
path: 'components/modal',
3935
loadChildren: () => import('./modal/modal.module').then((modal) => modal.ModalModule),
4036
},
4137
{
42-
path: 'panel',
38+
path: 'components/panel',
4339
loadChildren: () => import('./panel/panel.module').then((panel) => panel.PanelModule),
4440
},
4541
{ path: 'tab', loadChildren: () => import('./tab/tab.module').then((tab) => tab.TabModule) },
4642
{
47-
path: 'button',
43+
path: 'elements/button',
4844
loadChildren: () => import('./button/button.module').then((button) => button.ButtonModule),
4945
},
5046
{
51-
path: 'input',
47+
path: 'form/input',
5248
loadChildren: () => import('./input/input.module').then((input) => input.InputModule),
5349
},
5450
{
55-
path: 'textarea',
51+
path: 'form/textarea',
5652
loadChildren: () =>
5753
import('./textarea/textarea.module').then((textarea) => textarea.TextareaModule),
5854
},
5955
{
60-
path: 'progress',
56+
path: 'elements/progress',
6157
loadChildren: () =>
6258
import('./progressbar/progressbar.module').then((progress) => progress.ProgressbarModule),
6359
},
6460
{
65-
path: 'container',
61+
path: 'layout/container',
6662
loadChildren: () =>
6763
import('./container/container.module').then((container) => container.ContainerModule),
6864
},
6965
{
70-
path: 'footer',
66+
path: 'layout/footer',
7167
loadChildren: () => import('./footer/footer.module').then((footer) => footer.FooterModule),
7268
},
7369
{
74-
path: 'hero',
70+
path: 'layout/hero',
7571
loadChildren: () => import('./hero/hero.module').then((hero) => hero.HeroModule),
7672
},
7773
{
7874
path: 'core-team',
7975
loadChildren: () => import('./team/team.module').then((team) => team.TeamModule),
8076
},
81-
{ path: 'box', loadChildren: () => import('./box/box.module').then((box) => box.BoxModule) },
77+
{
78+
path: 'elements/box',
79+
loadChildren: () => import('./box/box.module').then((box) => box.BoxModule),
80+
},
8281
// Landing Components routings
8382
{
84-
path: 'Components',
83+
path: 'components',
8584
loadChildren: () =>
8685
import('./landingcomponents/components/components.module').then(
8786
(comp) => comp.ComponentsModule,
8887
),
8988
},
9089
{
91-
path: 'Elements',
90+
path: 'elements',
9291
loadChildren: () =>
9392
import('./landingcomponents/elements/elements.module').then((eles) => eles.ElementsModule),
9493
},
9594
{
96-
path: 'Form',
95+
path: 'form',
9796
loadChildren: () =>
9897
import('./landingcomponents/forms/forms.module').then((form) => form.FormsModule),
9998
},
10099
{
101-
path: 'Layout',
100+
path: 'layout',
102101
loadChildren: () =>
103102
import('./landingcomponents/layout/layout.module').then((layout) => layout.LayoutModule),
104103
},
104+
{
105+
path: '**',
106+
loadChildren: () =>
107+
import('./introduction/introduction.module').then(
108+
(introduction) => introduction.IntroductionModule,
109+
),
110+
},
105111
];
106112

107113
@NgModule({
Lines changed: 89 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,95 @@
11
<bu-footer>
2-
<div buContainer>
3-
<div class="bd-footer-links">
4-
<div class="columns">
5-
<div class="column is-3">
6-
<p class="bd-footer-link-title">
7-
<a [routerLink]="['/']">Home</a>
8-
</p>
9-
<p class="bd-footer-link-title">
10-
<a href="https://bulma.io/blog">Blog</a>
11-
</p>
12-
</div>
13-
14-
<div class="column is-3">
15-
<p class="bd-footer-link-title">
16-
Documentation
17-
</p>
18-
<p class="bd-footer-link">
19-
<a routerLink='/Components'>
20-
Components
21-
</a>
22-
</p>
23-
<p class="bd-footer-link">
24-
<a routerLink='/Elements'>
25-
Elements
26-
</a>
27-
</p>
28-
<p class="bd-footer-link">
29-
<a routerLink='/Form'>
30-
Form
31-
</a>
32-
</p>
33-
<p class="bd-footer-link">
34-
<a routerLink='/Layout'>
35-
Layout
36-
</a>
37-
</p>
38-
</div>
2+
<div buContainer>
3+
<div class="bd-footer-links">
4+
<div class="columns">
5+
<div class="column is-3">
6+
<p class="bd-footer-link-title">
7+
<a [routerLink]="['/']">Home</a>
8+
</p>
9+
<p class="bd-footer-link-title">
10+
<a href="https://bulma.io/blog">Blog</a>
11+
</p>
12+
</div>
3913

40-
<div class="badge-container column is-3">
14+
<div class="column is-3">
15+
<p class="bd-footer-link-title">
16+
Documentation
17+
</p>
18+
<p class="bd-footer-link">
19+
<a [routerLink]="['components']">
20+
Components
21+
</a>
22+
</p>
23+
<p class="bd-footer-link">
24+
<a [routerLink]="['elements']">
25+
Elements
26+
</a>
27+
</p>
28+
<p class="bd-footer-link">
29+
<a [routerLink]="['form']">
30+
Form
31+
</a>
32+
</p>
33+
<p class="bd-footer-link">
34+
<a [routerLink]="['layout']">
35+
Layout
36+
</a>
37+
</p>
38+
</div>
4139

42-
<p>
43-
<a href="https://bulma.io/made-with-bulma/" target="_blank">
44-
<img src="https://bulma.io/images/made-with-bulma.png" alt="Made with Bulma" width="128"
45-
height="24">
46-
</a>
47-
</p>
48-
<p>
49-
<a href="https://www.netlify.com" target="_blank">
50-
<img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"
51-
alt="Deploys by Netlify" />
52-
</a>
53-
</p>
54-
</div>
55-
<div class="badge-container column is-3">
56-
<p>
57-
<a class="github-button" href="https://github.com/ngx-builders/ngx-bulma" target="_blank"
58-
data-size="large" data-show-count="true"
59-
aria-label="Star ngx-builders/ngx-bulma on GitHub">Star</a>
60-
</p>
61-
<p>
62-
<a class="twitter-follow-button" href="https://twitter.com/ngx_builders" target="_blank"
63-
data-size="large">Follow @ngx_builders</a>
64-
</p>
65-
</div>
66-
</div>
40+
<div class="badge-container column is-3">
41+
<p>
42+
<a href="https://bulma.io/made-with-bulma/" target="_blank">
43+
<img
44+
src="https://bulma.io/images/made-with-bulma.png"
45+
alt="Made with Bulma"
46+
width="128"
47+
height="24"
48+
/>
49+
</a>
50+
</p>
51+
<p>
52+
<a href="https://www.netlify.com" target="_blank">
53+
<img
54+
src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"
55+
alt="Deploys by Netlify"
56+
/>
57+
</a>
58+
</p>
6759
</div>
60+
<div class="badge-container column is-3">
61+
<p>
62+
<a
63+
class="github-button"
64+
href="https://github.com/ngx-builders/ngx-bulma"
65+
target="_blank"
66+
data-size="large"
67+
data-show-count="true"
68+
aria-label="Star ngx-builders/ngx-bulma on GitHub"
69+
>Star</a
70+
>
71+
</p>
72+
<p>
73+
<a
74+
class="twitter-follow-button"
75+
href="https://twitter.com/ngx_builders"
76+
target="_blank"
77+
data-size="large"
78+
>Follow @ngx_builders</a
79+
>
80+
</p>
81+
</div>
82+
</div>
6883
</div>
84+
</div>
6985

70-
71-
<div buContainer class="copyright-container has-text-centered">
72-
<p>&copy; ngx-builders |<a href="https://github.com/ngx-builders/ngx-bulma/blob/master/LICENSE"
73-
target="_blank">MIT License</a>
74-
</p>
75-
</div>
76-
</bu-footer>
86+
<div buContainer class="copyright-container has-text-centered">
87+
<p>
88+
&copy; ngx-builders |<a
89+
href="https://github.com/ngx-builders/ngx-bulma/blob/master/LICENSE"
90+
target="_blank"
91+
>MIT License</a
92+
>
93+
</p>
94+
</div>
95+
</bu-footer>

projects/bulma-app/src/app/home/home-routing.module.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

projects/bulma-app/src/app/home/home.component.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

projects/bulma-app/src/app/home/home.component.scss

Whitespace-only changes.

projects/bulma-app/src/app/home/home.component.spec.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

projects/bulma-app/src/app/home/home.component.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

projects/bulma-app/src/app/home/home.module.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3-
import {ModalComponent} from './modal.component';
3+
import { ModalComponent } from './modal.component';
44

55
const routes: Routes = [
66
{
7-
path: '', component: ModalComponent
8-
}
7+
path: '',
8+
component: ModalComponent,
9+
},
910
];
1011

1112
@NgModule({
1213
imports: [RouterModule.forChild(routes)],
13-
exports: [RouterModule]
14+
exports: [RouterModule],
1415
})
15-
export class ModalRoutingModule { }
16+
export class ModalRoutingModule {}

0 commit comments

Comments
 (0)