0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Updated mentions feed design

refs https://github.com/TryGhost/Team/issues/2583
This commit is contained in:
Djordje Vlaisavljevic 2023-02-23 15:38:01 +00:00
parent d441fe2e2a
commit 3a3f8c9532
3 changed files with 26 additions and 8 deletions

View file

@ -11,6 +11,10 @@
grid-column: span 2;
}
.gh-mentions-list.is-empty {
grid-column: span 3;
}
.gh-mention-card {
display: block;
position: relative;
@ -24,6 +28,11 @@
color: var(--midgrey);
}
.gh-mention-card:hover {
transition: box-shadow 0.1s ease-in;
box-shadow: 0 1px 4px -1px rgb(0 0 0 / 10%);
}
.gh-mention-header {
width: 100%;
display: flex;
@ -175,7 +184,7 @@
}
.gh-mentions-explainer {
background-color: var(--whitegrey);
background: var(--main-color-content-greybg);
border-radius: 5px;
padding: 24px;
}

View file

@ -12,6 +12,13 @@
</LinkTo>
{{svg-jar "arrow-right-small"}}Mentions
</div>
{{else}}
<div class="gh-canvas-breadcrumb">
<LinkTo @route="dashboard">
Dashboard
</LinkTo>
{{svg-jar "arrow-right-small"}}Mentions
</div>
{{/if}}
<h2 class="gh-canvas-title gh-post-title" data-test-screen-title>
{{#if this.post }}
@ -31,7 +38,7 @@
</div>
</GhCanvasHeader>
<section class="gh-mentions-main-section">
<div class="gh-mentions-list">
<div class="gh-mentions-list {{unless this.mentionsInfinityModel "is-empty"}}">
{{#if this.mentionsInfinityModel}}
<div>
{{#each this.mentionsInfinityModel as |mention|}}
@ -83,12 +90,14 @@
@scrollable=".gh-main"
@triggerOffset={{1000}} />
</div>
<div class="gh-mentions-sidebar">
<div class="gh-mentions-explainer">
<img src="assets/img/mentions-background.png" alt="" role="presentation"/>
<h2>Introducing Mentions</h2>
<p>Whenever another person or site links to you, youll receive a notification in your dashboard to show you whos talking about your content — and, when you link to someone elses work, theyll be notified, too.</p>
{{#if this.mentionsInfinityModel}}
<div class="gh-mentions-sidebar">
<div class="gh-mentions-explainer">
<img src="assets/img/mentions-background.png" alt="" role="presentation"/>
<h2>Introducing Mentions</h2>
<p>Whenever another person or site links to you, youll receive a notification in your dashboard to show you whos talking about your content — and, when you link to someone elses work, theyll be notified, too.</p>
</div>
</div>
</div>
{{/if}}
</section>
</section>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 159 KiB