06추천사 인용
추천사 카드 세 장이 살짝 어긋난 채 겹쳐 있고, '다음 후기'를 클릭하면 맨 앞 카드가 실제로 맨 뒤로 넘어가며 순서가 바뀝니다.
쓰임포트폴리오·프리랜서 페이지의 클라이언트 추천사 섹션
transformclickaria-live

<main class="stage">
<section class="pq is-demo" aria-roledescription="carousel" aria-label="추천사">
<div class="pq__deck">
<blockquote class="pq__card" data-order="0">
<span class="pq__mark" aria-hidden="true">"</span>
<p class="pq__text">디자인 핸드오프 없이도 구현 의도가 그대로 전달됐습니다.</p>
<p class="pq__who">박OO · PM</p>
</blockquote>
<blockquote class="pq__card" data-order="1">
<span class="pq__mark" aria-hidden="true">"</span>
<p class="pq__text">일정보다 빠르게 나왔는데 완성도는 오히려 더 높았습니다.</p>
<p class="pq__who">김OO · 대표</p>
</blockquote>
<blockquote class="pq__card" data-order="2">
<span class="pq__mark" aria-hidden="true">"</span>
<p class="pq__text">문의부터 배포까지 커뮤니케이션이 막힌 적이 없었습니다.</p>
<p class="pq__who">이OO · 디자이너</p>
</blockquote>
</div>
<button class="pq__next" type="button">다음 후기</button>
<p class="pq__status" role="status" aria-live="polite"></p>
</section>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: $dur-enter; // 카드 더미 순환 전환
$easing: $ease-spring;
$color: $subject-blue; // 인용부호·포인트 색
@include stage($stage-yellow);
.pq { width: min(340px, 92vw); text-align: center; }
.pq__deck { position: relative; height: 164px; }
.pq__card {
position: absolute;
inset: 0;
margin: 0;
box-sizing: border-box;
padding: $sp-4 $sp-3;
border-radius: $r-card;
background: rgba(255, 255, 255, .95);
transition: transform $duration $easing, opacity $duration $easing;
}
.pq__card[data-order="0"] { transform: translate(0, 0) rotate(0deg) scale(1); z-index: 3; opacity: 1; }
.pq__card[data-order="1"] { transform: translate($sp-2, $sp-2) rotate(-3deg) scale(.95); z-index: 2; opacity: .82; }
.pq__card[data-order="2"] { transform: translate($sp-4, $sp-3) rotate(3deg) scale(.9); z-index: 1; opacity: .55; }
.pq__mark {
display: block;
margin: 0 0 $sp-1;
font: 800 42px/1 Georgia, serif;
color: $color;
opacity: .32;
}
// ── 인용부호가 계속 흔들리는 장식(항상 재생, 117 실측: 40px·연한 회색은 면적 부족 → 42px·파랑으로 키움) ──────────────
.pq__card[data-order="0"] .pq__mark { animation: pq-wiggle 2s $easing infinite; }
@keyframes pq-wiggle {
0%, 100% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(-12deg) scale(1.22); }
}
.pq__text { margin: 0 0 $sp-2; font-weight: 600; font-size: clamp(11px, 3.2vw, 12px); line-height: 1.5; font-family: inherit; color: $subject-ink; }
.pq__who { margin: 0; font-weight: 700; font-size: 10px; line-height: 1.3; font-family: inherit; color: rgba($subject-ink, .72); } // 흰 면 위 7.25:1
.pq__next {
margin-top: $sp-3;
padding: $sp-1 $sp-4;
border-radius: $r-pill;
border: 1px solid rgba(23, 20, 26, .18);
background: none;
color: rgba(23, 20, 26, .65);
font-weight: 700; font-size: 11px; line-height: 1.6; font-family: inherit;
cursor: pointer;
}
.pq__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
// ── 반응형(BD9) ──────────────────────────────────────────
@media (max-width: 340px), (max-height: 220px) {
.pq__deck { height: 128px; }
.pq__card { padding: $sp-2 $sp-2; }
.pq__mark { font-size: 20px; margin-bottom: $sp-1; }
}
// ── 접근성 ──────────────────────────────────────────
@media (prefers-reduced-motion: reduce) {
.pq__card { transition: none; }
.pq__card[data-order="0"] .pq__mark { animation: none !important; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffd23f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.pq {
width: min(340px, 92vw);
text-align: center;
}
.pq__deck {
position: relative;
height: 164px;
}
.pq__card {
position: absolute;
inset: 0;
margin: 0;
box-sizing: border-box;
padding: 16px 12px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.95);
transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pq__card[data-order="0"] {
transform: translate(0, 0) rotate(0deg) scale(1);
z-index: 3;
opacity: 1;
}
.pq__card[data-order="1"] {
transform: translate(8px, 8px) rotate(-3deg) scale(0.95);
z-index: 2;
opacity: 0.82;
}
.pq__card[data-order="2"] {
transform: translate(16px, 12px) rotate(3deg) scale(0.9);
z-index: 1;
opacity: 0.55;
}
.pq__mark {
display: block;
margin: 0 0 4px;
font: 800 42px/1 Georgia, serif;
color: #2f6df6;
opacity: 0.32;
}
.pq__card[data-order="0"] .pq__mark {
animation: pq-wiggle 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@keyframes pq-wiggle {
0%, 100% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(-12deg) scale(1.22);
}
}
.pq__text {
margin: 0 0 8px;
font-weight: 600;
font-size: clamp(11px, 3.2vw, 12px);
line-height: 1.5;
font-family: inherit;
color: #17141a;
}
.pq__who {
margin: 0;
font-weight: 700;
font-size: 10px;
line-height: 1.3;
font-family: inherit;
color: rgba(23, 20, 26, 0.72);
}
.pq__next {
margin-top: 12px;
padding: 4px 16px;
border-radius: 999px;
border: 1px solid rgba(23, 20, 26, 0.18);
background: none;
color: rgba(23, 20, 26, 0.65);
font-weight: 700;
font-size: 11px;
line-height: 1.6;
font-family: inherit;
cursor: pointer;
}
.pq__status {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
}
@media (max-width: 340px), (max-height: 220px) {
.pq__deck {
height: 128px;
}
.pq__card {
padding: 8px 8px;
}
.pq__mark {
font-size: 20px;
margin-bottom: 4px;
}
}
@media (prefers-reduced-motion: reduce) {
.pq__card {
transition: none;
}
.pq__card[data-order="0"] .pq__mark {
animation: none !important;
}
}// 실제 동작: "다음 후기"를 누르면 카드 더미가 실제로 한 장씩 뒤로 돌아가며 순서가 바뀐다.
var root = document.querySelector('.pq');
var cards = Array.prototype.slice.call(root.querySelectorAll('.pq__card'));
var next = root.querySelector('.pq__next');
var status = root.querySelector('.pq__status');
function render() {
cards.forEach(function (card, i) { card.setAttribute('data-order', String(i)); });
status.textContent = cards[0].querySelector('.pq__who').textContent + ' 후기를 보는 중';
}
next.addEventListener('click', function () {
root.classList.remove('is-demo');
cards.push(cards.shift());
render();
});import { useState } from "react";
import type { CSSProperties } from "react";
import styles from "./ProjectQuote.module.scss";
export type ProjectQuoteProps = { duration?: number; easing?: string; color?: string };
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
const QUOTES = [
{ text: "디자인 핸드오프 없이도 구현 의도가 그대로 전달됐습니다.", who: "박OO · PM" },
{ text: "일정보다 빠르게 나왔는데 완성도는 오히려 더 높았습니다.", who: "김OO · 대표" },
{ text: "문의부터 배포까지 커뮤니케이션이 막힌 적이 없었습니다.", who: "이OO · 디자이너" },
];
export default function ProjectQuote({ duration = 600, easing = "cubic-bezier(.2,.8,.2,1)", color = "#2f6df6" }: ProjectQuoteProps) {
const [order, setOrder] = useState([0, 1, 2]);
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
// 실제 동작: "다음 후기"를 누르면 카드 더미가 실제로 한 장씩 뒤로 돌아가며 순서가 바뀐다.
function next() {
setOrder((o) => [...o.slice(1), o[0]]);
}
return (
<section className={styles.pq} style={vars} aria-roledescription="carousel" aria-label="추천사">
<div className={styles.deck}>
{QUOTES.map((q, i) => (
<blockquote key={q.who} className={styles.card} data-order={order.indexOf(i)}>
<span className={styles.mark} aria-hidden="true">"</span>
<p className={styles.text}>{q.text}</p>
<p className={styles.who}>{q.who}</p>
</blockquote>
))}
</div>
<button type="button" className={styles.next} onClick={next}>다음 후기</button>
<p className={styles.status} role="status" aria-live="polite">{QUOTES[order[0]].who} 후기를 보는 중</p>
</section>
);
}06 추천사 인용 — 측정 누적면적 0.188% · 움직인 프레임 16/23GODRICH 원작 · zip 에 SCSS·React 포함 · 프로젝트 포트폴리오 템플릿 9종 — 쇼케이스 섹션 모음
이 데모가 속한 글
프로젝트 포트폴리오 템플릿 9종 — 쇼케이스 섹션 모음프로젝트 포트폴리오 템플릿은 그리드·케이스 스터디·경력·연락 폼 같은 개인 포트폴리오 페이지 구성 요소를 통째로 담은 코드 모음입니다. 랜딩 페이지에 바로 붙이는 히어로부터 쇼케이스 푸터까지, 아홉 개 중 하나는 탭 이 글의 데모 전부 보기


