Datasets:
Download tasks/c30/repo/src/components/Levels.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 6.1 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c30/repo/src/components/Levels.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c30/repo/src/components/Levels.jsx
-
curl -L -o Levels.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c30/repo/src/components/Levels.jsx
6.1 kB
| import lvl1 from '../assets/lvl1.png' | |
| import lvl2 from '../assets/lvl2.png' | |
| import lvl3 from '../assets/lvl3.png' | |
| import lvl4 from '../assets/lvl4.png' | |
| import lvl5 from '../assets/lvl5.png' | |
| const CORE_BENEFITS = ['Product usability', 'Customer satisfaction', 'Revenue'] | |
| const SCIENTIST_BENEFITS = [ | |
| ...CORE_BENEFITS, | |
| 'Project-specific metrics', | |
| 'Funnel and conversion metrics', | |
| 'Cost savings', | |
| 'Time to market', | |
| 'Entry into new markets', | |
| 'Employee productivity', | |
| 'Brand equity', | |
| ] | |
| const LEVELS = [ | |
| { | |
| n: 1, | |
| name: 'Producers', | |
| tagline: 'Design makes it look good', | |
| pct: 41, | |
| body: | |
| 'These companies are focused on the most visible aspects of design—the pixels on the screen.', | |
| activities: ['Wireframes', 'Design comps', 'Interactive prototypes'], | |
| benefits: ['Product usability'], | |
| art: lvl1, | |
| artAlt: 'A line of designers walking single file', | |
| height: 670, | |
| artStyle: { left: 170, top: 322, width: 305 }, | |
| ruleTop: 259, | |
| }, | |
| { | |
| n: 2, | |
| name: 'Connectors', | |
| tagline: 'The workplace becomes a workshop', | |
| pct: 21, | |
| body: | |
| 'Design teams at these organizations have developed more collaborative processes, like joint working sessions and integrated tooling with non-design peers.', | |
| activities: [ | |
| 'Workshops', | |
| 'Rapid sketching', | |
| 'Stakeholder input', | |
| 'Integrations between designer and developer tools', | |
| ], | |
| benefits: ['Product usability', 'Customer satisfaction'], | |
| art: lvl2, | |
| artAlt: 'A planet and a rocket ship in flight', | |
| height: 816, | |
| artStyle: { left: 85, top: 467, width: 475 }, | |
| ruleTop: 344, | |
| }, | |
| { | |
| n: 3, | |
| name: 'Architects', | |
| tagline: 'Design is a scalable operation', | |
| pct: 21, | |
| body: | |
| 'These companies have moved beyond basic participatory design processes and have shared ownership, role clarity, joint accountability with key partners, and more documentation of their now more substantial design practices.', | |
| activities: ['Daily standups', 'Planning and prioritization', 'Design briefs', 'Written documentation'], | |
| benefits: CORE_BENEFITS, | |
| art: lvl3, | |
| artAlt: 'A designer standing with a dog', | |
| height: 799, | |
| artStyle: { left: 190, top: 466, width: 275 }, | |
| ruleTop: 356, | |
| }, | |
| { | |
| n: 4, | |
| name: 'Scientists', | |
| tagline: 'Hypotheses and experimentation power design', | |
| pct: 12, | |
| body: | |
| 'Organizations at this level are masters of data-driven design with sophisticated practices for analytics, user research, and monitoring and measuring the success of specific efforts.', | |
| activities: ['Concept testing', 'A/B tests', 'Analytics data'], | |
| benefits: SCIENTIST_BENEFITS, | |
| art: lvl4, | |
| artAlt: 'Two researchers scanning a rock with a hologram', | |
| height: 990, | |
| artStyle: { left: 60, top: 637, width: 535 }, | |
| ruleTop: 367, | |
| }, | |
| { | |
| n: 5, | |
| name: 'Visionaries', | |
| tagline: 'Design means business', | |
| pct: 5, | |
| body: | |
| 'These companies are robust in all the dimensions of maturity, but what really separates them from the others is design’s involvement in strategy.', | |
| activities: ['Trendspotting and foresight', 'Product market fit tests', 'Vision artifacts', 'Cross-platform strategies'], | |
| benefits: [...SCIENTIST_BENEFITS, 'Design patents/IP', 'Share price'], | |
| art: lvl5, | |
| artAlt: 'A crew of four astronauts posing together', | |
| height: 966, | |
| artStyle: { left: 145, top: 612, width: 345 }, | |
| ruleTop: 284, | |
| }, | |
| ] | |
| function NumberedList({ title, items }) { | |
| return ( | |
| <div className="lvl-list"> | |
| <h5>{title}</h5> | |
| <ol> | |
| {items.map((item, i) => ( | |
| <li key={item}> | |
| <span className="idx">{i + 1}.</span> | |
| <span>{item}</span> | |
| </li> | |
| ))} | |
| </ol> | |
| </div> | |
| ) | |
| } | |
| function LevelRow({ level }) { | |
| return ( | |
| <article className="level-row" id={`level-${level.n}`} style={{ '--row-h': level.height + 'px' }}> | |
| <span className="lvl-label">Level {level.n}</span> | |
| <h3 className="lvl-title">{level.name}</h3> | |
| <img | |
| className="lvl-art" | |
| src={level.art} | |
| alt={level.artAlt} | |
| style={{ left: level.artStyle.left, top: level.artStyle.top, width: level.artStyle.width }} | |
| /> | |
| <div className="lvl-right"> | |
| <div className="lvl-head"> | |
| <div className="lvl-sub">{level.tagline}</div> | |
| <div className="lvl-stat"> | |
| <div className="lvl-pct">{level.pct}%</div> | |
| <div className="lvl-ofco">of companies</div> | |
| <div className="lvl-track"> | |
| <span className="lvl-fill" style={{ width: level.pct + '%' }} /> | |
| </div> | |
| </div> | |
| </div> | |
| <p className="lvl-body">{level.body}</p> | |
| <hr className="lvl-rule" style={{ top: level.ruleTop }} /> | |
| <div className="lvl-lists" style={{ top: level.ruleTop + 56 }}> | |
| <NumberedList title="Key activities" items={level.activities} /> | |
| <NumberedList title="Key benefits" items={level.benefits} /> | |
| </div> | |
| </div> | |
| </article> | |
| ) | |
| } | |
| export default function Levels() { | |
| return ( | |
| <section className="levels" id="levels"> | |
| <div className="container"> | |
| <div className="levels-intro"> | |
| <h2 className="giant-heading"> | |
| How | |
| <br /> | |
| design | |
| <br /> | |
| teams | |
| <br /> | |
| level up | |
| </h2> | |
| <div className="levels-intro-right"> | |
| <h3>Why are the efforts of some companies more impactful than others?</h3> | |
| <p> | |
| Understanding what differentiates high-performing design organizations is key to | |
| learning how your company can evolve and build a better bottom line. And most | |
| companies are only just scratching the surface of what’s possible. Explore the | |
| levels of the new design maturity model today. | |
| </p> | |
| </div> | |
| </div> | |
| {LEVELS.map((level) => ( | |
| <LevelRow key={level.n} level={level} /> | |
| ))} | |
| </div> | |
| </section> | |
| ) | |
| } | |