Mortgage App
This commit is contained in:
parent
49d160d7fb
commit
82b84bcb6c
@ -44,3 +44,11 @@ section {
|
||||
background-color: #4338CA;
|
||||
border-color: #4338CA;
|
||||
}
|
||||
|
||||
.rounded-circle {
|
||||
border: 3px solid #4F46E5;
|
||||
}
|
||||
|
||||
#about .lead {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
BIN
assets/pasted-20251218-155926-3e104bc6.jpg
Normal file
BIN
assets/pasted-20251218-155926-3e104bc6.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
8
blog.php
8
blog.php
@ -54,7 +54,13 @@ $posts = $stmt->fetchAll();
|
||||
<div class="card-body">
|
||||
<h2 class="card-title"><?php echo htmlspecialchars($post['title']); ?></h2>
|
||||
<p class="card-text"><small class="text-muted">Posted on <?php echo date('F j, Y', strtotime($post['created_at'])); ?></small></p>
|
||||
<p class="card-text"><?php echo nl2br(htmlspecialchars(substr($post['content'], 0, 200))); ?>...</p>
|
||||
<p class="card-text"><?php
|
||||
if (!empty($post['excerpt'])) {
|
||||
echo nl2br(htmlspecialchars($post['excerpt']));
|
||||
} else {
|
||||
echo nl2br(htmlspecialchars(substr($post['content'], 0, 200))) . '...';
|
||||
}
|
||||
?></p>
|
||||
<a href="post.php?id=<?php echo $post['id']; ?>" class="btn btn-primary">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -14,8 +14,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
exit;
|
||||
}
|
||||
|
||||
// The $to address should be configured in your .env file as MAIL_TO
|
||||
$res = MailService::sendContactMessage($name, $email, $message);
|
||||
$res = MailService::sendContactMessage($name, $email, $message, 'sgoodwin@northwoodmortgage.com');
|
||||
|
||||
if (!empty($res['success'])) {
|
||||
$_SESSION['success'] = "Thank you for your message! I will get back to you shortly.";
|
||||
|
||||
1
db/migrations/002_add_excerpt_to_posts.sql
Normal file
1
db/migrations/002_add_excerpt_to_posts.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE posts ADD COLUMN excerpt TEXT;
|
||||
11
index.php
11
index.php
@ -72,7 +72,14 @@
|
||||
<section id="about" class="bg-white">
|
||||
<div class="container">
|
||||
<h2 class="text-center mb-4">About Me</h2>
|
||||
<p class="lead">I am a licensed mortgage agent in Ontario, I specialize in hard to place mortgages, refinancing and reverse mortgages, if you have any questions or your mortgage is coming up for renewal, contact me today</p>
|
||||
<div class="row">
|
||||
<div class="col-md-4 text-center">
|
||||
<img src="assets/pasted-20251218-155926-3e104bc6.jpg" alt="A photo of the mortgage agent" class="img-fluid rounded-circle mb-3">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<p class="lead">I am a licensed mortgage agent in Ontario, I specialize in hard to place mortgages, refinancing and reverse mortgages, if you have any questions or your mortgage is coming up for renewal, contact me today</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -82,7 +89,7 @@
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Blog Post Title</h5>
|
||||
<h5 class="card-title">Mortgage News</h5>
|
||||
<p class="card-text">A short excerpt of the blog post will appear here.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user