Skip to content

Commit

Permalink
feat: add static events link page
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed May 28, 2024
1 parent 0f3c4fb commit dfb1bf1
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/serve-static": "^4.0.2",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1"
},
Expand Down
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { EventsController } from './events/events.controller';
import { EventsService } from './events/events.service';

@Module({
imports: [],
imports: [
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', 'static'),
serveRoot: '/static/',
}),
],
controllers: [EventsController],
providers: [EventsService],
})
Expand Down
65 changes: 65 additions & 0 deletions static/event-links/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Event Links</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.container {
width: 80%;
max-width: 600px;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
color: #4a90e2;
text-align: center;
}

a {
display: block;
margin: 10px 0;
color: #4a90e2;
text-decoration: none;
font-size: 16px;
transition: color 0.3s;
text-align: left;
}

a:hover {
color: #357ab8;
}
</style>
</head>
<body>
<div class="container">
<h1>Event Links</h1>
<a href="aec-events-app://events/aeg-beneficiary-concert">
aec-events-app://events/aeg-beneficiary-concert
</a>
<a href="aec-events-app://events/pop-concert">
aec-events-app://events/pop-concert
</a>
<a href="aec-events-app://events/aec-oc">
aec-events-app://events/aec-oc
</a>
<a href="aec-events-app://events/aec-cc">
aec-events-app://events/aec-cc
</a>
</div>
</body>
</html>

0 comments on commit dfb1bf1

Please sign in to comment.