Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Cleanup assets (#655)

Dhruv Bhanushalid8f3d05f7597
diff --git a/src/assets/animaldiversity_logo.png b/src/assets/animaldiversity_logo.png
deleted file mode 100755
index 87fb36400..000000000
Binary files a/src/assets/animaldiversity_logo.png and /dev/null differ
diff --git a/src/assets/bhl_logo.png b/src/assets/bhl_logo.png
deleted file mode 100644
index 7241e70ae..000000000
Binary files a/src/assets/bhl_logo.png and /dev/null differ
diff --git a/src/assets/brooklyn_museum_logo.png b/src/assets/brooklyn_museum_logo.png
deleted file mode 100644
index 9d73e2c93..000000000
Binary files a/src/assets/brooklyn_museum_logo.png and /dev/null differ
diff --git a/src/assets/capl_logo.png b/src/assets/capl_logo.png
deleted file mode 100644
index 802c456cb..000000000
Binary files a/src/assets/capl_logo.png and /dev/null differ
diff --git a/src/assets/cc_icon.svg b/src/assets/cc_icon.svg
deleted file mode 100644
index cb08896c7..000000000
--- a/src/assets/cc_icon.svg
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 13.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
-<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="64px" height="64px" viewBox="5.5 -3.5 64 64" enable-background="new 5.5 -3.5 64 64" xml:space="preserve">
-<g>
- <circle fill="#FFFFFF" cx="37.785" cy="28.501" r="28.836"/>
- <path d="M37.441-3.5c8.951,0,16.572,3.125,22.857,9.372c3.008,3.009,5.295,6.448,6.857,10.314
- c1.561,3.867,2.344,7.971,2.344,12.314c0,4.381-0.773,8.486-2.314,12.313c-1.543,3.828-3.82,7.21-6.828,10.143
- c-3.123,3.085-6.666,5.448-10.629,7.086c-3.961,1.638-8.057,2.457-12.285,2.457s-8.276-0.808-12.143-2.429
- c-3.866-1.618-7.333-3.961-10.4-7.027c-3.067-3.066-5.4-6.524-7-10.372S5.5,32.767,5.5,28.5c0-4.229,0.809-8.295,2.428-12.2
- c1.619-3.905,3.972-7.4,7.057-10.486C21.08-0.394,28.565-3.5,37.441-3.5z M37.557,2.272c-7.314,0-13.467,2.553-18.458,7.657
- c-2.515,2.553-4.448,5.419-5.8,8.6c-1.354,3.181-2.029,6.505-2.029,9.972c0,3.429,0.675,6.734,2.029,9.913
- c1.353,3.183,3.285,6.021,5.8,8.516c2.514,2.496,5.351,4.399,8.515,5.715c3.161,1.314,6.476,1.971,9.943,1.971
- c3.428,0,6.75-0.665,9.973-1.999c3.219-1.335,6.121-3.257,8.713-5.771c4.99-4.876,7.484-10.99,7.484-18.344
- c0-3.543-0.648-6.895-1.943-10.057c-1.293-3.162-3.18-5.98-5.654-8.458C50.984,4.844,44.795,2.272,37.557,2.272z M37.156,23.187
- l-4.287,2.229c-0.458-0.951-1.019-1.619-1.685-2c-0.667-0.38-1.286-0.571-1.858-0.571c-2.856,0-4.286,1.885-4.286,5.657
- c0,1.714,0.362,3.084,1.085,4.113c0.724,1.029,1.791,1.544,3.201,1.544c1.867,0,3.181-0.915,3.944-2.743l3.942,2
- c-0.838,1.563-2,2.791-3.486,3.686c-1.484,0.896-3.123,1.343-4.914,1.343c-2.857,0-5.163-0.875-6.915-2.629
- c-1.752-1.752-2.628-4.19-2.628-7.313c0-3.048,0.886-5.466,2.657-7.257c1.771-1.79,4.009-2.686,6.715-2.686
- C32.604,18.558,35.441,20.101,37.156,23.187z M55.613,23.187l-4.229,2.229c-0.457-0.951-1.02-1.619-1.686-2
- c-0.668-0.38-1.307-0.571-1.914-0.571c-2.857,0-4.287,1.885-4.287,5.657c0,1.714,0.363,3.084,1.086,4.113
- c0.723,1.029,1.789,1.544,3.201,1.544c1.865,0,3.18-0.915,3.941-2.743l4,2c-0.875,1.563-2.057,2.791-3.541,3.686
- c-1.486,0.896-3.105,1.343-4.857,1.343c-2.896,0-5.209-0.875-6.941-2.629c-1.736-1.752-2.602-4.19-2.602-7.313
- c0-3.048,0.885-5.466,2.658-7.257c1.77-1.79,4.008-2.686,6.713-2.686C51.117,18.558,53.938,20.101,55.613,23.187z"/>
-</g>
-</svg>
diff --git a/src/assets/cleveland.png b/src/assets/cleveland.png
deleted file mode 100644
index 613b66dab..000000000
Binary files a/src/assets/cleveland.png and /dev/null differ
diff --git a/src/assets/deviantart_logo.png b/src/assets/deviantart_logo.png
deleted file mode 100755
index b1eae81bd..000000000
Binary files a/src/assets/deviantart_logo.png and /dev/null differ
diff --git a/src/assets/digitaltmuseum_logo.png b/src/assets/digitaltmuseum_logo.png
deleted file mode 100644
index e9a1acb2c..000000000
Binary files a/src/assets/digitaltmuseum_logo.png and /dev/null differ
diff --git a/src/assets/flickr_icon.png b/src/assets/flickr_icon.png
deleted file mode 100755
index 53656d5fa..000000000
Binary files a/src/assets/flickr_icon.png and /dev/null differ
diff --git a/src/assets/floraon_logo.png b/src/assets/floraon_logo.png
deleted file mode 100755
index a497c642d..000000000
Binary files a/src/assets/floraon_logo.png and /dev/null differ
diff --git a/src/assets/geographorguk_logo.gif b/src/assets/geographorguk_logo.gif
deleted file mode 100644
index 6bbbf87a9..000000000
Binary files a/src/assets/geographorguk_logo.gif and /dev/null differ
diff --git a/src/assets/logo-cloud.png b/src/assets/logo-cloud.png
deleted file mode 100755
index 78f7880ea..000000000
Binary files a/src/assets/logo-cloud.png and /dev/null differ
diff --git a/src/assets/logo.svg b/src/assets/logo.svg
index b1ee915d8..d1884ee0e 100644
--- a/src/assets/logo.svg
+++ b/src/assets/logo.svg
@@ -1,16 +1,11 @@
<svg width="280" height="42" viewBox="0 0 280 42" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M89.69 21.3293C89.69 28.0657 84.2652 33.5266 77.5734 33.5266C70.8816 33.5266 65.4568 28.0657 65.4568 21.3293C65.4568 14.5929 70.8816 9.13202 77.5734 9.13202C84.2652 9.13202 89.69 14.5929 89.69 21.3293ZM82.4199 21.3293C82.4199 24.0238 80.25 26.2082 77.5733 26.2082C74.8965 26.2082 72.7266 24.0238 72.7266 21.3293C72.7266 18.6347 74.8965 16.4504 77.5733 16.4504C80.25 16.4504 82.4199 18.6347 82.4199 21.3293ZM99.8984 41.5588H91.5855V9.54085H99.8382V13.6037H100.019C100.922 11.2388 103.091 9.23765 106.525 9.23765C111.103 9.23765 115.56 12.7548 115.56 21.1837C115.56 29.2488 111.404 33.1298 106.464 33.1298C103.212 33.1298 100.983 31.3712 100.019 29.0063H99.8984V41.5588ZM103.392 15.6655C101.103 15.6655 99.7177 17.7272 99.7177 21.1837C99.7177 24.5796 101.103 26.702 103.392 26.702C105.681 26.702 107.007 24.6402 107.007 21.1837C107.007 17.7272 105.681 15.6655 103.392 15.6655ZM140.18 25.3072C139.396 30.1584 135.27 33.2511 128.855 33.2511C121.445 33.2511 116.927 28.7789 116.927 21.2444C116.927 14.0282 121.506 9.23765 128.674 9.23765C135.662 9.23765 140.18 13.7705 140.18 21.1837V23.1242H125.12V23.488C125.12 25.7317 126.566 27.369 129.035 27.369C130.737 27.369 132.108 26.6262 132.589 25.3072H140.18ZM128.855 15.1197C126.822 15.1197 125.165 16.4993 125.12 18.5156H132.529C132.484 16.5144 130.918 15.1197 128.855 15.1197ZM150.612 19.7284C150.627 17.424 151.923 16.0293 153.986 16.0293C156.079 16.0293 157.314 17.424 157.299 19.7284V32.8266H165.612V17.9698C165.627 12.9064 162.449 9.23765 157.54 9.23765C154.136 9.23765 151.441 11.0265 150.432 13.9676H150.191V9.54085H142.299V32.8266H150.612V19.7284ZM182.193 9.54085H190.927L183.157 32.8266H173.518L165.748 9.54085H174.482L178.217 24.9434H178.458L182.193 9.54085ZM202.399 33.2511C208.815 33.2511 212.941 30.1584 213.724 25.3072H206.134C205.652 26.6262 204.282 27.369 202.58 27.369C200.11 27.369 198.665 25.7317 198.665 23.488V23.1242H213.724V21.1837C213.724 13.7705 209.206 9.23765 202.219 9.23765C195.05 9.23765 190.472 14.0282 190.472 21.2444C190.472 28.7789 194.99 33.2511 202.399 33.2511ZM198.665 18.5156C198.71 16.4993 200.366 15.1197 202.399 15.1197C204.463 15.1197 206.029 16.5144 206.074 18.5156H198.665ZM224.157 32.8266H215.844V9.54085H223.916V13.9676H224.157C225 10.693 226.928 9.23765 229.398 9.23765C230.121 9.23765 230.844 9.35893 231.506 9.55601V16.6964C230.678 16.4083 229.292 16.2719 228.434 16.2719C225.979 16.2719 224.157 18.0304 224.157 20.6986V32.8266ZM254.104 17.1208C253.893 12.1938 249.827 9.23765 243.14 9.23765C236.529 9.23765 232.448 11.9664 232.478 16.8176C232.448 20.4864 234.812 22.8362 239.526 23.67L243.622 24.3976C245.429 24.7312 246.242 25.2163 246.272 26.0956C246.242 27.0658 245.143 27.6116 243.622 27.6116C241.74 27.6116 240.414 26.7929 240.188 25.3072H231.936C232.387 30.0826 236.484 33.2511 243.562 33.2511C249.962 33.2511 254.676 30.113 254.706 25.1253C254.676 21.684 252.387 19.6829 247.658 18.8188L242.959 17.9698C241.197 17.6514 240.7 17.0147 240.731 16.3325C240.7 15.3623 241.89 14.8165 243.321 14.8165C244.962 14.8165 246.333 15.6958 246.453 17.1208H254.104ZM279.027 25.3072C278.244 30.1584 274.118 33.2511 267.703 33.2511C260.293 33.2511 255.775 28.7789 255.775 21.2444C255.775 14.0282 260.354 9.23765 267.522 9.23765C274.51 9.23765 279.027 13.7705 279.027 21.1837V23.1242H263.968V23.488C263.968 25.7317 265.414 27.369 267.883 27.369C269.585 27.369 270.956 26.6262 271.437 25.3072H279.027ZM267.703 15.1197C265.67 15.1197 264.013 16.4993 263.968 18.5156H271.377C271.332 16.5144 269.766 15.1197 267.703 15.1197Z" fill="#23282D" />
- <g clip-path="url(#clip0)">
- <path d="M37.5589 18.795C42.7146 18.795 46.8942 14.5876 46.8942 9.3975C46.8942 4.2074 42.7146 0 37.5589 0C32.4031 0 28.2236 4.2074 28.2236 9.3975C28.2236 14.5876 32.4031 18.795 37.5589 18.795Z" fill="#23282D" />
- <path d="M0.999969 9.3975C0.999969 14.5687 5.17217 18.795 10.3353 18.795V0C5.17217 0 0.999969 4.2 0.999969 9.3975Z" fill="#23282D" />
- <path d="M14.6118 9.3975C14.6118 14.5687 18.784 18.795 23.9471 18.795V0C18.8101 0 14.6118 4.2 14.6118 9.3975Z" fill="#23282D" />
- <path d="M37.5589 41.9212C42.7146 41.9212 46.8942 37.7138 46.8942 32.5238C46.8942 27.3337 42.7146 23.1263 37.5589 23.1263C32.4031 23.1263 28.2236 27.3337 28.2236 32.5238C28.2236 37.7138 32.4031 41.9212 37.5589 41.9212Z" fill="#23282D" />
- <path d="M14.6118 32.5238C14.6118 37.695 18.784 41.9213 23.9471 41.9213V23.1525C18.8101 23.1525 14.6118 27.3525 14.6118 32.5238Z" fill="#23282D" />
- <path d="M0.999969 32.6025C0.999969 37.8 5.17217 42 10.3353 42V23.2312C5.17217 23.2312 0.999969 27.4312 0.999969 32.6025Z" fill="#23282D" />
+ <g id="logo" fill="currentColor">
+ <path class="circle" d="M37.5589 18.795C42.7146 18.795 46.8942 14.5876 46.8942 9.3975C46.8942 4.2074 42.7146 0 37.5589 0C32.4031 0 28.2236 4.2074 28.2236 9.3975C28.2236 14.5876 32.4031 18.795 37.5589 18.795Z"/>
+ <path class="circle" d="M0.999969 9.3975C0.999969 14.5687 5.17217 18.795 10.3353 18.795V0C5.17217 0 0.999969 4.2 0.999969 9.3975Z"/>
+ <path class="circle" d="M14.6118 9.3975C14.6118 14.5687 18.784 18.795 23.9471 18.795V0C18.8101 0 14.6118 4.2 14.6118 9.3975Z"/>
+ <path class="circle" d="M37.5589 41.9212C42.7146 41.9212 46.8942 37.7138 46.8942 32.5238C46.8942 27.3337 42.7146 23.1263 37.5589 23.1263C32.4031 23.1263 28.2236 27.3337 28.2236 32.5238C28.2236 37.7138 32.4031 41.9212 37.5589 41.9212Z"/>
+ <path class="circle" d="M14.6118 32.5238C14.6118 37.695 18.784 41.9213 23.9471 41.9213V23.1525C18.8101 23.1525 14.6118 27.3525 14.6118 32.5238Z"/>
+ <path class="circle" d="M0.999969 32.6025C0.999969 37.8 5.17217 42 10.3353 42V23.2312C5.17217 23.2312 0.999969 27.4312 0.999969 32.6025Z"/>
+ <path class="text" fill-rule="evenodd" clip-rule="evenodd" d="M89.69 21.3293C89.69 28.0657 84.2652 33.5266 77.5734 33.5266C70.8816 33.5266 65.4568 28.0657 65.4568 21.3293C65.4568 14.5929 70.8816 9.13202 77.5734 9.13202C84.2652 9.13202 89.69 14.5929 89.69 21.3293ZM82.4199 21.3293C82.4199 24.0238 80.25 26.2082 77.5733 26.2082C74.8965 26.2082 72.7266 24.0238 72.7266 21.3293C72.7266 18.6347 74.8965 16.4504 77.5733 16.4504C80.25 16.4504 82.4199 18.6347 82.4199 21.3293ZM99.8984 41.5588H91.5855V9.54085H99.8382V13.6037H100.019C100.922 11.2388 103.091 9.23765 106.525 9.23765C111.103 9.23765 115.56 12.7548 115.56 21.1837C115.56 29.2488 111.404 33.1298 106.464 33.1298C103.212 33.1298 100.983 31.3712 100.019 29.0063H99.8984V41.5588ZM103.392 15.6655C101.103 15.6655 99.7177 17.7272 99.7177 21.1837C99.7177 24.5796 101.103 26.702 103.392 26.702C105.681 26.702 107.007 24.6402 107.007 21.1837C107.007 17.7272 105.681 15.6655 103.392 15.6655ZM140.18 25.3072C139.396 30.1584 135.27 33.2511 128.855 33.2511C121.445 33.2511 116.927 28.7789 116.927 21.2444C116.927 14.0282 121.506 9.23765 128.674 9.23765C135.662 9.23765 140.18 13.7705 140.18 21.1837V23.1242H125.12V23.488C125.12 25.7317 126.566 27.369 129.035 27.369C130.737 27.369 132.108 26.6262 132.589 25.3072H140.18ZM128.855 15.1197C126.822 15.1197 125.165 16.4993 125.12 18.5156H132.529C132.484 16.5144 130.918 15.1197 128.855 15.1197ZM150.612 19.7284C150.627 17.424 151.923 16.0293 153.986 16.0293C156.079 16.0293 157.314 17.424 157.299 19.7284V32.8266H165.612V17.9698C165.627 12.9064 162.449 9.23765 157.54 9.23765C154.136 9.23765 151.441 11.0265 150.432 13.9676H150.191V9.54085H142.299V32.8266H150.612V19.7284ZM182.193 9.54085H190.927L183.157 32.8266H173.518L165.748 9.54085H174.482L178.217 24.9434H178.458L182.193 9.54085ZM202.399 33.2511C208.815 33.2511 212.941 30.1584 213.724 25.3072H206.134C205.652 26.6262 204.282 27.369 202.58 27.369C200.11 27.369 198.665 25.7317 198.665 23.488V23.1242H213.724V21.1837C213.724 13.7705 209.206 9.23765 202.219 9.23765C195.05 9.23765 190.472 14.0282 190.472 21.2444C190.472 28.7789 194.99 33.2511 202.399 33.2511ZM198.665 18.5156C198.71 16.4993 200.366 15.1197 202.399 15.1197C204.463 15.1197 206.029 16.5144 206.074 18.5156H198.665ZM224.157 32.8266H215.844V9.54085H223.916V13.9676H224.157C225 10.693 226.928 9.23765 229.398 9.23765C230.121 9.23765 230.844 9.35893 231.506 9.55601V16.6964C230.678 16.4083 229.292 16.2719 228.434 16.2719C225.979 16.2719 224.157 18.0304 224.157 20.6986V32.8266ZM254.104 17.1208C253.893 12.1938 249.827 9.23765 243.14 9.23765C236.529 9.23765 232.448 11.9664 232.478 16.8176C232.448 20.4864 234.812 22.8362 239.526 23.67L243.622 24.3976C245.429 24.7312 246.242 25.2163 246.272 26.0956C246.242 27.0658 245.143 27.6116 243.622 27.6116C241.74 27.6116 240.414 26.7929 240.188 25.3072H231.936C232.387 30.0826 236.484 33.2511 243.562 33.2511C249.962 33.2511 254.676 30.113 254.706 25.1253C254.676 21.684 252.387 19.6829 247.658 18.8188L242.959 17.9698C241.197 17.6514 240.7 17.0147 240.731 16.3325C240.7 15.3623 241.89 14.8165 243.321 14.8165C244.962 14.8165 246.333 15.6958 246.453 17.1208H254.104ZM279.027 25.3072C278.244 30.1584 274.118 33.2511 267.703 33.2511C260.293 33.2511 255.775 28.7789 255.775 21.2444C255.775 14.0282 260.354 9.23765 267.522 9.23765C274.51 9.23765 279.027 13.7705 279.027 21.1837V23.1242H263.968V23.488C263.968 25.7317 265.414 27.369 267.883 27.369C269.585 27.369 270.956 26.6262 271.437 25.3072H279.027ZM267.703 15.1197C265.67 15.1197 264.013 16.4993 263.968 18.5156H271.377C271.332 16.5144 269.766 15.1197 267.703 15.1197Z" />
</g>
- <defs>
- <clipPath id="clip0">
- <rect width="45.8942" height="42" fill="white" transform="translate(0.999969)" />
- </clipPath>
- </defs>
</svg>
diff --git a/src/assets/mccordmuseum_logo.png b/src/assets/mccordmuseum_logo.png
deleted file mode 100755
index 149ca2746..000000000
Binary files a/src/assets/mccordmuseum_logo.png and /dev/null differ
diff --git a/src/assets/met_logo.png b/src/assets/met_logo.png
deleted file mode 100644
index 8d6af5de8..000000000
Binary files a/src/assets/met_logo.png and /dev/null differ
diff --git a/src/assets/museumvictoria_logo.png b/src/assets/museumvictoria_logo.png
deleted file mode 100644
index 8820d3c0f..000000000
Binary files a/src/assets/museumvictoria_logo.png and /dev/null differ
diff --git a/src/assets/nhm_logo.png b/src/assets/nhm_logo.png
deleted file mode 100644
index 5c7e4d193..000000000
Binary files a/src/assets/nhm_logo.png and /dev/null differ
diff --git a/src/assets/phylopic_logo.png b/src/assets/phylopic_logo.png
deleted file mode 100644
index 9edf50c4d..000000000
Binary files a/src/assets/phylopic_logo.png and /dev/null differ
diff --git a/src/assets/rawpixel_logo.png b/src/assets/rawpixel_logo.png
deleted file mode 100644
index 681ca6c03..000000000
Binary files a/src/assets/rawpixel_logo.png and /dev/null differ
diff --git a/src/assets/rijksmuseum_logo.png b/src/assets/rijksmuseum_logo.png
deleted file mode 100755
index 998bbbd28..000000000
Binary files a/src/assets/rijksmuseum_logo.png and /dev/null differ
diff --git a/src/assets/sketchfab_logo.png b/src/assets/sketchfab_logo.png
deleted file mode 100644
index e97a37f60..000000000
Binary files a/src/assets/sketchfab_logo.png and /dev/null differ
diff --git a/src/assets/smk_logo.png b/src/assets/smk_logo.png
deleted file mode 100644
index 43475b4ce..000000000
Binary files a/src/assets/smk_logo.png and /dev/null differ
diff --git a/src/assets/svg-silh_logo.png b/src/assets/svg-silh_logo.png
deleted file mode 100644
index 79ec42212..000000000
Binary files a/src/assets/svg-silh_logo.png and /dev/null differ
diff --git a/src/assets/thingiverse_logo.png b/src/assets/thingiverse_logo.png
deleted file mode 100644
index bccd25526..000000000
Binary files a/src/assets/thingiverse_logo.png and /dev/null differ
diff --git a/src/assets/thorvaldsensmuseum_logo.png b/src/assets/thorvaldsensmuseum_logo.png
deleted file mode 100644
index 7d2d05c5c..000000000
Binary files a/src/assets/thorvaldsensmuseum_logo.png and /dev/null differ
diff --git a/src/assets/wikimedia_logo.png b/src/assets/wikimedia_logo.png
deleted file mode 100644
index de00756ce..000000000
Binary files a/src/assets/wikimedia_logo.png and /dev/null differ
diff --git a/src/assets/worms_logo.png b/src/assets/worms_logo.png
deleted file mode 100644
index ad344d77b..000000000
Binary files a/src/assets/worms_logo.png and /dev/null differ
diff --git a/src/components/NavSection.vue b/src/components/NavSection.vue
deleted file mode 100644
index 968de916c..000000000
--- a/src/components/NavSection.vue
+++ /dev/null
@@ -1,198 +0,0 @@
-<template>
- <!-- Refer to the Bulma docs for markup: https://bulma.io/documentation/components/navbar/ -->
- <nav
- role="navigation"
- class="navbar embedded"
- :aria-label="$t('header.aria.primary')"
- >
- <div class="navbar-brand flex-grow md:flex-grow-0">
- <NuxtLink
- to="/"
- class="navbar-item"
- style="align-self: center; line-height: 0"
- >
- <!-- width and height chosen w.r.t. viewBox "0 0 280 42" -->
- <OpenverseLogo width="160" height="24" alt="Openverse logo" />
- </NuxtLink>
-
- <!-- Hamburger menu -->
- <a
- role="button"
- class="navbar-burger"
- :class="{ 'is-active': isBurgerMenuActive }"
- :aria-label="$t('header.aria.menu')"
- aria-expanded="false"
- @click="toggleBurgerActive"
- @keyup.enter="toggleBurgerActive"
- >
- <span v-for="i in 3" :key="i" aria-hidden="true" />
- </a>
- </div>
-
- <div class="navbar-menu" :class="{ 'is-active': isBurgerMenuActive }">
- <div class="navbar-start">
- <form
- v-if="showNavSearch"
- class="search-form navbar-item flex items-center"
- role="search"
- method="post"
- @submit.prevent="onSubmit"
- >
- <input
- v-model.lazy="form.searchTerm"
- :aria-label="$t('header.aria.search')"
- class="input w-64"
- type="search"
- :placeholder="navSearchPlaceholder"
- />
- <div class="sr-only">
- <button
- :aria-label="$t('header.aria.sr-search')"
- tabindex="-1"
- type="submit"
- class="button secondary"
- value="Search"
- />
- </div>
- </form>
- </div>
-
- <div class="navbar-end">
- <Dropdown
- v-slot="{ onFocus, a11yProps }"
- :text="$t('header.about-tab')"
- >
- <NuxtLink
- class="navbar-item"
- :to="localePath('/about')"
- v-bind="a11yProps"
- @focus="onFocus()"
- >
- {{ $t('header.about-nav-item') }}
- </NuxtLink>
- <NuxtLink
- class="navbar-item"
- :to="localePath('/sources')"
- v-bind="a11yProps"
- @focus="onFocus()"
- >
- {{ $t('header.source-nav-item') }}
- </NuxtLink>
- <a
- href="https://creativecommons.org/about/cclicenses/"
- target="_blank"
- rel="noopener"
- class="navbar-item"
- v-bind="a11yProps"
- @focus="onFocus()"
- >{{ $t('header.licenses-nav-item') }}
- <VIcon class="inline ms-2" :icon-path="externalLinkIcon" rtl-flip />
- </a>
- </Dropdown>
-
- <Dropdown
- v-slot="{ onFocus, a11yProps }"
- :text="$t('header.resources-tab')"
- >
- <NuxtLink
- class="navbar-item"
- :to="localePath('/search-help')"
- v-bind="a11yProps"
- @focus="onFocus()"
- >
- {{ $t('header.search-guide-nav-item') }}
- </NuxtLink>
- <NuxtLink
- class="navbar-item"
- :to="localePath('/meta-search')"
- v-bind="a11yProps"
- @focus="onFocus()"
- >
- {{ $t('header.meta-search-nav-item') }}
- </NuxtLink>
- <NuxtLink
- class="navbar-item"
- :to="localePath('/feedback')"
- v-bind="a11yProps"
- @focus="onFocus()"
- >
- {{ $t('header.feedback-nav-item') }}
- </NuxtLink>
- <a
- href="https://api.openverse.engineering/v1/"
- target="_blank"
- rel="noopener"
- v-bind="a11yProps"
- class="navbar-item"
- @focus="onFocus()"
- >{{ $t('header.api-nav-item') }}
- <VIcon class="inline ms-2" :icon-path="externalLinkIcon" rtl-flip />
- </a>
- </Dropdown>
-
- <NuxtLink class="navbar-item" :to="localePath('/extension')">
- {{ $t('header.extension-nav-item') }}
- </NuxtLink>
- </div>
- </div>
- </nav>
-</template>
-
-<script>
-import { mapActions, mapState } from 'vuex'
-
-import Dropdown from '~/components/Dropdown'
-import VIcon from '~/components/VIcon/VIcon.vue'
-
-import { FETCH_MEDIA, UPDATE_QUERY } from '~/constants/action-types'
-import { MEDIA, SEARCH } from '~/constants/store-modules'
-
-import OpenverseLogo from '~/assets/logo.svg?inline'
-import externalLinkIcon from '~/assets/icons/external-link.svg'
-
-export default {
- name: 'EmbeddedNavSection',
- components: {
- VIcon,
- Dropdown,
- OpenverseLogo,
- },
- props: {
- showNavSearch: {
- default: false,
- },
- },
- data: () => ({
- form: { searchTerm: '' },
- isBurgerMenuActive: false,
- externalLinkIcon,
- }),
- computed: {
- ...mapState(SEARCH, ['query']),
- navSearchPlaceholder() {
- return this.$t('header.placeholder')
- },
- },
- mounted() {
- this.form.searchTerm = this.query.q
- },
- methods: {
- ...mapActions(SEARCH, { setSearchTerm: UPDATE_QUERY }),
- ...mapActions(MEDIA, { fetchMedia: FETCH_MEDIA }),
- onSubmit() {
- const q = this.form.searchTerm
- const mediaType = this.query.mediaType
- this.setSearchTerm({ q })
- this.fetchMedia({ q, mediaType })
- const newPath = this.localePath({
- path: `/search/${mediaType}`,
- query: { q },
- })
- this.$router.push(newPath)
- },
- toggleBurgerActive() {
- this.isBurgerMenuActive = !this.isBurgerMenuActive
- },
- },
-}
-</script>
diff --git a/src/components/VHeroSection.vue b/src/components/VHeroSection.vue
deleted file mode 100644
index 34069c8a9..000000000
--- a/src/components/VHeroSection.vue
+++ /dev/null
@@ -1,195 +0,0 @@
-<template>
- <!-- eslint-disable vuejs-accessibility/no-autofocus -->
- <div class="hero">
- <div class="text-center mt-16">
- <h1 class="text-5xl pb-4">
- {{ $t('hero.title') }}
- </h1>
- <h2 class="text-2xl font-medium">
- {{ $t('hero.subtitle') }}
- </h2>
- <form
- class="relative w-full px-2 mt-12"
- role="search"
- method="get"
- action="/search"
- @submit.prevent="onSubmit"
- >
- <div class="flex justify-center">
- <input
- id="searchTerm"
- v-model.lazy="form.searchTerm"
- required="required"
- class="hero-search__input input rounded rounded-e-none text-start lg:px-10 w-full max-w-full"
- :aria-label="$t('hero.aria.search')"
- autofocus
- type="search"
- name="q"
- :placeholder="$t('hero.search.placeholder')"
- autocapitalize="none"
- />
- <button
- class="hero-search__button button is-primary rounded rounded-s-none"
- title="Search"
- >
- {{ $t('hero.search.button') }}
- </button>
- </div>
-
- <div v-if="showSearchType" class="flex flex-col items-center">
- <p class="py-2">{{ $t('hero.search-type.prompt') }}</p>
- <SearchTypeToggle v-model.lazy="form.searchType" />
- </div>
-
- <div class="text-sm mt-6 font-medium">
- <i18n path="hero.caption.content" tag="p">
- <template #link>
- <a
- href="https://creativecommons.org/share-your-work/licensing-examples/"
- target="_blank"
- :aria-label="$t('hero.aria.caption')"
- rel="noopener"
- >
- {{ $t('hero.caption.link') }}
- </a>
- </template>
- </i18n>
- </div>
- <HomeLicenseFilter :filters="filters" @toggle="toggleFilter" />
- </form>
- </div>
- <img
- class="logo-cloud"
- src="~/assets/logo-cloud.png"
- alt="Logos from sources of Openverse licensed images"
- />
- </div>
- <!-- eslint-enable -->
-</template>
-
-<script>
-import {
- UPDATE_QUERY,
- TOGGLE_FILTER,
- FETCH_MEDIA,
-} from '~/constants/action-types'
-import { MEDIA, SEARCH } from '~/constants/store-modules'
-import { mapActions, mapGetters } from 'vuex'
-
-import HomeLicenseFilter from '~/components/HomeLicenseFilter.vue'
-import SearchTypeToggle from '~/components/SearchTypeToggle.vue'
-
-export default {
- name: 'VHeroSection',
- components: { HomeLicenseFilter, SearchTypeToggle },
- /**
- * @return {{ form: { searchTerm: string, searchType: 'image' | 'audio' | 'all' }, showSearchType: boolean }}
- */
- data: () => ({
- form: { searchTerm: '', searchType: 'all' },
- filters: { commercial: false, modification: false },
- showSearchType: true,
- }),
- computed: {
- ...mapGetters(SEARCH, ['searchQueryParams']),
- },
- mounted() {
- if (document.querySelector('#searchTerm')) {
- document.querySelector('#searchTerm').focus()
- }
- },
- methods: {
- ...mapActions(SEARCH, {
- setSearchTerm: UPDATE_QUERY,
- checkFilter: TOGGLE_FILTER,
- }),
- ...mapActions(MEDIA, { fetchMedia: FETCH_MEDIA }),
- getPath() {
- if (this.form.searchType === 'all') return '/search'
- return `/search/${this.form.searchType}`
- },
- toggleFilter({ code, checked }) {
- this.filters[code] = checked
- },
- onSubmit() {
- const newQuery = { q: this.form.searchTerm }
-
- Object.entries(this.filters).forEach(([filterCode, isChecked]) => {
- if (isChecked) {
- this.checkFilter({ filterType: 'licenseTypes', code: filterCode })
- }
- })
-
- newQuery.searchType = this.form.searchType
- this.setSearchTerm(newQuery)
- this.fetchMedia({})
-
- const newPath = this.localePath({
- path: this.getPath(),
- query: this.searchQueryParams,
- })
- this.$router.push(newPath)
- },
- },
-}
-</script>
-
-<!-- Add "scoped" attribute to limit CSS to this component only -->
-<style lang="scss" scoped>
-$hero-height-desktop: 85vh;
-$hero-height: 55vh;
-
-.hero {
- background: #fff;
- position: relative;
- background-size: cover;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- min-height: $hero-height;
- @include tablet() {
- min-height: $hero-height-desktop;
- }
-}
-.hero-search {
- &__input {
- @screen lg {
- width: 570px;
- font-size: 1.75rem;
- height: 5.063rem;
- }
- }
- &__button {
- font-size: 1rem;
- padding: 0.5rem 1.2rem;
- @screen lg {
- font-size: 1.75rem;
- padding-left: var(--button-padding-horizontal);
- padding-right: var(--button-padding-horizontal);
- height: 5.063rem;
- }
- }
-}
-
-.logo-cloud {
- z-index: 0;
- margin-top: auto;
- width: 100%;
- padding-left: 1rem;
- height: 120px;
- object-fit: cover;
- object-position: left center;
-
- @screen lg {
- object-fit: initial;
- height: auto;
- padding: 0;
- margin-top: 4rem;
- margin-left: auto;
- margin-right: auto;
- width: calc(100% - 1rem);
- max-width: 1400px;
- }
-}
-</style>
diff --git a/test/unit/specs/components/hero-section.spec.js b/test/unit/specs/components/hero-section.spec.js
deleted file mode 100644
index 019f8f611..000000000
--- a/test/unit/specs/components/hero-section.spec.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import { fireEvent, render, screen } from '@testing-library/vue'
-import searchStore, { filterData } from '~/store/search'
-import { createLocalVue } from '@vue/test-utils'
-import Vuex from 'vuex'
-import clonedeep from 'lodash.clonedeep'
-import VueI18n from 'vue-i18n'
-import messages from '~/locales/en.json'
-import { IMAGE } from '~/constants/media'
-import VHeroSection from '~/components/VHeroSection'
-import VCheckbox from '~/components/VCheckbox'
-
-const i18n = new VueI18n({
- locale: 'en',
- fallbackLocale: 'en',
- messages: { en: messages },
-})
-
-describe('VHeroSection', () => {
- let options = {}
- let localVue
- let storeMock
- let filters
- const routerMock = { push: jest.fn() }
-
- beforeEach(() => {
- localVue = createLocalVue()
- localVue.use(VueI18n)
- localVue.use(Vuex)
- localVue.component('VCheckbox', VCheckbox)
- filters = clonedeep(filterData)
- storeMock = new Vuex.Store({
- modules: {
- search: {
- namespaced: true,
- ...searchStore,
- state: {
- query: {
- q: 'me',
- mediaType: IMAGE,
- },
- isFilterVisible: true,
- filters,
- },
- },
- },
- })
- options = {
- mocks: {
- $router: routerMock,
- $store: storeMock,
- },
- i18n,
- }
- })
- it('should render correct contents', () => {
- render(VHeroSection, options)
- screen.getByRole('search')
- })
-
- it('should search when a query is entered', async () => {
- render(VHeroSection, options)
-
- const searchBox = screen.getByRole('searchbox')
- await fireEvent.update(searchBox, 'me')
- await fireEvent.click(screen.queryByTitle('Search'))
-
- expect(routerMock.push).toHaveBeenCalledWith({
- path: '/search',
- query: { q: 'me' },
- })
- })
-})
diff --git a/test/unit/specs/components/nav-section.spec.js b/test/unit/specs/components/nav-section.spec.js
deleted file mode 100644
index cc00a5cbb..000000000
--- a/test/unit/specs/components/nav-section.spec.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import Vuex from 'vuex'
-import render from '../../test-utils/render'
-import { createLocalVue } from '@vue/test-utils'
-import NavSection from '~/components/NavSection'
-import { UPDATE_QUERY } from '~/constants/action-types'
-import { IMAGE } from '~/constants/media'
-
-describe('NavSection', () => {
- it('dispatches an action when the form is submitted', async () => {
- const localVue = createLocalVue()
- localVue.use(Vuex)
- const dispatchMock = jest.fn()
- const storeMock = new Vuex.Store({
- modules: {
- search: {
- namespaced: true,
- state: {
- query: { q: 'foo', mediaType: IMAGE },
- },
- actions: {
- [UPDATE_QUERY]: dispatchMock,
- },
- },
- },
- })
- const routerMock = { push: jest.fn() }
- const options = {
- localVue,
- propsData: {
- fixedNav: null,
- showNavSearch: 'true',
- },
- store: storeMock,
- mocks: { $router: routerMock },
- stubs: { NuxtLink: true },
- }
-
- const wrapper = render(NavSection, options)
- wrapper.find('.search-form').trigger('submit')
- expect(routerMock.push).toHaveBeenCalledWith({
- path: '/search/image',
- query: { q: 'foo' },
- })
- const dispatchArgs = dispatchMock.mock.calls[0][1]
- expect(dispatchArgs).toEqual({ q: 'foo' })
- })
-})
diff --git a/test/unit/specs/components/search-grid-cell.spec.js b/test/unit/specs/components/search-grid-cell.spec.js
index 6d0bf843b..75e56ce38 100644
--- a/test/unit/specs/components/search-grid-cell.spec.js
+++ b/test/unit/specs/components/search-grid-cell.spec.js
@@ -23,16 +23,6 @@ describe('SearchGridCell', () => {
expect(wrapper.find('div').find('figure').element).toBeDefined()
})
- xit('getProviderLogo should return existing logo', () => {
- const wrapper = render(SearchGridCell, options)
- expect(wrapper.vm.getProviderLogo('flickr')).not.toBe('')
- })
-
- xit('getProviderLogo should not return non existing logo', () => {
- const wrapper = render(SearchGridCell, options)
- expect(wrapper.vm.getProviderLogo('does not exist')).toBe('')
- })
-
it('getImageUrl returns image url with https://', () => {
const wrapper = render(SearchGridCell, options)
expect(wrapper.vm.getImageUrl(props.image)).toBe('https://foo.bar')