Skip to content

Commit 045d3cf

Browse files
CORE-5219: update header and footer (#759)
* CORE-5219: update header and footer * CORE-5219: fix lint issues * CORE-5219: font issue * CORE-5219: format issue
1 parent e01d1cd commit 045d3cf

File tree

3 files changed

+38
-19
lines changed

3 files changed

+38
-19
lines changed

src/elements/footer/footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const Footer = ({ className }) => (
6868
</LinkFoot>
6969
</div>
7070
<p className={styles.text}>
71-
CORE is a not-for-profit service delivered by The Open University
72-
supported by{' '}
71+
CORE (COnnecting REpositories) is a not-for-profit service delivered
72+
by The Open University supported by{' '}
7373
<Link href="https://core.ac.uk/governance/supporters#membership-list">
7474
<MathMarkdown>CORE Members.</MathMarkdown>
7575
</Link>

src/modules/header/header.jsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,15 @@ const Header = ({ children, className, id, ...passProps }) => {
132132
<AppBar.Item className={styles.logoContainer}>
133133
<a href="https://core.ac.uk/" className={styles.logoLink}>
134134
<Logo className={styles.logo} />
135-
<p className={styles.peace}>
136-
<span role="img" aria-label="Ukranian Flag">
137-
🇺🇦&nbsp;
138-
</span>
139-
<i>&nbsp; make metadata, not war</i>
140-
</p>
135+
<div className={styles.separator} />
136+
<div className={styles.peace}>
137+
<div className={styles.itemWrapper}>
138+
<span className={styles.indicator}>CO</span>nnecting
139+
</div>
140+
<div className={styles.itemWrapper}>
141+
<span className={styles.indicator}>RE</span>positories
142+
</div>
143+
</div>
141144
</a>
142145
</AppBar.Item>
143146

src/modules/header/styles.css

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
.logo-container {
5454
flex: 1;
5555
min-width: var(--logo-min-width);
56-
max-width: calc(var(--page-padding-x) + 1rem);
56+
max-width: max-content;
5757
max-height: 3rem;
5858
padding: 0;
5959
margin-right: auto;
@@ -68,6 +68,7 @@
6868
margin-right: .5rem;
6969
color: initial;
7070
text-decoration: none;
71+
gap: 10px;
7172
}
7273

7374
.logo-link:hover,
@@ -82,7 +83,7 @@
8283
}
8384

8485
.logo {
85-
min-width: calc(var(--logo-min-width) - 1.5rem);
86+
min-width: max-content;
8687
max-width: var(--page-padding-x);
8788
height: 1rem;
8889
}
@@ -575,18 +576,33 @@
575576
}
576577
}
577578

579+
.separator {
580+
width: 1px;
581+
height: 12px;
582+
background: #e0e0e0;
583+
}
584+
578585
.peace {
579-
margin-top: 1em;
580-
font-size: .6rem;
581-
font-weight: 400;
586+
display: flex;
587+
width: max-content;
588+
font-size: 11px;
589+
font-style: normal;
590+
font-weight: 500;
591+
line-height: 16px;
592+
color: #212121;
593+
letter-spacing: .3px;
594+
gap: 3px;
595+
596+
.item-wrapper {
597+
display: flex;
598+
599+
.indicator {
600+
color: #b75400;
601+
}
602+
}
582603
}
583604
@media (max-width: 768px) {
584-
.peace i {
605+
.peace {
585606
display: none;
586607
}
587608
}
588-
@media (min-width: 768px) {
589-
.logo-container {
590-
max-width: calc(var(--page-padding-x) + 10rem);
591-
}
592-
}

0 commit comments

Comments
 (0)