-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiscoUI_image-PropelPitchingM3.2.html
More file actions
171 lines (156 loc) · 7.77 KB
/
DiscoUI_image-PropelPitchingM3.2.html
File metadata and controls
171 lines (156 loc) · 7.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRAP Design Principles</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', sans-serif;
background: #ffffff;
padding: 36px 24px 44px;
display: flex;
justify-content: center;
min-height: unset;
align-items: flex-start;
}
.container {
width: 100%;
max-width: 800px;
}
/* ── Four-column grid ── */
.row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
align-items: start;
}
/* ── Single item ── */
.item {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
/* ── Circle ── */
.circle {
width: 100%;
aspect-ratio: 1 / 1;
max-width: 165px;
border-radius: 50%;
background: #ffffff;
border: 1.5px solid #e5e7eb;
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.08);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.circle svg {
width: 50%;
height: 50%;
fill: #374151;
display: block;
}
/* ── Caption ── */
.caption {
text-align: center;
color: #6b7280;
font-weight: 400;
font-size: 13px;
line-height: 1.65;
max-width: 160px;
}
/* Title replaces number */
.caption .title {
font-weight: 600;
font-size: 15px;
color: #2563eb;
line-height: 1;
display: block;
margin-bottom: 7px;
letter-spacing: -0.01em;
}
/* ── Mobile: 2×2 ── */
.container.is-mobile .row {
grid-template-columns: repeat(2, 1fr);
gap: 24px 16px;
}
.container.is-mobile .circle {
max-width: 140px;
}
.container.is-mobile .caption {
max-width: 140px;
font-size: 12px;
}
.container.is-mobile .caption .title {
font-size: 14px;
}
</style>
</head>
<body>
<div class="container" id="container">
<div class="row">
<!-- 1: Contrast -->
<div class="item">
<div class="circle">
<svg viewBox="0 0 122.88 122.88" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M122.88,61.44L122.88,61.44L122.88,61.44c0,8.47-1.5,16.34-4.5,23.58c-0.49,1.19-1.02,2.35-1.59,3.49 c-2.92,5.89-6.89,11.35-11.92,16.36l0,0l0,0l0,0l0,0l0,0c-1.67,1.68-3.4,3.24-5.17,4.68c-1.78,1.45-3.61,2.78-5.48,3.98 c-9.65,6.23-20.58,9.34-32.78,9.34h0v0c-8.47,0-16.33-1.5-23.58-4.5c-1.19-0.49-2.35-1.02-3.49-1.59 c-5.89-2.92-11.35-6.89-16.36-11.92l0,0l0,0l0,0l0,0l0,0c-1.68-1.67-3.24-3.4-4.68-5.17c-1.45-1.78-2.78-3.61-3.98-5.48 C3.11,84.58,0,73.64,0,61.44v0h0c0-8.47,1.5-16.33,4.5-23.58c0.49-1.19,1.02-2.35,1.59-3.49c2.92-5.89,6.89-11.35,11.92-16.36l0,0 l0,0l0,0l0,0l0,0c1.67-1.68,3.4-3.24,5.17-4.68c1.78-1.45,3.61-2.78,5.48-3.98C38.3,3.11,49.24,0,61.44,0h0v0 c8.47,0,16.33,1.5,23.58,4.5c1.19,0.49,2.35,1.02,3.49,1.59c5.89,2.92,11.35,6.89,16.36,11.92l0,0l0,0l0,0l0,0l0,0 c1.68,1.67,3.24,3.4,4.68,5.17c1.45,1.78,2.78,3.61,3.98,5.48C119.77,38.3,122.88,49.24,122.88,61.44L122.88,61.44z M61.44,10.96 c0.11,0,0.22,0,0.32,0v100.96c-0.11,0-0.22,0-0.32,0c-27.88,0-50.48-22.6-50.48-50.48C10.96,33.56,33.56,10.96,61.44,10.96 L61.44,10.96z"/>
</svg>
</div>
<p class="caption">
<span class="title">Contrast</span>
Make important ideas stand out. Use size, colour, or bold text to show what matters most on each slide.
</p>
</div>
<!-- 2: Repetition -->
<div class="item">
<div class="circle">
<svg viewBox="0 0 95.396 122.88" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0,93.349l30.717,29.531l0.002-19.008H85.11v-21.05h-0.002V68.516l0.002-0.413 l-0.004-18.861L64.06,69.475l0.002,13.348h-33.34l-0.004-19.008L0,93.349L0,93.349z M95.396,29.533L64.68,0l-0.002,19.011 l-28.031,0l-0.533-0.002l-25.827,0l-0.002,1.025v25.833l0.002,23.394h3.293l17.754-17.069v-5.794l0.002-0.535V40.06h33.34 l0.004,19.006L95.396,29.533L95.396,29.533L95.396,29.533z"/>
</svg>
</div>
<p class="caption">
<span class="title">Repetition</span>
Use consistent fonts, colours, and layouts throughout. Consistency signals professionalism and makes your deck easier to follow.
</p>
</div>
<!-- 3: Alignment -->
<div class="item">
<div class="circle">
<svg viewBox="0 0 122.88 95.07" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M46.06,26.43c21.77,0,55.05,0,76.82,0v15.8l-76.82,0V26.43L46.06,26.43L46.06,26.43z M7.47,48.01l23.24,22.35 V25.66L7.47,48.01L7.47,48.01z M122.88,79.28c-41.01,0-81.87,0-122.87,0L0,95.07c41.01,0,81.87,0,122.88,0V79.28L122.88,79.28z M122.88,52.85c-17.23,0-59.11,0-76.34,0l0,15.8h76.34V52.85L122.88,52.85z M122.88,0C97.46,0,25.44,0,0.02,0l0,15.8 c25.42,0,97.44,0,122.87,0L122.88,0L122.88,0L122.88,0z"/>
</svg>
</div>
<p class="caption">
<span class="title">Alignment</span>
Line up your text and visual components deliberately. Random placement looks unprofessional and makes slides harder to read.
</p>
</div>
<!-- 4: Proximity -->
<div class="item">
<div class="circle">
<svg viewBox="0 0 109.69 122.88" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M101.41,37.05c-1.95,2.14-4.22,4.05-6.77,5.6c-0.31,0.23-0.74,0.26-1.09,0.03c-3.76-2.39-6.93-5.27-9.41-8.4 c-3.43-4.3-5.59-9.07-6.33-13.66c-0.75-4.66-0.05-9.14,2.27-12.79C81,6.4,82.17,5.08,83.59,3.95c3.27-2.6,7-3.98,10.73-3.95 c3.58,0.03,7.12,1.36,10.18,4.15c1.08,0.98,1.98,2.09,2.72,3.31c2.49,4.11,3.03,9.34,1.93,14.65 C108.07,27.36,105.39,32.69,101.41,37.05L101.41,37.05L101.41,37.05z M23.88,92.06c-1.95,2.14-4.22,4.05-6.77,5.6 c-0.31,0.23-0.74,0.26-1.09,0.03c-3.76-2.4-6.93-5.27-9.41-8.4C3.19,85,1.03,80.23,0.29,75.63c-0.75-4.66-0.05-9.14,2.27-12.78 c0.91-1.44,2.08-2.75,3.51-3.88c3.27-2.6,7-3.98,10.72-3.95c3.58,0.03,7.12,1.36,10.18,4.15c1.08,0.98,1.98,2.09,2.72,3.31 c2.49,4.11,3.03,9.34,1.93,14.65C30.54,82.37,27.86,87.7,23.88,92.06L23.88,92.06L23.88,92.06z M17.07,103.04 c4.51,0,8.32,3.02,9.52,7.14h59.97c2.96,0,5.66-1.21,7.62-3.17c1.96-1.96,3.17-4.65,3.17-7.62l0,0c0-2.96-1.21-5.66-3.17-7.62 c-1.96-1.96-4.65-3.17-7.62-3.17H65.58v0c-4.71,0-8.99-1.92-12.09-5.02c-3.1-3.1-5.02-7.38-5.02-12.09l0,0 c0-4.71,1.92-8.99,5.02-12.09c3.1-3.1,7.38-5.02,12.09-5.02h18.97c1.3-3.96,5.03-6.82,9.42-6.82c5.48,0,9.92,4.44,9.92,9.92 c0,5.48-4.44,9.92-9.92,9.92c-4.35,0-8.04-2.8-9.38-6.69H65.58c-2.96,0-5.66,1.21-7.62,3.17c-1.96,1.96-3.17,4.65-3.17,7.62l0,0 c0,2.96,1.21,5.66,3.17,7.62c1.94,1.94,4.61,3.15,7.55,3.17v0h21.06c4.71,0,8.99,1.92,12.09,5.02c3.1,3.1,5.02,7.38,5.02,12.09l0,0 c0,4.71-1.92,8.99-5.02,12.09c-3.1,3.1-7.38,5.02-12.09,5.02H26.34c-1.43,3.73-5.04,6.37-9.27,6.37c-5.48,0-9.92-4.44-9.92-9.92 C7.15,107.48,11.59,103.04,17.07,103.04L17.07,103.04z M16.08,63.3c4.42,0,8,3.58,8,8c0,4.42-3.58,8-8,8c-4.42,0-8-3.58-8-8 C8.08,66.88,11.66,63.3,16.08,63.3L16.08,63.3z M93.61,8.28c4.42,0,8,3.58,8,8c0,4.42-3.58,8-8,8c-4.42,0-8-3.58-8-8 C85.61,11.86,89.19,8.28,93.61,8.28L93.61,8.28z"/>
</svg>
</div>
<p class="caption">
<span class="title">Proximity</span>
Group related components together. White space between unrelated components helps the audience understand what belongs together.
</p>
</div>
</div>
</div>
<script>
const container = document.getElementById('container');
function applyLayout() {
container.classList.toggle('is-mobile', container.offsetWidth < 560);
}
window.addEventListener('resize', applyLayout);
applyLayout();
</script>
</body>
</html>