|
5 | 5 |
|
6 | 6 | #let title-slide(self: none, ..args) = {
|
7 | 7 | self = utils.empty-page(self)
|
8 |
| - self.page-args += ( |
9 |
| - margin: (top: 30%, left: 17%, right: 17%, bottom: 0%), |
10 |
| - background: utils.call-or-display(self, self.aqua-background), |
11 |
| - ) |
| 8 | + self.page-args.margin += (top: 30%, bottom: 0%) |
| 9 | + self.page-args.background = utils.call-or-display(self, self.aqua-background) |
12 | 10 | let info = self.info + args.named()
|
13 | 11 |
|
14 | 12 | let content = {
|
|
162 | 160 | self.aqua-footer = footer
|
163 | 161 | self.aqua-lang = lang
|
164 | 162 | self.aqua-background = (self) => {
|
| 163 | + let page-width = if self.page-args.paper == "presentation-16-9" { 841.89pt } else { 793.7pt } |
| 164 | + let r = if self.show-notes-on-second-screen == none { 1.0 } else { 0.5 } |
| 165 | + let bias1 = - page-width * (1-r) |
| 166 | + let bias2 = - page-width * 2 * (1-r) |
165 | 167 | place(left + top, dx: -15pt, dy: -26pt,
|
166 | 168 | circle(radius: 40pt, fill: self.colors.primary))
|
167 | 169 | place(left + top, dx: 65pt, dy: 12pt,
|
168 | 170 | circle(radius: 21pt, fill: self.colors.primary))
|
169 |
| - place(left + top, dx: 3%, dy: 15%, |
| 171 | + place(left + top, dx: r * 3%, dy: 15%, |
170 | 172 | circle(radius: 13pt, fill: self.colors.primary))
|
171 |
| - place(left + top, dx: 2.5%, dy: 27%, |
| 173 | + place(left + top, dx: r * 2.5%, dy: 27%, |
172 | 174 | circle(radius: 8pt, fill: self.colors.primary))
|
173 |
| - place(right + bottom, dx: 15pt, dy: 26pt, |
| 175 | + place(right + bottom, dx: 15pt + bias2, dy: 26pt, |
174 | 176 | circle(radius: 40pt, fill: self.colors.primary))
|
175 |
| - place(right + bottom, dx: -65pt, dy: -12pt, |
| 177 | + place(right + bottom, dx: -65pt + bias2, dy: -12pt, |
176 | 178 | circle(radius: 21pt, fill: self.colors.primary))
|
177 |
| - place(right + bottom, dx: -3%, dy: -15%, |
| 179 | + place(right + bottom, dx: r * -3% + bias2, dy: -15%, |
178 | 180 | circle(radius: 13pt, fill: self.colors.primary))
|
179 |
| - place(right + bottom, dx: -2.5%, dy: -27%, |
| 181 | + place(right + bottom, dx: r * -2.5% + bias2, dy: -27%, |
180 | 182 | circle(radius: 8pt, fill: self.colors.primary))
|
181 |
| - polygon(fill: self.colors.primary-lightest, |
182 |
| - (35%, -17%), (70%, 10%), (35%, 30%), (0%, 10%)) |
183 |
| - place(center + horizon, dy: 7%, |
184 |
| - ellipse(fill: white, width: 45%, height: 120pt)) |
185 |
| - place(center + horizon, dy: 5%, |
186 |
| - ellipse(fill: self.colors.primary-lightest, width: 40%, height: 80pt)) |
187 |
| - place(center + horizon, dy: 12%, |
188 |
| - rect(fill: self.colors.primary-lightest, width: 40%, height: 60pt)) |
189 |
| - place(center + horizon, dy: 20%, |
190 |
| - ellipse(fill: white, width: 40%, height: 70pt)) |
191 |
| - place(center + horizon, dx: 28%, dy: -6%, |
| 183 | + place(center + horizon, dx: bias1, polygon(fill: self.colors.primary-lightest, |
| 184 | + (35% * page-width, -17%), (70% * page-width, 10%), (35% * page-width, 30%), (0% * page-width, 10%))) |
| 185 | + place(center + horizon, dy: 7%, dx: bias1, |
| 186 | + ellipse(fill: white, width: r * 45%, height: 120pt)) |
| 187 | + place(center + horizon, dy: 5%, dx: bias1, |
| 188 | + ellipse(fill: self.colors.primary-lightest, width: r * 40%, height: 80pt)) |
| 189 | + place(center + horizon, dy: 12%, dx: bias1, |
| 190 | + rect(fill: self.colors.primary-lightest, width: r * 40%, height: 60pt)) |
| 191 | + place(center + horizon, dy: 20%, dx: bias1, |
| 192 | + ellipse(fill: white, width: r * 40%, height: 70pt)) |
| 193 | + place(center + horizon, dx: r * 28% + bias1, dy: -6%, |
192 | 194 | circle(radius: 13pt, fill: white))
|
193 | 195 | }
|
194 | 196 | let header(self) = {
|
|
0 commit comments