Untitled conversation
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
@page "/"
@layout PRPro.Shared.Layout.LandingLayout
<RadzenRow class="hero-section" AlignItems="AlignItems.Center" Gap="2rem">
@* Replaced Container/Row *@
<RadzenColumn SizeLG="6" SizeMD="12">
@* Replaced Column, added stacking for medium screens *@
<div class="hero-content fade-in">
<h1 class="hero-title mb-4">
Transform Your
<span class="highlight">Workforce Management</span>
</h1>
<p class="hero-subtitle mb-4">Payroll Pro is a comprehensive Human Resources Management System (HRMS) designed to simplify and optimize your employee management processes. From payroll to performance tracking, Payroll Pro offers a suite of features to empower your HR department and enhance overall organizational efficiency.</p>
<div class="hero-buttons mb-5">
@* Replaced Blazorise Button with RadzenButton *@
<RadzenButton ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Large" Class="get-started-btn me-3" Text="Get Started">
<RadzenIcon Icon="rocket" Class="me-2" /> @* Replaced Blazorise Icon with RadzenIcon *@
</RadzenButton>
@* Replaced Blazorise Button with RadzenButton *@
<RadzenButton ButtonStyle="ButtonStyle.Secondary" Variant="Variant.Outlined" Size="ButtonSize.Large" Class="demo-btn" Text="Watch Demo">
<RadzenIcon Icon="play" Class="me-2" /> @* Replaced Blazorise Icon with RadzenIcon *@
</RadzenButton>
</div>
<div class="stats-container d-flex justify-content-between p-3 rounded bg-light">
<div class="stat-item text-center">
<span class="stat-number d-block fw-bold">5000+</span>
<span class="stat-label text-muted">Companies</span>
</div>
<div class="stat-item text-center">
<span class="stat-number d-block fw-bold">1M+</span>
<span class="stat-label text-muted">Employees</span>
</div>
<div class="stat-item text-center">
<span class="stat-number d-block fw-bold">99.9%</span>
<span class="stat-label text-muted">Uptime</span>
</div>
</div>
</div>
</RadzenColumn>
<RadzenColumn SizeLG="6" SizeMD="12">
@* Replaced Column, added stacking for medium screens *@
<div class="benefits-content fade-in bg-white p-4 rounded shadow">
<h2 class="benefits-title mb-3">Benefits of Using Payroll Pro</h2>
<ul class="benefits-list">
<li class="mb-2">
<span class="benefit-highlight">Increased Efficiency:</span> Automate manual HR tasks, freeing up your HR team to focus on strategic initiatives.
</li>
<li class="mb-2">
<span class="benefit-highlight">Improved Accuracy:</span> Reduce errors in payroll, leave tracking, and data management with automated systems.
</li>
<li class="mb-2">
<span class="benefit-highlight">Enhanced Employee Experience:</span> Provide employees with self-service tools for leave requests, timesheets, and accessing payslips.
</li>
<li class="mb-2">
<span class="benefit-highlight">Data-Driven Decisions:</span> Leverage comprehensive reporting and analytics to gain insights and make informed HR decisions.
</li>
<li class="mb-2">
<span class="benefit-highlight">Centralized HR Management:</span> Consolidate all HR functions into a single, integrated platform.
</li>
</ul>
<p class="conclusion mt-3">Payroll Pro is the ideal HRMS solution for businesses looking to modernize their HR processes, improve efficiency, and empower their workforce.</p>
</div>
</RadzenColumn>
</RadzenRow>
<style>
/* Animation */
.fade-in {
animation: fadeIn 1s ease-in;
}
/* Custom hero section class if needed for specific overrides */
.hero-section {
/* Add any specific styles for the row itself, e.g., padding, margin */
padding-top: 3rem;
padding-bottom: 3rem;
overflow-x: hidden; /* Prevent horizontal scrollbars from animations */
}
/* Typography */
.hero-title {
font-size: 3rem;
font-weight: 700;
line-height: 1.2;
color: #343a40; /* Consider using Radzen theme variables if available/desired */
}
.highlight {
color: var(--rz-primary, #0d6efd); /* Use Radzen primary color variable if possible */
position: relative;
display: inline-block;
}
.highlight:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 8px;
/* Use rgba version of primary color */
background-color: rgba(13, 110, 253, 0.2);
z-index: -1;
}
.hero-subtitle {
font-size: 1.1rem;
color: #6c757d; /* Consider Radzen theme variables */
line-height: 1.6;
max-width: 90%;
}
/* Buttons - Customizations on top of Radzen Button styles */
.get-started-btn, .demo-btn {
/* RadzenButton uses padding internally, adjust if needed */
/* padding: 0.75rem 1.5rem; */
font-weight: 500;
transition: all 0.3s ease;
}
/* Apply hover effects directly to the Radzen button element */
.get-started-btn.rz-button:hover {
transform: translateY(-3px);
/* Adjust shadow based on Radzen primary color */
box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}
/* Hover for outlined secondary button */
.demo-btn.rz-button.rz-secondary.rz-variant-outlined:hover {
/* Slightly darken background or adjust border */
background-color: rgba(108, 117, 125, 0.1);
}
/* Stats Container */
.stats-container {
margin-top: 2rem;
border-top: 1px solid #dee2e6; /* Consider Radzen theme variables */
padding-top: 1.5rem;
}
.stat-number {
font-size: 1.75rem;
font-weight: 700;
color: var(--rz-primary, #0d6efd); /* Use Radzen primary color variable */
}
.stat-label {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Benefits Section */
.benefits-content {
height: 100%;
/* Use Radzen primary color variable */
border-left: 4px solid var(--rz-primary, #0d6efd);
/* Add some vertical padding if needed when columns stack */
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.benefits-title {
font-size: 1.75rem;
font-weight: 600;
color: #343a40; /* Consider Radzen theme variables */
}
.benefits-list {
list-style-type: none;
padding-left: 0;
}
.benefits-list li {
position: relative;
padding-left: 1.5rem;
margin-bottom: 0.75rem; /* Slightly increased margin */
}
.benefits-list li:before {
content: '✓';
position: absolute;
left: 0;
color: var(--rz-primary, #0d6efd); /* Use Radzen primary color variable */
font-weight: bold;
}
.benefit-highlight {
font-weight: 600;
color: #343a40; /* Consider Radzen theme variables */
}
.conclusion {
color: #6c757d; /* Consider Radzen theme variables */
}
.hero-subtitle {
max-width: 100%;
font-size: 1rem;
}
.hero-buttons {
/* Maybe center buttons on small screens */
/* text-align: center; */
}
.get-started-btn, .demo-btn {
/* Adjust button size/margins if needed */
margin-bottom: 0.5rem;
}
.get-started-btn {
margin-right: 0.5rem !important;
}
/* Reduce gap */
.stats-container {
flex-direction: column; /* Stack stats vertically */
align-items: center;
gap: 1rem;
}
.benefits-content {
margin-top: 2rem;
border-left: none;
/* Use Radzen primary color variable */
border-top: 4px solid var(--rz-primary, #0d6efd);
box-shadow: none; /* Optional: remove shadow on mobile */
}
}
</style>
@code {
}
Understand what the page is about, then re-design it how you see fit.
Okay, I understand the current page. It's a standard two-column landing page for "Payroll Pro", an HRMS product.
RadzenRow, RadzenColumn, RadzenButton, RadzenIcon) and custom CSS for styling and a fade-in animation. It's responsive, stacking the columns on smaller screens.The current design is functional but a bit conventional. The two columns feel slightly disconnected, and the benefits list, while informative, could be more visually engaging. The stats are somewhat tucked away.
Redesign Goals:
RadzenCard for better content grouping and visual separation.Redesigned Code:
Here's a redesigned version focusing on a more section-based flow, improved visual presentation of stats and benefits using Radzen Cards, and refined styling:
@page "/"
@layout PRPro.Shared.Layout.LandingLayout
@inject NavigationManager NavigationManager // Inject NavigationManager for button clicks
@* Radzen provides NotificationService, DialogService etc. - could be injected if needed for CTAs *@
<div class="landing-page-wrapper">
<!-- Hero Section -->
<RadzenRow JustifyContent="JustifyContent.Center" AlignItems="AlignItems.Center" class="hero-section rz-py-12 rz-text-align-center">
<RadzenColumn Size="12" SizeLG="8">
<div class="hero-content fade-in">
<RadzenText Text="Payroll Pro" TextStyle="TextStyle.H6" TagName="span" class="rz-color-primary rz-display-block rz-mb-2 text-uppercase letter-spacing-lg" />
<RadzenText Text="Transform Your Workforce Management" TextStyle="TextStyle.H1" TagName="h1" class="hero-title rz-mb-4" />
<RadzenText Text="A comprehensive HRMS designed to simplify and optimize your employee management processes. From payroll to performance tracking, empower your HR department and enhance organizational efficiency." TextStyle="TextStyle.Subtitle1" TagName="p" class="hero-subtitle rz-mb-6 rz-mx-auto" style="max-width: 700px;" />
<RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.Center" Gap="1rem" class="hero-buttons rz-mb-8">
<RadzenButton ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Large" Click="@(() => NavigateTo("/get-started"))" class="cta-button">
<RadzenIcon Icon="rocket" class="rz-me-2" /> Get Started
</RadzenButton>
<RadzenButton ButtonStyle="ButtonStyle.Secondary" Variant="Variant.Outlined" Size="ButtonSize.Large" Click="@(() => OpenDemoDialog())" Class="cta-button">
<RadzenIcon Icon="play_circle_outline" class="rz-me-2" /> Watch Demo
</RadzenButton>
</RadzenStack>
</div>
</RadzenColumn>
</RadzenRow>
<!-- Stats Section -->
<RadzenRow JustifyContent="JustifyContent.Center" AlignItems="AlignItems.Center" Gap="2rem" class="stats-section rz-py-8 rz-bg-light">
<RadzenColumn Size="12" SizeMD="4" SizeLG="3" class="rz-text-align-center fade-in" Style="animation-delay: 0.2s;">
<RadzenCard class="rz-shadow-3 stat-card">
<RadzenText Text="5000+" TextStyle="TextStyle.H3" class="rz-display-block rz-color-primary rz-mb-1" />
<RadzenText Text="Companies Trust Us" TextStyle="TextStyle.Body1" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
<RadzenColumn Size="12" SizeMD="4" SizeLG="3" class="rz-text-align-center fade-in" Style="animation-delay: 0.4s;">
<RadzenCard class="rz-shadow-3 stat-card">
<RadzenText Text="1M+" TextStyle="TextStyle.H3" class="rz-display-block rz-color-primary rz-mb-1" />
<RadzenText Text="Employees Managed" TextStyle="TextStyle.Body1" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
<RadzenColumn Size="12" SizeMD="4" SizeLG="3" class="rz-text-align-center fade-in" Style="animation-delay: 0.6s;">
<RadzenCard class="rz-shadow-3 stat-card">
<RadzenText Text="99.9%" TextStyle="TextStyle.H3" class="rz-display-block rz-color-primary rz-mb-1" />
<RadzenText Text="Guaranteed Uptime" TextStyle="TextStyle.Body1" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
</RadzenRow>
<!-- Benefits Section -->
<RadzenRow JustifyContent="JustifyContent.Center" class="benefits-section rz-py-12">
<RadzenColumn Size="12" class="rz-text-align-center rz-mb-8">
<RadzenText Text="Why Choose Payroll Pro?" TextStyle="TextStyle.H3" TagName="h2" class="section-title rz-mb-3" />
<RadzenText Text="Unlock efficiency and empower your team with our integrated HR solution." TextStyle="TextStyle.Subtitle1" TagName="p" class="section-subtitle rz-color-secondary" />
</RadzenColumn>
<RadzenColumn Size="12">
<RadzenRow JustifyContent="JustifyContent.Center" Gap="2rem">
@* Benefit Card 1 *@
<RadzenColumn Size="12" SizeMD="6" SizeLG="4" class="rz-mb-4 fade-in" Style="animation-delay: 0.3s;">
<RadzenCard class="benefit-card rz-shadow-3">
<RadzenIcon Icon="speed" class="benefit-icon rz-color-primary" />
<RadzenText Text="Increased Efficiency" TextStyle="TextStyle.H6" TagName="h3" class="rz-mb-2" />
<RadzenText Text="Automate manual HR tasks, freeing up your team for strategic initiatives." TextStyle="TextStyle.Body2" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
@* Benefit Card 2 *@
<RadzenColumn Size="12" SizeMD="6" SizeLG="4" class="rz-mb-4 fade-in" Style="animation-delay: 0.5s;">
<RadzenCard class="benefit-card rz-shadow-3">
<RadzenIcon Icon="check_circle_outline" class="benefit-icon rz-color-primary" />
<RadzenText Text="Improved Accuracy" TextStyle="TextStyle.H6" TagName="h3" class="rz-mb-2" />
<RadzenText Text="Reduce errors in payroll, leave tracking, and data management." TextStyle="TextStyle.Body2" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
@* Benefit Card 3 *@
<RadzenColumn Size="12" SizeMD="6" SizeLG="4" class="rz-mb-4 fade-in" Style="animation-delay: 0.7s;">
<RadzenCard class="benefit-card rz-shadow-3">
<RadzenIcon Icon="sentiment_satisfied" class="benefit-icon rz-color-primary" />
<RadzenText Text="Enhanced Employee Experience" TextStyle="TextStyle.H6" TagName="h3" class="rz-mb-2" />
<RadzenText Text="Provide self-service tools for leave, timesheets, and payslips." TextStyle="TextStyle.Body2" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
@* Benefit Card 4 *@
<RadzenColumn Size="12" SizeMD="6" SizeLG="4" class="rz-mb-4 fade-in" Style="animation-delay: 0.9s;">
<RadzenCard class="benefit-card rz-shadow-3">
<RadzenIcon Icon="analytics" class="benefit-icon rz-color-primary" />
<RadzenText Text="Data-Driven Decisions" TextStyle="TextStyle.H6" TagName="h3" class="rz-mb-2" />
<RadzenText Text="Leverage reporting and analytics for informed HR decisions." TextStyle="TextStyle.Body2" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
@* Benefit Card 5 *@
<RadzenColumn Size="12" SizeMD="6" SizeLG="4" class="rz-mb-4 fade-in" Style="animation-delay: 1.1s;">
<RadzenCard class="benefit-card rz-shadow-3">
<RadzenIcon Icon="hub" class="benefit-icon rz-color-primary" />
<RadzenText Text="Centralized HR Management" TextStyle="TextStyle.H6" TagName="h3" class="rz-mb-2" />
<RadzenText Text="Consolidate all HR functions into a single, integrated platform." TextStyle="TextStyle.Body2" class="rz-color-secondary" />
</RadzenCard>
</RadzenColumn>
</RadzenRow>
</RadzenColumn>
</RadzenRow>
<!-- Final CTA Section (Optional but recommended) -->
<RadzenRow JustifyContent="JustifyContent.Center" class="cta-final-section rz-py-10 rz-bg-primary-light">
<RadzenColumn Size="12" SizeLG="8" class="rz-text-align-center">
<RadzenText Text="Ready to Optimize Your HR?" TextStyle="TextStyle.H4" TagName="h2" class="rz-mb-3" />
<RadzenText Text="See how Payroll Pro can streamline your processes and empower your workforce. Get started today or watch a personalized demo." TextStyle="TextStyle.Body1" TagName="p" class="rz-mb-5 rz-color-secondary" />
<RadzenButton ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Large" Click="@(() => NavigateTo("/get-started"))" class="cta-button">
<RadzenIcon Icon="rocket" class="rz-me-2" /> Get Started Now
</RadzenButton>
</RadzenColumn>
</RadzenRow>
</div>
<style>
/* General */
.landing-page-wrapper {
overflow-x: hidden; /* Prevent horizontal scroll on animations */
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.8s ease-out forwards;
opacity: 0; /* Start hidden */
}
/* Typography Helpers */
.letter-spacing-lg {
letter-spacing: 1.5px;
}
/* Hero Section */
.hero-section {
/* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(13, 110, 253, 0.05)); */ /* Optional subtle gradient */
min-height: 70vh; /* Ensure it takes significant space */
display: flex; /* Ensure vertical centering works well */
flex-direction: column;
justify-content: center;
}
.hero-title {
font-weight: 700; /* Using Radzen Text, font-size is handled by TextStyle */
line-height: 1.2;
color: var(--rz-text-title-color);
}
.hero-subtitle {
color: var(--rz-text-secondary-color);
line-height: 1.6;
}
.cta-button .rz-button { /* Target inner button if needed, but class on RadzenButton is usually enough */
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
/* font-weight: 500; */ /* Radzen default */
}
.cta-button.rz-button:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* Stats Section */
.stats-section {
border-top: 1px solid var(--rz-border-color);
border-bottom: 1px solid var(--rz-border-color);
}
.stat-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: none; /* Clean look */
padding: 1.5rem 1rem; /* Adjust padding */
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: var(--rz-shadow-6); /* Slightly stronger shadow on hover */
}
/* Benefits Section */
.section-title {
font-weight: 600;
color: var(--rz-text-title-color);
}
.section-subtitle {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.benefit-card {
height: 100%; /* Make cards in the same row equal height */
text-align: center;
padding: 2rem 1.5rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border-top: 4px solid var(--rz-primary); /* Accent line */
border: 1px solid var(--rz-border-color); /* Added border */
box-shadow: var(--rz-shadow-2); /* Default shadow */
}
.benefit-card:hover {
transform: translateY(-5px);
box-shadow: var(--rz-shadow-5);
}
.benefit-icon {
font-size: 2.5rem; /* Make icon larger */
margin-bottom: 1rem;
display: block;
}
/* Final CTA Section */
.cta-final-section {
/* Use a light shade of the primary color or a distinct background */
background-color: var(--rz-base-200); /* Example using Radzen theme variable */
/* Or a custom light color: background-color: #f8f9fa; */
}
/* Responsive Adjustments */
@@media (max-width: 767.98px) {
.hero-section {
min-height: auto; /* Adjust height on smaller screens */
padding-top: 4rem;
padding-bottom: 4rem;
}
.hero-title {
font-size: 2.5rem; /* Adjust title size */
}
.hero-buttons .rz-stack-item { /* Target items if needed for stacking */
width: 100%; /* Make buttons full width if they stack vertically */
}
.hero-buttons .rz-button {
width: 80%; /* Or keep horizontal but ensure reasonable width */
margin-bottom: 0.5rem; /* Add space if stacking */
}
.hero-buttons {
flex-direction: column; /* Stack buttons vertically */
align-items: center;
}
.stat-card {
margin-bottom: 1rem;
}
.benefit-card {
margin-bottom: 1.5rem; /* Ensure spacing when stacked */
}
.rz-py-12 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.rz-py-10 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.rz-py-8 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}
</style>
@code {
// Example navigation method (replace with actual logic/routes)
private void NavigateTo(string url)
{
NavigationManager.NavigateTo(url);
}
// Example method to open a demo modal (requires Radzen.DialogService)
// Inject DialogService at the top: @inject DialogService DialogService
private async Task OpenDemoDialog()
{
// Replace with your actual Demo component or content
// await DialogService.OpenAsync<YourDemoComponent>("Watch Demo", options: new DialogOptions() { Width = "700px", Height = "500px", Resizable = true, Draggable = true });
Console.WriteLine("Watch Demo clicked - Implement DialogService call here.");
// For now, maybe just navigate or show a notification
// NavigationManager.NavigateTo("/demo");
}
}
Key Changes and Rationale:
JustifyContent.Center on the RadzenRow and SizeLG="8" on the RadzenColumn for better focus. RadzenText components are used for semantic correctness and easier styling via TextStyle.rz-bg-light) for contrast. Each stat is placed within a RadzenCard for visual emphasis and uses rz-shadow-3 for subtle elevation. Added slight animation delay for a staggered entrance.RadzenCard components within a grid layout. Each card features:
RadzenIcon.RadzenText with TextStyle.H6).RadzenText with TextStyle.Body2).border-top) using the primary color.rz-py-12, rz-mb-4, etc.), typography (TextStyle), alignment, and color classes (rz-color-primary, rz-color-secondary) more heavily to reduce custom CSS and maintain theme consistency.var(--rz-primary), var(--rz-text-title-color), etc.) for better theme integration.transform: translateY, box-shadow) to cards and buttons.fade-in) and applied it with delays to different sections/elements.RadzenStack for button layout, RadzenText for typography, and RadzenCard for grouping content.NavigateTo, OpenDemoDialog) triggered by button clicks, demonstrating how actions would be handled. You'd need to implement the actual navigation or dialog logic.This redesigned version aims to be more visually appealing, structured, and engaging, guiding the user through the product's value proposition more effectively while making better use of the Radzen component library.