Skip to content

Commit dfb1bf1

Browse files
feat: add static events link page
1 parent 0f3c4fb commit dfb1bf1

File tree

4 files changed

+102
-1
lines changed

4 files changed

+102
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@nestjs/common": "^10.0.0",
2424
"@nestjs/core": "^10.0.0",
2525
"@nestjs/platform-express": "^10.0.0",
26+
"@nestjs/serve-static": "^4.0.2",
2627
"reflect-metadata": "^0.2.0",
2728
"rxjs": "^7.8.1"
2829
},

pnpm-lock.yaml

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.module.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import { Module } from '@nestjs/common';
2+
import { ServeStaticModule } from '@nestjs/serve-static';
3+
import { join } from 'path';
24
import { EventsController } from './events/events.controller';
35
import { EventsService } from './events/events.service';
46

57
@Module({
6-
imports: [],
8+
imports: [
9+
ServeStaticModule.forRoot({
10+
rootPath: join(__dirname, '..', 'static'),
11+
serveRoot: '/static/',
12+
}),
13+
],
714
controllers: [EventsController],
815
providers: [EventsService],
916
})

static/event-links/index.html

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Event Links</title>
7+
<style>
8+
body {
9+
font-family: Arial, sans-serif;
10+
background-color: #f4f4f9;
11+
color: #333;
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
height: 100vh;
16+
margin: 0;
17+
}
18+
19+
.container {
20+
width: 80%;
21+
max-width: 600px;
22+
background: white;
23+
padding: 20px;
24+
border-radius: 8px;
25+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
26+
}
27+
28+
h1 {
29+
color: #4a90e2;
30+
text-align: center;
31+
}
32+
33+
a {
34+
display: block;
35+
margin: 10px 0;
36+
color: #4a90e2;
37+
text-decoration: none;
38+
font-size: 16px;
39+
transition: color 0.3s;
40+
text-align: left;
41+
}
42+
43+
a:hover {
44+
color: #357ab8;
45+
}
46+
</style>
47+
</head>
48+
<body>
49+
<div class="container">
50+
<h1>Event Links</h1>
51+
<a href="aec-events-app://events/aeg-beneficiary-concert">
52+
aec-events-app://events/aeg-beneficiary-concert
53+
</a>
54+
<a href="aec-events-app://events/pop-concert">
55+
aec-events-app://events/pop-concert
56+
</a>
57+
<a href="aec-events-app://events/aec-oc">
58+
aec-events-app://events/aec-oc
59+
</a>
60+
<a href="aec-events-app://events/aec-cc">
61+
aec-events-app://events/aec-cc
62+
</a>
63+
</div>
64+
</body>
65+
</html>

0 commit comments

Comments
 (0)