feat(directory): updated info style
This commit is contained in:
@@ -157,7 +157,7 @@
|
|||||||
},
|
},
|
||||||
"new_op_wait_to_update": {
|
"new_op_wait_to_update": {
|
||||||
"zh-CN": "个新干员等待更新",
|
"zh-CN": "个新干员等待更新",
|
||||||
"en-US": "New Operator(s) Wait to Update"
|
"en-US": "New Operator(s) Waiting to Update"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -166,19 +166,28 @@ export default function Home() {
|
|||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
{
|
{
|
||||||
officalUpdate.length > operators.length && (
|
officalUpdate.length === operators.length && (
|
||||||
<section>
|
<section>
|
||||||
<section className={classes['offical-update']}>
|
<section className={classes['offical-update']}>
|
||||||
<section className={classes.info}>
|
<section className={classes.info}>
|
||||||
<section className={classes.content}>
|
<section className={classes.content}>
|
||||||
<section className={classes.text}>{officalUpdate.length - operators.length} {i18n("new_op_wait_to_update")}</section>
|
<section className={classes.text}>{officalUpdate.length - operators.length} {i18n("new_op_wait_to_update")}</section>
|
||||||
{officalUpdate[officalUpdate.latest].map((entry, index) => {
|
{officalUpdate[officalUpdate.latest].map((entry, index) => {
|
||||||
return (
|
return (
|
||||||
<section key={index} className={classes.list}>
|
<section className={classes.container} key={index}>
|
||||||
{`${i18n(entry.type)}: ${entry.codename[language]}`}
|
<section className={classes.type}>
|
||||||
|
<CharIcon
|
||||||
|
type={entry.type}
|
||||||
|
viewBox={
|
||||||
|
entry.type === 'operator' ? '0 0 88.969 71.469' : '0 0 94.563 67.437'
|
||||||
|
} />
|
||||||
</section>
|
</section>
|
||||||
)
|
<section className={classes.title}>
|
||||||
})}
|
{entry.codename[language]}
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
})}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -11,6 +11,31 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
color: var(--text-color-full);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: baseline;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: bold;
|
||||||
|
.title {
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
line-height: 1.3em;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
.type {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
svg {
|
||||||
|
width: 1.5rem;
|
||||||
|
fill: var(--text-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -85,33 +110,6 @@
|
|||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
|
|
||||||
.container {
|
|
||||||
color: var(--text-color-full);
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
font-weight: bold;
|
|
||||||
.title {
|
|
||||||
flex: 1;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
line-height: 1.3em;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
.type {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: baseline;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
svg {
|
|
||||||
width: 1.5rem;
|
|
||||||
fill: var(--text-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@use '@/scss/_page_base.scss';
|
@use "@/scss/_page_base.scss";
|
||||||
|
|
||||||
.offical-update {
|
.offical-update {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -18,9 +18,11 @@
|
|||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list {
|
.container {
|
||||||
display: list-item;
|
|
||||||
margin-left: 2.5rem;
|
margin-left: 2.5rem;
|
||||||
|
.title {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user