0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added placeholder illustration for posts and pages

no refs.
This commit is contained in:
Zimo 2019-03-25 16:43:38 +01:00
parent 428984bca2
commit 5b9e68401a
5 changed files with 15 additions and 1 deletions

View file

@ -163,6 +163,16 @@
color: var(--darkgrey);
}
.gh-posts-placeholder {
width: 145px;
margin: -30px 0 15px;
}
.gh-pages-placeholder {
width: 136px;
margin: -30px 0 15px;
}
@media (max-width: 900px) {
.gh-posts-list-item a {
padding-right: 40px;

View file

@ -97,6 +97,7 @@
<li class="no-posts-box">
<div class="no-posts">
{{#if showingAll}}
{{svg-jar "pages-placeholder" class="gh-pages-placeholder"}}
<h3>You haven't created any pages yet!</h3>
{{#link-to "editor.new" "page"}}<button type="button" class="gh-btn gh-btn-green gh-btn-lg"><span>Create a new page</span></button>{{/link-to}}
{{else}}

View file

@ -97,8 +97,9 @@
<li class="no-posts-box">
<div class="no-posts">
{{#if showingAll}}
{{svg-jar "posts-placeholder" class="gh-posts-placeholder"}}
<h3>You haven't written any posts yet!</h3>
{{#link-to "editor.new" "post"}}<button type="button" class="gh-btn gh-btn-green gh-btn-lg"><span>Write a new Post</span></button>{{/link-to}}
{{#link-to "editor.new" "post"}}<button type="button" class="gh-btn gh-btn-green gh-btn-lg"><span>Write a new post</span></button>{{/link-to}}
{{else}}
<h3>No posts match the current filter</h3>
{{#link-to "posts.index" (query-params type=null author=null tag=null)}}<button type="button" class="gh-btn gh-btn-lg"><span>Show all posts</span></button>{{/link-to}}

View file

@ -0,0 +1 @@
<svg width="135" height="135" viewBox="0 0 135 135" xmlns="http://www.w3.org/2000/svg"><title>Group 93</title><g stroke="#9BAEB8" fill="none" fill-rule="evenodd"><path d="M102.703 14.14c-.245-2.326-2.329-4.014-4.655-3.769l-83.572 8.783c-2.326.245-4.014 2.329-3.77 4.655l9.843 93.649c.245 2.326 2.329 4.014 4.655 3.77 15.353-1.615 68.219-7.171 83.572-8.785 2.326-.244 4.014-2.328 3.769-4.654l-9.842-93.649zM27.16 43.081l61.594-6.473M26.746 40.014l61.593-6.474" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M12.404 31.893l47.358-4.973-1.345-12.303M73.125 13.36l1.32 12.016 28.764-3.001M16.516 25.015l17.614-1.849M63.06 20.283l6.63-.696M77.884 18.652l6.63-.696M90 17.405l6.631-.696M33.58 97.203l61.593-6.474M34.526 106.213l61.594-6.474M71.46 47.824l18.994-1.996M72.41 56.846l18.992-1.996M73.357 65.867l18.993-1.996M74.305 74.889l18.993-1.996M32.653 88.388l61.594-6.474M64.2 48.587l-35.34 3.715 2.84 27.022 35.34-3.714z"/><path stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M35.189 73.927l27.317-2.871-23.741 2.495 6.4-7.903 4.191 3.395"/><path stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M47.38 67.442l4.223-5.215 10.903 8.829M38.139 56.417c1.972-.207 3.741 1.225 3.948 3.197.208 1.973-1.225 3.742-3.197 3.949-1.972.207-3.741-1.225-3.949-3.197-.207-1.972 1.226-3.742 3.198-3.949z"/><path d="M53.12 118.326c21.793.761 49.819 1.684 60.491 2.057 2.338.082 4.299-1.747 4.381-4.085l3.286-94.107c.082-2.338-1.747-4.299-4.085-4.381l-14.053-.49"/><g opacity=".6" stroke-linecap="round" stroke-linejoin="round"><path d="M67.706 1c17.084 0 32.303 6.018 44.11 16.595M121.213 27.886c8.29 11.117 13.2 24.9 13.2 39.82 0 16.741-5.801 31.827-16.002 43.545M108.418 120.538c-11.268 8.698-25.39 13.875-40.712 13.875-14.783 0-28.45-4.82-39.512-12.971M20.239 114.555C8.345 102.506 1 85.957 1 67.707c0-13.115 3.793-25.35 10.34-35.669M23.087 18.136c5.9-5.314 12.752-9.592 20.268-12.544M43.355 5.592C50.9 2.628 59.115 1 67.706 1"/></g><g opacity=".6" stroke-linecap="round" stroke-linejoin="round"><path d="M5.863 43.045h1.612M3.069 53.869h4.406M1.863 64.693h5.612M1.863 75.517h5.612M4.309 86.341h3.166M1.727 59.331h.23M1.373 70.156h.584M13.08 53.869h.29M13.08 64.693h1.143M13.08 75.517H15.6M13.08 86.341h3.58M13.08 97.165h4.816M15.63 107.99h3.061M8.703 37.683h3.033M7.562 48.507h5.612M7.562 59.331h5.612M7.562 70.156h5.612M7.562 80.98h5.612M7.562 91.804h5.612M11.49 102.628h1.684M18.778 102.628h-.224M35.512 10.572h5.612M29.995 16.035h5.611M32.988 124.276h2.618M46.728 10.572h5.612M46.728 129.638h5.612M44.878 5.211h1.945M41.21 124.276h5.613M57.945 10.572h5.612M57.945 129.638h5.612M52.427 5.211h5.612M52.427 124.276h5.612M69.161 10.572h5.612M69.161 129.638h5.612M63.644 5.211h5.612M63.644 124.276h5.612M80.378 10.572h5.612M80.378 129.638h5.612M74.86 5.211h5.612M74.86 124.276h5.612M91.594 129.638h-.218M86.076 5.211h4.346M86.076 124.276h5.612M97.293 124.276h5.612M119.536 75.517h.103M119.087 86.341h.552M119.04 97.165h.599M118.299 107.99h1.34M125.243 43.045h4.173M125.243 53.869h5.612M125.243 64.693h5.612M125.243 75.517h5.612M125.243 86.341h5.612M125.243 97.165h1.829M121.145 37.683h4.193M120.804 48.507h4.534M120.393 59.331h4.945M119.726 70.156h5.612M119.726 80.98h5.612M119.726 91.804h5.612M119.726 102.628h4.236M130.942 48.507h.469M130.942 59.331h2.469M130.942 70.156h3.1M130.942 80.98h1.594"/></g></g></svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -0,0 +1 @@
<svg width="155" height="138" viewBox="0 0 155 138" xmlns="http://www.w3.org/2000/svg"><g stroke="#9BAEB8" fill="none" fill-rule="evenodd"><path d="M141.781 58.044c.66 3.5.73 6.77.73 10.712 0 37.395-30.36 67.756-67.755 67.756C37.36 136.512 7 106.152 7 68.756S37.36 1 74.756 1c26.482 0 49.437 15.226 60.578 37.392"/><path stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M19.973 28.906h89.892v35.368M151.691 47.805L99.632 99.86 87.195 87.423l51.725-51.71c3.52-3.682 7.4-4.113 11.642-1.292 2.218 1.575 3.44 3.72 3.67 6.43.229 2.71-.619 5.029-2.54 6.954zM147.814 52.767c8.994 9.093-10.38 13.362-15.677 18.659l-1.62 4.727M128.367 46.248l12.44 12.44M124.142 50.473l12.44 12.44M93.213 86.015l2.599 2.599M95.978 83.25l2.599 2.598M98.743 80.485l2.599 2.598M101.509 77.72l2.598 2.598M104.274 74.955l2.598 2.598M98.405 91.207l2.598 2.598M101.17 88.442l2.599 2.598M103.935 85.677l2.599 2.598M106.7 82.912l2.6 2.598M109.466 80.147l2.597 2.598M88.994 89.775l-3.806 3.807 8.383 8.383 3.806-3.807M91.282 100.061s-8.137 5.997-9.196 4.945c-1.058-1.052 4.908-9.136 4.908-9.136M109.865 89.785v35.61M18.069 105.13h15.155M41.09 105.13h40.87M11.174 90.318h65.564M8.168 75.507h20.52M35.836 75.507h32.827M8.168 60.695h38.115M54.963 60.695h30.703"/><g opacity=".6" stroke-linecap="round" stroke-linejoin="round"><path d="M32.096 23.227h5.464M38.592 17.485h5.464M44.822 23.227h5.464M44.822 11.488h5.464M51.318 17.485h5.464M52.016 5.665h4.766M57.548 23.227h5.464M57.548 11.488h5.464M64.044 17.485h5.464M64.044 5.665h5.464M70.274 23.227h5.464M70.274 11.488h5.464M76.77 17.485h5.464M76.77 5.665h5.464M83 23.227h5.464M83 11.488h5.464M89.495 17.485h5.465M89.495 5.665h5.465M95.726 23.227h5.464M95.726 11.488h5.464M102.222 17.485h5.464M108.452 23.227h5.464M110.08 46.488h3.836M110.08 93.01h3.836M110.08 116.272h3.836M108.452 11.488h2.214M110.08 34.749h3.836M110.08 58.01h1.868M110.08 104.532h3.836M114.947 17.485h3.366M114.947 40.746h5.465M126.918 40.746h1.111M117.88 87.269h2.532M114.947 110.53h5.465M114.947 28.926h5.465M114.947 52.187h1.965M114.947 98.71h5.465M114.947 121.97h.926M121.178 23.227h3.528M121.178 46.488h.943M121.178 93.01h5.464M121.178 116.272h1.172M121.178 34.749h5.464M123.812 81.271h2.83M121.178 104.532h5.464M127.674 87.269h5.464M127.674 110.53h.011M127.674 28.926h1.333M127.674 98.71h5.464M133.904 93.01h3.168M133.904 81.271h4.661M139.907 75.448h1.762"/></g></g></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB