v0.1.8 메인 히어로 및 카드 디테일 수정
This commit is contained in:
@@ -593,6 +593,11 @@ input {
|
|||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero__title em {
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
.hero__description,
|
.hero__description,
|
||||||
.section-description {
|
.section-description {
|
||||||
max-width: 620px;
|
max-width: 620px;
|
||||||
@@ -654,12 +659,19 @@ input {
|
|||||||
gap: 18px;
|
gap: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-row-wrap {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
.tab-row {
|
.tab-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 22px;
|
gap: 22px;
|
||||||
padding-bottom: 14px;
|
|
||||||
border-bottom: 1px solid var(--border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-row__button {
|
.tab-row__button {
|
||||||
@@ -677,6 +689,54 @@ input {
|
|||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.view-toggle {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 14px;
|
||||||
|
background: var(--surface);
|
||||||
|
color: var(--text-soft);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle__grid {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle__grid::before,
|
||||||
|
.view-toggle__grid::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
width: 14px;
|
||||||
|
height: 2px;
|
||||||
|
background: currentColor;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle__grid::before {
|
||||||
|
top: 3px;
|
||||||
|
box-shadow: 0 6px 0 currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle__grid::after {
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 2px;
|
||||||
|
height: 14px;
|
||||||
|
box-shadow: 6px 0 0 currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle__chevron {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-panel {
|
.tab-panel {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -735,6 +795,7 @@ input {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
color: var(--text-soft);
|
color: var(--text-soft);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-pill {
|
.meta-pill {
|
||||||
@@ -748,6 +809,26 @@ input {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.meta-item {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-item + .meta-item::before,
|
||||||
|
.meta-pill + .meta-item::before,
|
||||||
|
.meta-item + .meta-pill::before {
|
||||||
|
content: "/";
|
||||||
|
color: var(--border-strong);
|
||||||
|
margin-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-item__icon {
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
.category-overview {
|
.category-overview {
|
||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
@@ -825,6 +906,10 @@ input {
|
|||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.06em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.social-row a:hover {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
.recommended-list {
|
.recommended-list {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -844,6 +929,22 @@ input {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recommended-list li {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recommended-list li::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 11px;
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--surface-strong);
|
||||||
|
}
|
||||||
|
|
||||||
.author-feature {
|
.author-feature {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
@@ -1232,6 +1333,10 @@ input {
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-row-wrap {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
@@ -1269,4 +1374,12 @@ input {
|
|||||||
.post-title {
|
.post-title {
|
||||||
font-size: 2.15rem;
|
font-size: 2.15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-row-wrap {
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-toggle {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-theme-thred-clone",
|
"name": "ghost-theme-thred-clone",
|
||||||
"version": "0.1.7",
|
"version": "0.1.8",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A Ghost theme inspired by the Thred reference layout.",
|
"description": "A Ghost theme inspired by the Thred reference layout.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<section class="hero">
|
<section class="hero">
|
||||||
<h1 class="hero__title">{{@site.title}} ideas published for meaningful conversation, discussed and shaped by the community</h1>
|
<h1 class="hero__title">Ideas <em>published</em> for meaningful conversation, discussed and shaped by the community</h1>
|
||||||
{{#if @site.description}}
|
{{#if @site.description}}
|
||||||
<p class="hero__description">{{@site.description}}</p>
|
<p class="hero__description">{{@site.description}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<section class="stack-section" data-tabs>
|
<section class="stack-section" data-tabs>
|
||||||
<div class="tab-row" role="tablist" aria-label="Homepage sections">
|
<div class="tab-row-wrap">
|
||||||
<button class="tab-row__button is-active" type="button" data-tab-trigger="latest">Latest</button>
|
<div class="tab-row" role="tablist" aria-label="Homepage sections">
|
||||||
<button class="tab-row__button" type="button" data-tab-trigger="featured">Featured</button>
|
<button class="tab-row__button is-active" type="button" data-tab-trigger="latest">Latest</button>
|
||||||
<button class="tab-row__button" type="button" data-tab-trigger="updated">Updated</button>
|
<button class="tab-row__button" type="button" data-tab-trigger="featured">Featured</button>
|
||||||
<button class="tab-row__button" type="button" data-tab-trigger="categories">Categories</button>
|
<button class="tab-row__button" type="button" data-tab-trigger="updated">Updated</button>
|
||||||
|
<button class="tab-row__button" type="button" data-tab-trigger="categories">Categories</button>
|
||||||
|
</div>
|
||||||
|
<button class="view-toggle" type="button" aria-label="Change view">
|
||||||
|
<span class="view-toggle__grid"></span>
|
||||||
|
<span class="view-toggle__chevron">⌄</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-panel is-active" data-tab-panel="latest">
|
<div class="tab-panel is-active" data-tab-panel="latest">
|
||||||
|
|||||||
@@ -12,10 +12,13 @@
|
|||||||
<h2><a href="{{url}}">{{title}}</a></h2>
|
<h2><a href="{{url}}">{{title}}</a></h2>
|
||||||
{{#if excerpt}}<p>{{excerpt words="22"}}</p>{{/if}}
|
{{#if excerpt}}<p>{{excerpt words="22"}}</p>{{/if}}
|
||||||
<div class="post-card__meta">
|
<div class="post-card__meta">
|
||||||
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMM D"}}</time>
|
<time class="meta-item" datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMM D"}}</time>
|
||||||
{{#primary_author}}<span>{{name}}</span>{{/primary_author}}
|
{{#primary_author}}<span class="meta-item">{{name}}</span>{{/primary_author}}
|
||||||
{{#primary_tag}}<a class="meta-pill" href="{{url}}">{{name}}</a>{{/primary_tag}}
|
{{#primary_tag}}<a class="meta-pill" href="{{url}}">{{name}}</a>{{/primary_tag}}
|
||||||
{{#if comments}}{{comment_count empty="0" singular="" plural="" autowrap="false"}}{{/if}}
|
<span class="meta-item meta-item--comments">
|
||||||
|
<span class="meta-item__icon">◌</span>
|
||||||
|
{{#if comments}}{{comment_count empty="0" singular="" plural="" autowrap="false"}}{{else}}0{{/if}}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user