Skip to content

Add landing page for PdfSmith homepage#8

Merged
marcominerva merged 7 commits intomasterfrom
copilot/fix-7
Jun 25, 2025
Merged

Add landing page for PdfSmith homepage#8
marcominerva merged 7 commits intomasterfrom
copilot/fix-7

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 24, 2025

This PR adds a professional landing page that displays when users visit the root URL of the PdfSmith application, addressing the need for a clear introduction to the product and its capabilities.

Changes Made

1. Static File Serving

  • Added app.UseStaticFiles() middleware to enable serving static content
  • Created wwwroot directory for static assets

2. Landing Page (/wwwroot/index.html)

  • Modern, responsive design with gradient background and mobile-first approach
  • Product introduction with clear value proposition
  • 6 key feature highlights:
    • ⚡ Lightning Fast PDF generation with Chromium engine
    • 🎨 Multiple Template Engines (Razor/Scriban support)
    • 🔐 Secure & Scalable with authentication and rate limiting
    • 📱 Responsive Design support for any device
    • 🌍 Internationalization with multi-language support
    • 🔧 Easy Integration via simple REST API
  • Quick start example showing API usage with JSON template
  • Clear navigation with call-to-action buttons linking to Swagger documentation
  • Interactive elements with hover effects and smooth scrolling

3. Root Endpoint

  • Added GET / endpoint that redirects to /index.html
  • Maintains clean URL structure while serving the landing page
  • Excluded from OpenAPI documentation to keep API docs focused

User Experience Improvements

Before: Visiting the root URL resulted in a 404 or default response
After: Users see an informative, professional landing page that:

  • Introduces PdfSmith and its capabilities
  • Provides clear next steps (API documentation)
  • Demonstrates the API with a practical example
  • Works seamlessly across all devices

Preserved Functionality

  • All existing API endpoints remain unchanged
  • Swagger UI still accessible at /swagger
  • Authentication, rate limiting, and other middleware unchanged
  • No breaking changes to existing integrations

Testing

  • ✅ Root endpoint redirects correctly (302 → /index.html)
  • ✅ Landing page serves successfully (200 status)
  • ✅ Responsive design works on mobile and desktop
  • ✅ All navigation links function properly
  • ✅ Existing API functionality preserved
  • ✅ Build process remains intact

Fixes #7.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: curl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits June 24, 2025 08:46
Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
Copilot AI changed the title [WIP] Add a landing page for PdfSmith homepage Add landing page for PdfSmith homepage Jun 24, 2025
Copilot AI requested a review from marcominerva June 24, 2025 08:48
… middleware, and extract CSS to external file

Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
…e empty line

Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
Copy link
Copy Markdown
Owner

@marcominerva marcominerva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a Fav icon to the site

…SON formatting, and add Accept-Language header example

Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
Co-authored-by: marcominerva <3522534+marcominerva@users.noreply.github.com>
Copilot AI requested a review from marcominerva June 25, 2025 08:48
@marcominerva marcominerva marked this pull request as ready for review June 25, 2025 08:49
@marcominerva marcominerva merged commit 3cd2295 into master Jun 25, 2025
3 checks passed
@marcominerva marcominerva deleted the copilot/fix-7 branch June 25, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a landing page for PdfSmith homepage

2 participants