forked from UKSOURCE/hailearning.edu.vn
feat: implement initial home page with dynamic content, API, and dedicated components.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getCmsImageUrl } from '@/utils/image';
|
||||
import Link from 'next/link';
|
||||
|
||||
interface HeroSectionProps {
|
||||
@@ -20,7 +21,7 @@ interface HeroSectionProps {
|
||||
|
||||
const HeroSection = ({ data }: HeroSectionProps) => {
|
||||
return (
|
||||
<section className="hero-section hero-1 fix bg-cover" style={{ backgroundImage: `url('${data.backgroundImage}')` }}>
|
||||
<section className="hero-section hero-1 fix bg-cover" style={{ backgroundImage: `url('${getCmsImageUrl(data.backgroundImage)}')` }}>
|
||||
<div className="left-shape">
|
||||
<img src="/assets/img/home-1/hero/sape-2.png" alt="img" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user