forked from UKSOURCE/hailearning.edu.vn
feat: implement news details page with content and sidebar
This commit is contained in:
226
app/blog/[slug]/components/NewsDetailsContent.tsx
Normal file
226
app/blog/[slug]/components/NewsDetailsContent.tsx
Normal file
@@ -0,0 +1,226 @@
|
||||
import Link from "next/link";
|
||||
|
||||
export default function NewsDetailsContent() {
|
||||
return (
|
||||
<div className="col-lg-8 col-12">
|
||||
<div className="news-details-post">
|
||||
<div className="news-details-image">
|
||||
<img src="/assets/img/inner-page/news-details/details-1.jpg" alt="img" />
|
||||
</div>
|
||||
<div className="details-content">
|
||||
<ul className="news-list">
|
||||
<li>
|
||||
<i className="fa-solid fa-user"></i>
|
||||
By Admin
|
||||
</li>
|
||||
<li>
|
||||
<i className="fa-solid fa-calendar-days"></i>
|
||||
11 March 2025
|
||||
</li>
|
||||
<li>
|
||||
<i className="fa-solid fa-comments"></i>
|
||||
0 Comments
|
||||
</li>
|
||||
</ul>
|
||||
<h2>Work Visa vs. Student Visa Which is Right for You?</h2>
|
||||
<p>
|
||||
Choosing between a work visa and a student visa depends on your career and academic goals. A
|
||||
student visa allows you to pursue higher education abroad, gain international exposure, and
|
||||
sometimes work part-time while studying. On the other hand, a work visa is for professionals
|
||||
seeking employment opportunities and long-term career growth in another country.
|
||||
</p>
|
||||
<p className="mt-4 mb-3">
|
||||
Both options have unique benefits, eligibility requirements, and future pathways. Understanding
|
||||
your personal ambitions, financial plans, and long-term vision will help you decide which visa
|
||||
option best suits your journey.
|
||||
</p>
|
||||
<h3>Work Visa vs. Student Visa: Which is Right for You?</h3>
|
||||
<p className="mt-2 mb-3">
|
||||
Choosing between a student visa and a work visa is a major decision that shapes your future
|
||||
abroad. Both visa types open unique opportunities, but the right choice depends on your goals,
|
||||
priorities, and resources. A student visa is designed for individuals who wish to pursue higher
|
||||
education in a foreign country.
|
||||
</p>
|
||||
<div className="row g-4">
|
||||
<div className="col-lg-6">
|
||||
<div className="thumb">
|
||||
<img src="/assets/img/inner-page/news-details/details-2.jpg" alt="img" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-6">
|
||||
<div className="thumb">
|
||||
<img src="/assets/img/inner-page/news-details/details-3.jpg" alt="img" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="sideber">
|
||||
<h5>
|
||||
This blog really helped me understand the difference between student and work visas. The
|
||||
explanations were clear and practical.
|
||||
</h5>
|
||||
</div>
|
||||
<p className="mb-3">
|
||||
It provides access to world-class universities, cultural exposure, and global networking
|
||||
opportunities. With a student visa, you may also get part-time work rights, which can help support
|
||||
your expenses and give you valuable international work experience. However, the primary focus
|
||||
remains on academics and personal growth. On the other hand, a work visa is perfect for those who
|
||||
want to establish themselves in a career overseas.
|
||||
</p>
|
||||
<p>
|
||||
It provides immediate access to job markets, stable income, and often a pathway to permanent
|
||||
residency. Work visas are suitable for skilled professionals who are ready to contribute to the
|
||||
global workforce and achieve long-term career goals. Ultimately, the choice comes down to your
|
||||
personal aspirations. If education and exploration are your priorities, a student visa is ideal. If
|
||||
career advancement and stability are your goals, a work visa is the right fit.
|
||||
</p>
|
||||
<div className="row tag-share-wrap mt-4 mb-5">
|
||||
<div className="col-lg-8 col-12">
|
||||
<div className="tagcloud">
|
||||
<span>Tags:</span>
|
||||
<Link href="/blog/work-visa">WorkVisa</Link>
|
||||
<Link href="/blog/family-visa">FamilyVisa</Link>
|
||||
<Link href="/blog/student-visa">StudentVisa</Link>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-4 col-12 mt-3 mt-lg-0 text-lg-end">
|
||||
<div className="social-share">
|
||||
<a href="#">
|
||||
<i className="fab fa-twitter"></i>
|
||||
</a>
|
||||
<a href="#">
|
||||
<i className="fa-brands fa-youtube"></i>
|
||||
</a>
|
||||
<a href="#">
|
||||
<i className="fab fa-linkedin-in"></i>
|
||||
</a>
|
||||
<a href="#">
|
||||
<i className="fab fa-facebook-f"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="comments-area">
|
||||
<div className="comments-heading">
|
||||
<h3>02 Comments</h3>
|
||||
</div>
|
||||
<div className="news-single-comment d-flex gap-4 pt-4 pb-0">
|
||||
<div className="image">
|
||||
<img src="/assets/img/inner-page/news-details/comment-1.png" alt="image" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="head d-flex flex-wrap gap-2 align-items-center justify-content-between">
|
||||
<div className="con">
|
||||
<span>February 10, 2024</span>
|
||||
<h4>Frank Flores</h4>
|
||||
</div>
|
||||
<Link href="/blog/work-visa" className="reply">
|
||||
Reply
|
||||
</Link>
|
||||
</div>
|
||||
<p className="mt-30 mb-4">
|
||||
Neque porro est qui dolorem ipsum quia quaed inventor veritatis et quasi architecto var sed
|
||||
efficitur turpis gilla sed sit amet finibus eros. Lorem Ipsum is simply dummy
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="news-single-comment style-2 d-flex gap-4 pt-4 pb-0">
|
||||
<div className="image">
|
||||
<img src="/assets/img/inner-page/news-details/comment-2.png" alt="image" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="head d-flex flex-wrap gap-2 align-items-center justify-content-between">
|
||||
<div className="con">
|
||||
<h4>Charlie Tushar</h4>
|
||||
<span>February 10, 2024</span>
|
||||
</div>
|
||||
<Link href="/blog/work-visa" className="reply">
|
||||
Reply
|
||||
</Link>
|
||||
</div>
|
||||
<p className="mt-30 mb-4">
|
||||
Neque porro est qui dolorem ipsum quia quaed inventor veritatis et quasi architecto var sed
|
||||
efficitur turpis gilla sed sit amet finibus eros. Lorem Ipsum is simply dummy
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="news-single-comment d-flex gap-4 pt-4 pb-4">
|
||||
<div className="image">
|
||||
<img src="/assets/img/inner-page/news-details/comment-3.png" alt="image" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="head d-flex flex-wrap gap-2 align-items-center justify-content-between">
|
||||
<div className="con">
|
||||
<span>February 10, 2024 </span>
|
||||
<h4>Fatma Sariqul</h4>
|
||||
</div>
|
||||
<Link href="/blog/work-visa" className="reply">
|
||||
Reply
|
||||
</Link>
|
||||
</div>
|
||||
<p className="mt-30 mb-4">
|
||||
Neque porro est qui dolorem ipsum quia quaed inventor veritatis et quasi architecto var sed
|
||||
efficitur turpis gilla sed sit amet finibus eros. Lorem Ipsum is simply dummy
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 className="mb-3">Leave A Comment</h3>
|
||||
<form
|
||||
action="contact.php"
|
||||
id="contact-form1"
|
||||
method="POST"
|
||||
className="contact-form-items"
|
||||
>
|
||||
<div className="row g-4">
|
||||
<div className="col-lg-4">
|
||||
<div className="form-clt">
|
||||
<span>Your Name</span>
|
||||
<input type="text" name="name" id="name331" placeholder="Your name" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-4">
|
||||
<div className="form-clt">
|
||||
<span>Your Email</span>
|
||||
<input type="text" name="name" id="email11" placeholder="Your email" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-4">
|
||||
<div className="form-clt">
|
||||
<span>Your Phone</span>
|
||||
<input type="text" name="name" id="name22" placeholder="Phone Number" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-6">
|
||||
<div className="form-clt">
|
||||
<span>Your Address</span>
|
||||
<input type="text" name="name" id="name24" placeholder="Address Now" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-6">
|
||||
<div className="form-clt">
|
||||
<span>Your Date</span>
|
||||
<input type="text" name="name" id="name25" placeholder="Date" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-12">
|
||||
<div className="form-clt">
|
||||
<textarea
|
||||
name="message"
|
||||
id="message1"
|
||||
placeholder="Type your message"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-12 wow fadeInUp" data-wow-delay=".3s">
|
||||
<button type="submit" className="theme-btn">
|
||||
Send Message
|
||||
<i className="fa-solid fa-arrow-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
17
app/blog/[slug]/components/NewsDetailsSection.tsx
Normal file
17
app/blog/[slug]/components/NewsDetailsSection.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import NewsDetailsContent from "./NewsDetailsContent";
|
||||
import Sidebar from "@/app/blog/components/Sidebar";
|
||||
|
||||
export default function NewsDetailsSection() {
|
||||
return (
|
||||
<section className="news-standard-section section-padding fix">
|
||||
<div className="container">
|
||||
<div className="news-details-wrapper">
|
||||
<div className="row g-4">
|
||||
<NewsDetailsContent />
|
||||
<Sidebar />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
17
app/blog/[slug]/page.tsx
Normal file
17
app/blog/[slug]/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Breadcrumb from "@/app/components/Breadcrumb";
|
||||
import NewsDetailsSection from "./components/NewsDetailsSection";
|
||||
|
||||
interface BlogDetailsPageProps {
|
||||
params: {
|
||||
slug: string;
|
||||
};
|
||||
}
|
||||
|
||||
export default function BlogDetailsPage(_props: BlogDetailsPageProps) {
|
||||
return (
|
||||
<>
|
||||
<Breadcrumb title="Blog Details" current="Blog Details" />
|
||||
<NewsDetailsSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
export default function Breadcrumb() {
|
||||
return (
|
||||
<section className="breadcrumb-wrapper fix bg-cover" style={{ backgroundImage: "url(/assets/img/inner-page/breadcrumb.jpg)" }}>
|
||||
<div className="shape">
|
||||
<img src="/assets/img/inner-page/shape.png" alt="img" />
|
||||
</div>
|
||||
<div className="container">
|
||||
<div className="page-heading">
|
||||
<h1 className="breadcrumb-title">Blog Stardard</h1>
|
||||
<ul className="breadcrumb-list">
|
||||
<li>
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<i className="fa-solid fa-chevron-right"></i>
|
||||
</li>
|
||||
<li>Blog Stardard</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import Link from "next/link";
|
||||
|
||||
export default function NewsList() {
|
||||
return (
|
||||
<div className="col-lg-8 col-12">
|
||||
@@ -19,14 +21,14 @@ export default function NewsList() {
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<a href="/news-details">How to Avoid Common Mistakes in Visa Applications</a>
|
||||
<Link href="/news-details">How to Avoid Common Mistakes in Visa Applications</Link>
|
||||
</h3>
|
||||
<p>
|
||||
A business consultant provides expert guidance, strategic planning, and problem-solving support—helping startups avoid mistakes, grow faster, and operate more efficiently from day one.
|
||||
</p>
|
||||
<a href="/news-details" className="theme-btn">
|
||||
<Link href="/blog/news-details" className="theme-btn">
|
||||
VIEW MORE <i className="fa-solid fa-arrow-right"></i>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
{/* News Post 2 */}
|
||||
@@ -47,14 +49,14 @@ export default function NewsList() {
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<a href="/news-details">The Role of Immigration Consultants in Your Journey</a>
|
||||
<Link href="/news-details">The Role of Immigration Consultants in Your Journey</Link>
|
||||
</h3>
|
||||
<p>
|
||||
Immigration consultants play a vital role in guiding applicants, simplifying complex processes, offering expert advice, and ensuring successful outcomes for study, work, or permanent residency abroad.
|
||||
</p>
|
||||
<a href="/news-details" className="theme-btn">
|
||||
<Link href="/blog/news-details" className="theme-btn">
|
||||
VIEW MORE <i className="fa-solid fa-arrow-right"></i>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
{/* News Post 3 */}
|
||||
@@ -75,14 +77,14 @@ export default function NewsList() {
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<a href="/news-details">Latest Immigration Policy Updates You Should Know</a>
|
||||
<Link href="/news-details">Latest Immigration Policy Updates You Should Know</Link>
|
||||
</h3>
|
||||
<p>
|
||||
Stay informed with the latest immigration policy updates, ensuring you understand new rules, visa requirements, and opportunities that impact your study, work, or migration journey abroad.
|
||||
</p>
|
||||
<a href="/news-details" className="theme-btn">
|
||||
<Link href="/blog/news-details" className="theme-btn">
|
||||
VIEW MORE <i className="fa-solid fa-arrow-right"></i>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import Link from "next/link";
|
||||
|
||||
export default function Sidebar() {
|
||||
return (
|
||||
<div className="col-lg-4 col-12">
|
||||
@@ -16,15 +18,15 @@ export default function Sidebar() {
|
||||
{/* Categories */}
|
||||
<div className="news-sideber-box">
|
||||
<div className="wid-title">
|
||||
<h3>Cetegories</h3>
|
||||
<h3>Categories</h3>
|
||||
</div>
|
||||
<div className="news-widget-categories">
|
||||
<ul>
|
||||
<li><a href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Permanent Residency (PR)</a><span>(04)</span></li>
|
||||
<li><a href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Immigration Policy Updates</a><span>(09)</span></li>
|
||||
<li><a href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Scholarships & Grants</a><span>(00)</span></li>
|
||||
<li><a href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Citizenship & Naturalization</a><span>(04)</span></li>
|
||||
<li><a href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Visa Interview Preparation</a><span>(01)</span></li>
|
||||
<li><Link href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Permanent Residency (PR)</Link><span>(04)</span></li>
|
||||
<li><Link href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Immigration Policy Updates</Link><span>(09)</span></li>
|
||||
<li><Link href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Scholarships & Grants</Link><span>(00)</span></li>
|
||||
<li><Link href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Citizenship & Naturalization</Link><span>(04)</span></li>
|
||||
<li><Link href="/news-details"><i className="fa-solid fa-chevrons-right"></i> Visa Interview Preparation</Link><span>(01)</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,7 +42,7 @@ export default function Sidebar() {
|
||||
</div>
|
||||
<div className="recent-content">
|
||||
<h6>
|
||||
<a href="/news-details">Top Countries for Higher Education in 2025</a>
|
||||
<Link href="/news-details">Top Countries for Higher Education in 2025</Link>
|
||||
</h6>
|
||||
<ul>
|
||||
<li>March 26, 2025</li>
|
||||
@@ -53,7 +55,7 @@ export default function Sidebar() {
|
||||
</div>
|
||||
<div className="recent-content">
|
||||
<h6>
|
||||
<a href="/news-details">The Benefits of Hiring a Visa Consultant</a>
|
||||
<Link href="/news-details">The Benefits of Hiring a Visa Consultant</Link>
|
||||
</h6>
|
||||
<ul>
|
||||
<li>March 26, 2025</li>
|
||||
@@ -66,7 +68,7 @@ export default function Sidebar() {
|
||||
</div>
|
||||
<div className="recent-content">
|
||||
<h6>
|
||||
<a href="/news-details">How to Prepare for Your Immigration Interview</a>
|
||||
<Link href="/news-details">How to Prepare for Your Immigration Interview</Link>
|
||||
</h6>
|
||||
<ul>
|
||||
<li>March 26, 2025</li>
|
||||
@@ -82,12 +84,12 @@ export default function Sidebar() {
|
||||
</div>
|
||||
<div className="news-widget-categories">
|
||||
<div className="tagcloud">
|
||||
<a href="/news-details">WorkVisa</a>
|
||||
<a href="/news-details">FamilyVisa</a>
|
||||
<a href="/news-details">StudentVisa</a>
|
||||
<a href="/news-details">VisaUpdates</a>
|
||||
<a href="/news-details">TravelVisa</a>
|
||||
<a href="/news-details">StudyAbroad</a>
|
||||
<Link href="/news-details">WorkVisa</Link>
|
||||
<Link href="/news-details">FamilyVisa</Link>
|
||||
<Link href="/news-details">StudentVisa</Link>
|
||||
<Link href="/news-details">VisaUpdates</Link>
|
||||
<Link href="/news-details">TravelVisa</Link>
|
||||
<Link href="/news-details">StudyAbroad</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import Breadcrumb from "./components/Breadcrumb";
|
||||
import Breadcrumb from "@/app/components/Breadcrumb";
|
||||
import NewsSection from "./components/NewsSection";
|
||||
|
||||
export default function NewsPage() {
|
||||
return (
|
||||
<>
|
||||
<Breadcrumb />
|
||||
<Breadcrumb title="Blog Stardard" current="Blog Stardard" />
|
||||
<NewsSection />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user