Add portfolio field to contact blueprints and edit contact icons
This commit is contained in:
parent
4177b0c140
commit
5a83346350
6 changed files with 61 additions and 19 deletions
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
// Dimensions
|
// Dimensions
|
||||||
|
|
||||||
--icon-size: 3.2rem;
|
--icon-size: 3rem;
|
||||||
--sidebar-padding: 0.8rem;
|
--sidebar-padding: 0.8rem;
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
|
@ -41,7 +41,7 @@ $desktop-media-query: 62rem;
|
||||||
|
|
||||||
// Dimensions
|
// Dimensions
|
||||||
|
|
||||||
--icon-size: 3rem;
|
--icon-size: 2.8rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +56,6 @@ $desktop-media-query: 62rem;
|
||||||
|
|
||||||
// Dimensions
|
// Dimensions
|
||||||
|
|
||||||
--icon-size: 2.8rem;
|
--icon-size: 2.6rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
3
site/blueprints/files/pdf.yml
Normal file
3
site/blueprints/files/pdf.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
title: Image
|
||||||
|
accept:
|
||||||
|
mime: application/pdf
|
|
@ -10,7 +10,7 @@ fields:
|
||||||
icon: instagram
|
icon: instagram
|
||||||
required: true
|
required: true
|
||||||
width: 1/2
|
width: 1/2
|
||||||
contact_gap:
|
contact_gap_1:
|
||||||
type: gap
|
type: gap
|
||||||
width: 1/2
|
width: 1/2
|
||||||
email:
|
email:
|
||||||
|
@ -20,3 +20,17 @@ fields:
|
||||||
type: email
|
type: email
|
||||||
required: true
|
required: true
|
||||||
width: 1/2
|
width: 1/2
|
||||||
|
contact_gap_2:
|
||||||
|
type: gap
|
||||||
|
width: 1/2
|
||||||
|
portfolio:
|
||||||
|
label: Portfolio
|
||||||
|
type: files
|
||||||
|
multiple: false
|
||||||
|
query: site.documents
|
||||||
|
uploads: pdf
|
||||||
|
help:
|
||||||
|
en: "File available for dowload (format: PDF)."
|
||||||
|
fr: "Fichier proposé en téléchargement (format : PDF)."
|
||||||
|
width: 1/2
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ return function ($site) {
|
||||||
// Get contact fields content
|
// Get contact fields content
|
||||||
$email = $site->email();
|
$email = $site->email();
|
||||||
$instagram = $site->instagram();
|
$instagram = $site->instagram();
|
||||||
|
$portfolio = $site->portfolio()->toFile();
|
||||||
|
|
||||||
// Get image files section content
|
// Get image files section content
|
||||||
$images = $site->files()->template("full_screen_image")->shuffle();
|
$images = $site->files()->template("full_screen_image")->shuffle();
|
||||||
|
@ -22,6 +23,7 @@ return function ($site) {
|
||||||
'exhibitions' => $exhibitions,
|
'exhibitions' => $exhibitions,
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'instagram' => $instagram,
|
'instagram' => $instagram,
|
||||||
|
'portfolio' => $portfolio,
|
||||||
'images' => $images
|
'images' => $images
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<a class="social__link" href="{{ instagram }}" target="_blank" aria-label="Go to {{ site.title }}'s Instagram profile">
|
<a class="social__link" href="{{ instagram }}" target="_blank" title="Go to {{ site.title }}'s Instagram profile">
|
||||||
<svg class="instagram-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
<svg class="instagram-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="instagram-icon__gradient" gradientUnits="userSpaceOnUse" x1="328.27" x2="183.73" y1="508.05" y2="3.95">
|
<linearGradient id="instagram-icon__gradient" gradientUnits="userSpaceOnUse" x1="328.27" x2="183.73" y1="508.05" y2="3.95" gradientTransform="matrix(1, 0, 0, 1, 0, 0)">
|
||||||
<stop offset="0" stop-color="#ffdb73"/>
|
<stop offset="0" stop-color="#ffdb73"/>
|
||||||
<stop offset="0.08" stop-color="#fdad4e"/>
|
<stop offset="0.08" stop-color="#fdad4e"/>
|
||||||
<stop offset="0.15" stop-color="#fb832e"/>
|
<stop offset="0.15" stop-color="#fb832e"/>
|
||||||
|
@ -43,16 +43,18 @@
|
||||||
fill: #fff;
|
fill: #fff;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<rect class="instagram-icon__background" height="465.06" rx="107.23" ry="107.23" width="465.06" x="23.47" y="23.47"/>
|
<g transform="matrix(1.100933, 0, 0, 1.100933, -25.838909, -25.838909)">
|
||||||
<path class="instagram-icon__white-path" d="M331,115.22a66.92,66.92,0,0,1,66.65,66.65V330.13A66.92,66.92,0,0,1,331,396.78H181a66.92,66.92,0,0,1-66.65-66.65V181.87A66.92,66.92,0,0,1,181,115.22H331m0-31H181c-53.71,0-97.66,44-97.66,97.66V330.13c0,53.71,44,97.66,97.66,97.66H331c53.71,0,97.66-44,97.66-97.66V181.87c0-53.71-43.95-97.66-97.66-97.66Z"/>
|
<rect class="instagram-icon__background" height="465.06" rx="107.23" ry="107.23" width="465.06" y="23.47" x="23.47"/>
|
||||||
<path class="instagram-icon__white-path" d="M256,198.13A57.87,57.87,0,1,1,198.13,256,57.94,57.94,0,0,1,256,198.13m0-31A88.87,88.87,0,1,0,344.87,256,88.87,88.87,0,0,0,256,167.13Z"/>
|
<path class="instagram-icon__white-path" d="M 331 115.22 C 367.748 115.368 397.502 145.122 397.65 181.87 L 397.65 330.13 C 397.502 366.878 367.748 396.632 331 396.78 L 181 396.78 C 144.252 396.632 114.498 366.878 114.35 330.13 L 114.35 181.87 C 114.498 145.122 144.252 115.368 181 115.22 L 331 115.22 M 331 84.22 L 181 84.22 C 127.29 84.22 83.34 128.22 83.34 181.88 L 83.34 330.13 C 83.34 383.84 127.34 427.79 181 427.79 L 331 427.79 C 384.71 427.79 428.66 383.79 428.66 330.13 L 428.66 181.87 C 428.66 128.16 384.71 84.21 331 84.21 L 331 84.22 Z"/>
|
||||||
<circle class="instagram-icon__white-path" cx="346.81" cy="163.23" r="21.07"/>
|
<path class="instagram-icon__white-path" d="M 256 198.13 C 300.548 198.13 328.391 246.355 306.117 284.935 C 283.843 323.515 228.157 323.515 205.883 284.935 C 200.804 276.138 198.13 266.158 198.13 256 C 198.169 224.055 224.055 198.169 256 198.13 M 256 167.13 C 187.588 167.13 144.83 241.188 179.036 300.435 C 213.242 359.682 298.758 359.682 332.964 300.435 C 340.764 286.925 344.87 271.6 344.87 256 C 344.87 206.918 305.082 167.13 256 167.13 Z"/>
|
||||||
|
<circle class="instagram-icon__white-path" cx="346.81" cy="163.23" r="21.07"/>
|
||||||
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<a class="social__link" href="mailto:{{ email }}" target="_blank" aria-label="Write an email to {{ site.title }}">
|
<a class="social__link" href="mailto:{{ email }}" target="_blank" title="Write an email to {{ site.title }}">
|
||||||
<svg class="apple-mail-icon" aria-hidden="true" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
<svg class="apple-mail-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="apple-mail-icon__gradient" gradientTransform="matrix(60 0 0 -60 4071 44901)" gradientUnits="userSpaceOnUse" x1="-67.0167" x2="-67.0167" y1="748.2662" y2="746.7667">
|
<linearGradient id="apple-mail-icon__gradient" gradientTransform="matrix(341.333771, 0, 0, -341.333771, 23131.050781, 255408.6875)" gradientUnits="userSpaceOnUse" x1="-67.0167" x2="-67.0167" y1="748.2662" y2="746.7667">
|
||||||
<stop offset="0" stop-color="#1e51ee"/>
|
<stop offset="0" stop-color="#1e51ee"/>
|
||||||
<stop offset="1" stop-color="#19e6ff"/>
|
<stop offset="1" stop-color="#19e6ff"/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
|
@ -65,10 +67,31 @@
|
||||||
fill: #fff;
|
fill: #fff;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<path class="apple-mail-icon__background" d="M63.6,5c9,0,13.5,0,18.4,1.5c5.3,1.9,9.5,6.1,11.4,11.4C95,22.8,95,27.4,95,36.4v27.2 c0,9,0,13.5-1.5,18.4c-1.9,5.3-6.1,9.5-11.4,11.4C77.2,95,72.6,95,63.6,95H36.4c-9,0-13.5,0-18.4-1.5C12.7,91.5,8.5,87.4,6.6,82 C5,77.2,5,72.7,5,63.6V36.4c0-9,0-13.5,1.5-18.4C8.5,12.7,12.7,8.5,18,6.6C22.8,5,27.4,5,36.4,5H63.6z" id="Background_2_"/>
|
<path class="apple-mail-icon__background" d="M 333.376 0 C 384.576 0 410.176 0 438.048 8.528 C 468.192 19.344 492.096 43.232 502.896 73.392 C 512 101.264 512 127.424 512 178.624 L 512 333.376 C 512 384.576 512 410.176 503.472 438.048 C 492.656 468.192 468.768 492.096 438.608 502.896 C 410.736 512 384.576 512 333.376 512 L 178.624 512 C 127.424 512 101.824 512 73.952 503.472 C 43.808 492.096 19.904 468.768 9.104 438.048 C 0 410.736 0 385.136 0 333.376 L 0 178.624 C 0 127.424 0 101.824 8.528 73.952 C 19.904 43.808 43.808 19.904 73.952 9.104 C 101.264 0 127.424 0 178.624 0 L 333.376 0 Z" id="Background_2_"/>
|
||||||
<path class="apple-mail-icon__white-path" d="M78.9,69.5c-0.1,0-0.3,0.1-0.4,0.1h-57c-0.1,0-0.3,0-0.4-0.1l0,0l17.8-17.8l3.8,3.9c4.1,4.2,10.6,4.2,14.7,0 l3.8-3.9L78.9,69.5L78.9,69.5L78.9,69.5z M80,67.6V32.3c0-0.2,0-0.4-0.1-0.5C79.8,32,62.2,50.2,62.2,50.2l17.8,17.8 C80,67.8,80,67.7,80,67.6L80,67.6z M20,67.7V32.5c0-0.2,0-0.4,0.1-0.5c0.1,0.2,17.7,18.4,17.7,18.4L20.1,68.1 C20,68,20,67.8,20,67.7L20,67.7z M79,30.6L56.3,53.8c-3.5,3.5-9.1,3.5-12.5,0L21.1,30.6C21,30.5,79,30.6,79,30.6L79,30.6z"/>
|
<path class="apple-mail-icon__white-path" d="M 420.416 366.928 C 419.84 366.928 418.704 367.504 418.128 367.504 L 93.872 367.504 C 93.296 367.504 92.16 367.504 91.584 366.928 L 192.848 265.664 L 214.464 287.856 C 237.792 311.744 274.768 311.744 298.096 287.856 L 319.712 265.664 L 420.416 366.928 Z M 426.672 356.128 L 426.672 155.312 C 426.672 154.176 426.672 153.024 426.096 152.464 C 425.536 153.6 325.408 257.136 325.408 257.136 L 426.672 358.4 C 426.672 357.264 426.672 356.688 426.672 356.128 Z M 85.328 356.688 L 85.328 156.448 C 85.328 155.312 85.328 154.176 85.904 153.6 C 86.464 154.736 186.592 258.272 186.592 258.272 L 85.904 358.976 C 85.328 358.4 85.328 357.264 85.328 356.688 Z M 420.976 145.632 L 291.84 277.616 C 271.936 297.536 240.064 297.536 220.736 277.616 L 91.584 145.632 C 91.024 145.072 420.976 145.632 420.976 145.632 Z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
{% if portfolio is not empty %}
|
||||||
|
<a class="social__link" href="{{ portfolio.url }}" target="_self" title="Open {{ site.title }}'s portfolio (PDF)">
|
||||||
|
<svg class="pdf-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M 406.976 1.312 L 510.672 107.376 L 510.672 510.688 L 123.28 510.688 L 123.28 512 L 512 512 L 512 108.704 L 406.976 1.312 Z" fill="#909090"/>
|
||||||
|
<path d="M 405.68 0 L 121.952 0 L 121.952 510.688 L 510.672 510.688 L 510.672 107.392 L 405.664 0" fill="#f4f4f4"/>
|
||||||
|
<path d="M 119.104 27.424 L 0 27.424 L 0 152.272 L 374.64 152.272 L 374.64 27.424 L 119.104 27.424 Z" fill="#7a7b7c"/>
|
||||||
|
<path d="M 376.624 150.144 L 2.416 150.144 L 2.416 25.216 L 376.624 25.216 L 376.624 150.144 Z" fill="#dd2025"/>
|
||||||
|
<g fill="#464648" transform="matrix(18.638512, 0, 0, 18.285711, -42.216225, -36.571423)">
|
||||||
|
<path d="m9.052 4.534h-.03-.207-1.07v4.8h1.028v-1.619l.227.013a2.042 2.042 0 0 0 .647-.117 1.427 1.427 0 0 0 .493-.291 1.224 1.224 0 0 0 .335-.454 2.13 2.13 0 0 0 .105-.908 2.237 2.237 0 0 0 -.114-.644 1.173 1.173 0 0 0 -.687-.65 2.149 2.149 0 0 0 -.409-.104 2.232 2.232 0 0 0 -.319-.026m-.189 2.294h-.089v-1.48h.193a.57.57 0 0 1 .459.181.92.92 0 0 1 .183.558c0 .246 0 .469-.222.626a.942.942 0 0 1 -.524.114"/>
|
||||||
|
<path d="m12.533 4.521c-.111 0-.219.008-.295.011l-.238.006h-.78v4.8h.918a2.677 2.677 0 0 0 1.028-.175 1.71 1.71 0 0 0 .68-.491 1.939 1.939 0 0 0 .373-.749 3.728 3.728 0 0 0 .114-.949 4.416 4.416 0 0 0 -.087-1.127 1.777 1.777 0 0 0 -.4-.733 1.63 1.63 0 0 0 -.535-.4 2.413 2.413 0 0 0 -.549-.178 1.282 1.282 0 0 0 -.228-.017m-.182 3.937h-.1v-3.064h.013a1.062 1.062 0 0 1 .6.107 1.2 1.2 0 0 1 .324.4 1.3 1.3 0 0 1 .142.526c.009.22 0 .4 0 .549a2.926 2.926 0 0 1 -.033.513 1.756 1.756 0 0 1 -.169.5 1.13 1.13 0 0 1 -.363.36.673.673 0 0 1 -.416.106"/>
|
||||||
|
<path d="m17.43 4.538h-2.43v4.8h1.028v-1.904h1.3v-.892h-1.3v-1.112h1.4v-.892"/>
|
||||||
|
</g>
|
||||||
|
<path d="M 363.744 333.808 C 363.744 333.808 423.168 323.232 423.168 343.152 C 423.168 363.056 386.352 354.96 363.744 333.808 Z M 319.824 335.328 C 310.384 337.376 301.184 340.368 292.368 344.272 L 299.824 327.808 C 307.28 311.344 315.008 288.912 315.008 288.912 C 323.904 303.6 334.256 317.408 345.92 330.096 C 337.12 331.376 328.416 333.136 319.824 335.36 L 319.824 335.328 Z M 296.304 216.464 C 296.304 199.12 302.016 194.384 306.48 194.384 C 310.928 194.384 315.936 196.48 316.112 211.552 C 314.656 226.704 311.424 241.632 306.48 256.048 C 299.696 243.952 296.176 230.352 296.272 216.528 L 296.304 216.464 Z M 209.648 408.752 C 191.424 398.064 247.872 365.136 258.112 364.064 C 258.048 364.08 228.736 419.952 209.648 408.752 Z M 440.528 345.504 C 440.336 343.68 438.656 323.44 401.936 324.304 C 386.64 324.064 371.344 325.12 356.224 327.456 C 341.568 312.976 328.96 296.672 318.72 278.912 C 325.168 260.608 329.072 241.552 330.336 222.224 C 329.792 200.288 324.448 187.696 307.296 187.888 C 290.144 188.064 287.648 202.784 289.904 224.688 C 292.112 239.408 296.272 253.792 302.304 267.44 C 302.304 267.44 294.384 291.632 283.904 315.696 C 273.424 339.76 266.272 352.384 266.272 352.384 C 248.048 358.192 230.912 366.848 215.472 377.984 C 200.128 392.016 193.872 402.784 201.968 413.552 C 208.944 422.832 233.328 424.944 255.136 396.912 C 266.736 382.432 277.312 367.216 286.832 351.344 C 286.832 351.344 320.08 342.4 330.416 339.952 C 340.768 337.504 353.28 335.568 353.28 335.568 C 353.28 335.568 383.632 365.536 412.912 364.464 C 442.192 363.408 440.784 347.296 440.592 345.552" fill="#dd2025"/>
|
||||||
|
<path d="M 404.256 1.408 L 404.256 108.8 L 509.248 108.8 L 404.256 1.408 Z" fill="#909090"/>
|
||||||
|
<path d="M 405.68 0 L 405.68 107.392 L 510.672 107.392 L 405.68 0 Z" fill="#f4f4f4"/>
|
||||||
|
<path d="M 125.072 44.928 L 124.512 44.928 L 120.64 44.928 L 100.704 44.928 L 100.704 132.704 L 119.936 132.704 L 119.936 103.12 L 124.192 103.344 C 128.304 103.28 132.368 102.56 136.24 101.216 C 139.648 100.064 142.768 98.256 145.44 95.888 C 148.128 93.616 150.24 90.784 151.632 87.584 C 153.488 82.256 154.16 76.592 153.584 70.992 C 153.472 66.976 152.752 63.008 151.456 59.216 C 149.072 53.664 144.432 49.36 138.656 47.328 C 136.176 46.448 133.6 45.792 130.992 45.408 C 129.024 45.104 127.04 44.944 125.04 44.928 M 121.52 86.88 L 119.872 86.88 L 119.872 59.808 L 123.488 59.808 C 126.704 59.6 129.84 60.8 132.032 63.12 C 134.272 66.064 135.472 69.648 135.44 73.328 C 135.44 77.824 135.44 81.904 131.312 84.768 C 128.32 86.384 124.928 87.12 121.536 86.864" fill="#fff"/>
|
||||||
|
<path d="M 189.952 44.688 C 187.872 44.688 185.856 44.832 184.448 44.896 L 180.064 45.008 L 165.536 45.008 L 165.536 132.768 L 182.64 132.768 C 189.184 132.96 195.68 131.856 201.792 129.568 C 206.72 127.648 211.072 124.576 214.48 120.592 C 217.776 116.576 220.144 111.904 221.424 106.896 C 222.896 101.232 223.6 95.392 223.552 89.552 C 223.904 82.64 223.36 75.696 221.936 68.944 C 220.56 63.952 218.016 59.36 214.48 55.536 C 211.696 52.448 208.304 49.952 204.496 48.224 C 201.232 46.736 197.808 45.648 194.272 44.96 C 192.864 44.752 191.44 44.64 190.016 44.656 M 186.624 116.64 L 184.768 116.64 L 184.768 60.624 L 185.008 60.624 C 188.848 60.176 192.736 60.848 196.192 62.576 C 198.72 64.544 200.784 67.056 202.224 69.888 C 203.792 72.864 204.688 76.16 204.88 79.504 C 205.04 83.536 204.88 86.816 204.88 89.552 C 204.944 92.688 204.752 95.824 204.256 98.928 C 203.68 102.112 202.624 105.2 201.104 108.064 C 199.392 110.736 197.088 112.992 194.336 114.656 C 192.048 116.112 189.328 116.784 186.592 116.592" fill="#fff"/>
|
||||||
|
<path d="M 281.216 45.008 L 235.92 45.008 L 235.92 132.768 L 255.088 132.768 L 255.088 97.952 L 279.312 97.952 L 279.312 81.648 L 255.088 81.648 L 255.088 61.312 L 281.184 61.312 L 281.184 45.008" fill="#fff"/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue