📝 Documentation: ContactUs1.cshtml
Welcome to the detailed documentation for the IrbyImaging/Views/Home/ContactUs1.cshtml Razor view. This page renders an IT support contact page, complete with phone, email, address, and privacy policy details.
📑 Table of Contents
- Overview & Purpose
- File Structure & Location
- Layout & ViewBag Configuration
- HTML Content Breakdown
4.1 Section Wrapper
4.2 Header & Image
4.3 Contact Cards
4.4 Footer Scripts - CSS & Styling
- JavaScript & Dependencies
- MVC Integration & Usage
- Third-party Integrations
- UML Diagram
- Usage Examples
- Conclusion
1. Overview & Purpose
ContactUs1.cshtml is an MVC Razor View responsible for displaying the IT Support contact page. It is a maintenance/placeholder page used by internal staff to quickly contact the IT Help Desk at Irby Construction.
- 🏷️ Page Title: Maintenance Page
- 🎯 Intended Users: Internal employees seeking IT support.
- 📋 Key Features:
- Phone, Email, Address, and Privacy Policy cards
- Responsive layout (Bootstrap 4+)
- Icons courtesy of Boxicons
2. File Structure & Location
IrbyImaging/
└── Views/
└── Home/
└── ContactUs1.cshtml ← This file
Shared/
└── _ATSLayout.cshtml ← Referenced layout
images/
└── ContactUs.jpg ← Displayed image
libs/
└── jquery/, bootstrap/, …
js/
└── app.js
3. Layout & ViewBag Configuration
@{
ViewBag.Title = "Maintenance Page";
Layout = "~/Views/Shared/_ATSLayout.cshtml";
}
- ViewBag.Title: Sets the HTML
<title>to Maintenance Page. - Layout: Inherits the shared layout
_ATSLayout.cshtml, providing common header, footer, and CSS/JS includes.
4. HTML Content Breakdown
4.1 Section Wrapper
<section class="my-5 pt-sm-5">
<div class="container">
<div class="row">
<div class="col-12 text-center">
<div class="home-wrapper">
<!-- Content Here -->
</div>
</div>
</div>
</div>
</section>
my-5 pt-sm-5: Top margin & padding for spacing.container: Centers content & applies Bootstrap grid.text-center: Centers text horizontally.
4.2 Header & Image
<h3>Contact IT Support</h3>
<div class="row justify-content-center">
<div class="col-sm-4">
<div class="maintenance-img">
<img src="~/images/ContactUs.jpg" alt="Contact Us" class="img-fluid mx-auto d-block">
</div>
</div>
</div>
- Heading: Announces the page purpose.
- Image:
ContactUs.jpgis displayed responsively (img-fluid) and centered.
4.3 Contact Cards
Each contact method is presented as a Bootstrap card:
| Icon | Title | Details |
|---|---|---|
📞 <i class="bx bxs-phone-call"> |
PHONE | IT Help Desk601-709-3899 |
✉️ <i class="bx bx-envelope"> |
[email protected] | |
📍 <i class="bx bx-map"> |
ADDRESS | 318 Old Highway 49 South Richland, Mississippi 39218-9449 |
🔒 <i class="bx bxs-shield"> |
PRIVACY POLICY | Privacy & Cookies Policy |
Card Template:
<div class="col-md-3">
<div class="card mt-4 maintenance-box">
<div class="card-body">
<i class="bx bx-icon mb-4 h1 text-primary"></i>
<h5 class="font-size-15 text-uppercase">TITLE</h5>
<p class="text-muted mb-0">DETAILS</p>
</div>
</div>
</div>
4.4 Footer Scripts
<script src="~/libs/jquery/jquery.min.js"></script>
<script src="~/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="~/libs/metismenu/metisMenu.min.js"></script>
<script src="~/libs/simplebar/simplebar.min.js"></script>
<script src="~/libs/node-waves/waves.min.js"></script>
<script src="~/js/app.js"></script>
- jQuery & Bootstrap: Core JS functionality.
- MetisMenu, SimpleBar, Waves: UI enhancements.
- app.js: Custom initialization (e.g., menu toggles).
5. CSS & Styling
- Bootstrap 4+ for responsive grid & cards.
- Boxicons library for vector icons (
bx,bxs). - Custom Classes:
.maintenance-box: Custom padding/margins..maintenance-img: Image container styling.
6. JavaScript & Dependencies
| Library | Purpose |
|---|---|
| jQuery | DOM manipulation & AJAX support |
| Bootstrap.bundle | Responsive components & utilities |
| MetisMenu | Vertical sidebar menu plugin |
| SimpleBar | Custom scrollbar styling |
| Waves | Ripple effect on clickable elements |
| app.js | App-specific initializations (e.g., menu) |
7. MVC Integration & Usage
- Controller Action
public class HomeController : Controller { public IActionResult ContactUs1() { return View(); // Returns Views/Home/ContactUs1.cshtml } } - Route
- Default:
/Home/ContactUs1 - Or via menu link:
<a asp-action="ContactUs1" asp-controller="Home">Contact IT Support</a>
- Default:
8. Third-party Integrations
- Boxicons (via CSS import in layout).
- Bootstrap & jQuery (included in layout or on-page).
- Irby Corporate Privacy Policy (external link).
9. UML Diagram
flowchart LR
A[User] --> B[HomeController.ContactUs1()]
B --> C[ContactUs1.cshtml Layout]
C --> D[HTML Rendered]
D --> E[Browser]
🔍 Note: This simple flow shows request → controller → view → browser.
10. Usage Examples
10.1 Razor Link
<a class="btn btn-primary" asp-controller="Home" asp-action="ContactUs1">
Contact IT Support
</a>
10.2 Direct URL
https://yourdomain.com/Home/ContactUs1
10.3 Changing Title
If you wish to override the page title:
@{
ViewBag.Title = "IT Help Desk";
}
11. Conclusion
ContactUs1.cshtml provides a user-friendly, responsive, and consistent interface for employees to reach IT Support. Leveraging Bootstrap, Boxicons, and a shared layout ensures maintainability across the IrbyImaging application. Customize icons, colors, or contact details by editing the respective HTML blocks and CSS classes.
Thank you for reviewing this documentation! Should you need further assistance, please reach out to the IT Department. 🚀