add frontend angular

This commit is contained in:
Tykayn 2025-10-02 22:53:50 +02:00 committed by tykayn
parent f34a5f0a83
commit 070e8435d8
36 changed files with 10209 additions and 6 deletions

View file

@ -0,0 +1,14 @@
<p>home works!</p>
<div class="aside">
OpenEventDatabase
<a href="/demo/stats">stats</a>
<a href="https://source.cipherbliss.com/tykayn/oedb-backend">sources</a>
</div>
<div class="main">
main part
<br>
<div id="map">
(map)
</div>
</div>

View file

@ -0,0 +1,28 @@
:host{
header{
background: #00acc1;
position: fixed;
top: 0 ;
width: 100vw;
min-height: 1rem;
}
main{
display: flex;
flex-direction: row;
justify-content: start;
align-content: center;
}
.aside{
background: #fff8f8;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
width : 0;
&.expanded{
width: 300px;
padding: 10px;
}
}
#map{
width: 100%;
height: 100vh;
}
}

View file

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Home } from './home';
describe('Home', () => {
let component: Home;
let fixture: ComponentFixture<Home>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [Home]
})
.compileComponents();
fixture = TestBed.createComponent(Home);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,11 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-home',
imports: [],
templateUrl: './home.html',
styleUrl: './home.scss'
})
export class Home {
}

View file

@ -0,0 +1 @@
<p>menu works!</p>

View file

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Menu } from './menu';
describe('Menu', () => {
let component: Menu;
let fixture: ComponentFixture<Menu>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [Menu]
})
.compileComponents();
fixture = TestBed.createComponent(Menu);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,11 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-menu',
imports: [],
templateUrl: './menu.html',
styleUrl: './menu.scss'
})
export class Menu {
}