@@ -32,25 +32,44 @@ const starPop = keyframes`
3232const Wrapper = styled ( BaseCard ) `
3333 display: flex;
3434 align-items: stretch;
35+ background: ${ theme . colors . primaryBg } ;
3536` ;
3637
3738const AnimationSide = styled . div `
3839 position: relative;
39- width: 25%;
40- min-width: 200px;
41- background: linear-gradient(145deg, ${ theme . colors . primary } 0%, ${ theme . colors . primaryHover } 100%);
40+ flex: 0 0 220px;
41+ overflow: visible;
4242
4343 @media (max-width: 768px) {
4444 display: none;
4545 }
4646` ;
4747
48+ const AnimationBackground = styled . div `
49+ position: absolute;
50+ inset: 0;
51+ background: linear-gradient(145deg, ${ theme . colors . primary } 0%, ${ theme . colors . primaryHover } 100%);
52+ clip-path: ellipse(48% 40% at 26% 85%);
53+ z-index: 0;
54+ max-width: 300px;
55+ ` ;
56+
57+ const AnimationSideInner = styled . div `
58+ position: relative;
59+ width: 100%;
60+ height: 100%;
61+ display: flex;
62+ align-items: flex-end;
63+ justify-content: flex-start;
64+ z-index: 1;
65+ ` ;
66+
4867const AnimationWrapper = styled . div `
4968 position: absolute;
50- top: 50 %;
51- left: 50 %;
52- transform: translate(-50%, -50%) ;
53- width: 60% ;
69+ bottom: -7 %;
70+ left: -5 %;
71+ width: 115% ;
72+ max- width: 300px ;
5473 height: auto;
5574 filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
5675
@@ -60,8 +79,7 @@ const AnimationWrapper = styled.div`
6079` ;
6180
6281const ContentSide = styled . div `
63- flex: 1;
64- padding: 2vw 2vw 2vw 3vw;
82+ flex: 1 1 auto;
6583 display: flex;
6684 flex-direction: column;
6785 justify-content: center;
@@ -229,17 +247,20 @@ const Feedback: React.FC<FeedbackProps> = ({ context }) => {
229247 return (
230248 < Wrapper >
231249 < AnimationSide >
232- < AnimationWrapper >
233- < Lottie
234- lottieRef = { lottieRef }
235- animationData = { animation }
236- loop = { false }
237- autoplay = { false }
238- style = { { width : '100%' , height : '100%' } }
239- />
240- </ AnimationWrapper >
250+ < AnimationBackground />
251+ < AnimationSideInner >
252+ < AnimationWrapper >
253+ < Lottie
254+ lottieRef = { lottieRef }
255+ animationData = { animation }
256+ loop = { false }
257+ autoplay = { false }
258+ style = { { width : '100%' , height : '100%' } }
259+ />
260+ </ AnimationWrapper >
261+ </ AnimationSideInner >
241262 </ AnimationSide >
242- < ContentSide >
263+ < ContentSide className = "fr-p-3w" >
243264 { submitted ? (
244265 < >
245266 < Title > Votre avis a bien été envoyé !</ Title >
0 commit comments