changes on app module and routing

This commit is contained in:
X4Lo committed 2024-03-31 04:15:20 +00:00
1 parent 56bdbee43d
commit b1820521bc
17 files changed
+132 -387

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './features/pages/home/home.component';
import { SearchComponent } from './features/pages/search/search.component';
import { TrendingComponent } from './features/pages/trending/trending.component';
import { PopularComponent } from './features/pages/popular/popular.component';
const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
{ path: 'search', component: SearchComponent },
{ path: 'popular', component: PopularComponent },
{ path: 'trending', component: TrendingComponent },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
})
export class AppRoutingModule {}
View File
Whitespace-only changes.
+11
View File
@@ -0,0 +1,11 @@
<app-navbar></app-navbar>
<app-sidebar></app-sidebar>
<main class="main-wrapper">
<div class="main-content">
<router-outlet></router-outlet>
</div>
</main>
<script>
$(".data-attributes span").peity("donut")
</script>
+29
View File
@@ -0,0 +1,29 @@
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
}).compileComponents();
});
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have the 'ShowZ' title`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('ShowZ');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, ShowZ');
});
});
+10
View File
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent {
title = 'ShowZ';
}
+38
View File
@@ -0,0 +1,38 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
import { EntryListComponent } from './features/lists/entry-list/entry-list.component';
import { HomeComponent } from './features/pages/home/home.component';
import { SidebarComponent } from './core/components/sidebar/sidebar.component';
import { NavbarComponent } from './core/components/navbar/navbar.component';
import { PopularComponent } from './features/pages/popular/popular.component';
import { TrendingComponent } from './features/pages/trending/trending.component';
import { SearchComponent } from './features/pages/search/search.component';
import { MainCardComponent } from './features/cards/main-card/main-card.component';
@NgModule({
declarations: [
AppComponent,
EntryListComponent,
HomeComponent,
SidebarComponent,
NavbarComponent,
PopularComponent,
TrendingComponent,
SearchComponent,
MainCardComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
ReactiveFormsModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
+11
View File
@@ -0,0 +1,11 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule, // Common module for common directives
],
exports: [],
})
export class SharedModule {}
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+23
View File
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ShowZ</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Outlined" rel="stylesheet">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<app-root></app-root>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch((err) => console.error(err));
+26
View File
@@ -0,0 +1,26 @@
:root {
/* SECTION - COLORS */
--oxford-blue-50: hsla(218, 39%, 14%, 0.8);
--oxford-blue: hsl(218, 39%, 14%);
--light-azure: hsl(214, 84%, 56%);
--off-white: hsl(0, 0%, 88%);
--yellow: hsl(45, 100%, 54%);
--white: hsl(0, 0%, 100%);
--azure: hsl(211, 100%, 50%);
/* SECTION - TYPOGRAPHY */
--section-heading: 40px;
--fs-lg: 22px;
--fs-md: 17px;
--fs-sm: 14px;
--fs-x-sm: 12px;
--fs-x-xm: 9px;
--fw-7: 700;
--fw-6: 600;
--fw-5: 500;
/* SECTION - OTHER */
--mv-card-scale: 0.8;
}