-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
187 additions
and
38 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import { Routes } from "@angular/router"; | ||
import { HomeComponent } from "./pages/home/home.component"; | ||
import { ArchiveComponent } from "./pages/archive/archive.component"; | ||
import { ArchiveDetailComponent } from "./pages/archive-detail/archive-detail.component"; | ||
|
||
export const routes: Routes = [ | ||
{ path: "", component: HomeComponent }, | ||
{ path: "archive", component: ArchiveComponent }, | ||
{ | ||
path: "archive/:id", | ||
component: ArchiveDetailComponent, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/app/components/archive-carousel/archive-carousel.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { Component } from "@angular/core"; | ||
import { RouterLink, RouterLinkActive } from "@angular/router"; | ||
import { NgxSplideComponent, NgxSplideModule } from "ngx-splide"; | ||
|
||
@Component({ | ||
selector: "app-archive-carousel", | ||
standalone: true, | ||
imports: [NgxSplideModule], | ||
imports: [NgxSplideModule, RouterLink, RouterLinkActive], | ||
templateUrl: "./archive-carousel.component.html", | ||
styleUrl: "./archive-carousel.component.css", | ||
}) | ||
export class ArchiveCarouselComponent { | ||
items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; | ||
items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; | ||
} |
Empty file.
105 changes: 105 additions & 0 deletions
105
src/app/pages/archive-detail/archive-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<div | ||
class="background-archive-detail absolute top-0 w-screen min-h-full font-mono_lite text-2xs" | ||
> | ||
<div class="mt-20 relative flex flex-col text-gray-300 w-full text-xs"> | ||
<div class="w-full md:block hidden"> | ||
<div class="bg-green-700 h-4 w-full"></div> | ||
<div class="w-full flex justify-between"> | ||
<div class="min-w-44"></div> | ||
<div class="flex gap-4"> | ||
<button | ||
class="bg-green-700 p-1 px-2 flex justify-between items-center min-w-64" | ||
> | ||
<div>BEAR</div> | ||
<div> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="size-3" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="m19.5 8.25-7.5 7.5-7.5-7.5" | ||
/> | ||
</svg> | ||
</div> | ||
</button> | ||
<button | ||
class="bg-green-700 p-1 px-2 gap-2 flex justify-between items-center" | ||
> | ||
<div>2021-08</div> | ||
<div> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="size-3" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="m19.5 8.25-7.5 7.5-7.5-7.5" | ||
/> | ||
</svg> | ||
</div> | ||
</button> | ||
</div> | ||
<div class="flex gap-4"> | ||
<button | ||
class="bg-green-700 p-1 px-2 flex justify-between items-center min-w-24" | ||
> | ||
<div>14°C</div> | ||
<div> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="size-3" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="m19.5 8.25-7.5 7.5-7.5-7.5" | ||
/> | ||
</svg> | ||
</div> | ||
</button> | ||
<button | ||
class="bg-green-700 p-1 px-2 flex justify-between items-center min-w-24" | ||
> | ||
<div>O</div> | ||
<div> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="size-3" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="m19.5 8.25-7.5 7.5-7.5-7.5" | ||
/> | ||
</svg> | ||
</div> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="w-full mt-8 top-0 flex justify-center items-center" | ||
> | ||
<img src="assets/volpe.jpg" class="max-w-[60%]" alt="" /> | ||
</div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/app/pages/archive-detail/archive-detail.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ArchiveDetailComponent } from './archive-detail.component'; | ||
|
||
describe('ArchiveDetailComponent', () => { | ||
let component: ArchiveDetailComponent; | ||
let fixture: ComponentFixture<ArchiveDetailComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ArchiveDetailComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ArchiveDetailComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-archive-detail', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './archive-detail.component.html', | ||
styleUrl: './archive-detail.component.css' | ||
}) | ||
export class ArchiveDetailComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.