Skip to content

Commit ea7fb50

Browse files
authored
Merge pull request #8 from MPUSP/dev
fix: deployment time and minor style improvements
2 parents 2efb990 + 36dc8ad commit ea7fb50

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22

33
on:
44
schedule:
5-
- cron: 0 5 * * 1
5+
- cron: 0 5 * * 5
66
push:
77
branches: [main]
88

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ const config = {
107107
label: "Documentation",
108108
to: "/docs/projects/intro",
109109
},
110+
{
111+
label: `Last update: ${new Date().toLocaleDateString()}`,
112+
to: "https://github.com/MPUSP/mpusp.github.io/actions",
113+
},
110114
],
111115
},
112116
{
@@ -145,7 +149,7 @@ const config = {
145149
colorMode: {
146150
defaultMode: "light",
147151
disableSwitch: false,
148-
respectPrefersColorScheme: false,
152+
respectPrefersColorScheme: true,
149153
},
150154
}),
151155
};

src/components/About/styles.module.css

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,20 @@
6868
transform: scale(0.95);
6969
}
7070

71-
.card h1,
72-
h3 {
71+
.card h1 {
7372
margin: 0;
73+
background-image: linear-gradient(
74+
90deg,
75+
var(--ifm-color-primary-dark),
76+
var(--ifm-color-primary-lightest)
77+
);
78+
-webkit-background-clip: text;
79+
background-clip: text;
80+
color: transparent;
7481
}
7582

7683
.card h3 {
84+
margin: 0;
7785
font-weight: 600;
7886
margin-top: 5px;
7987
}
@@ -87,7 +95,6 @@ h3 {
8795
.stats2_card {
8896
grid-template-columns: repeat(2, 1fr);
8997
}
90-
9198
}
9299

93100
@media screen and (max-width: 650px) {
@@ -119,4 +126,4 @@ h3 {
119126
.about_description p {
120127
font-size: 16px;
121128
}
122-
}
129+
}

src/components/Activity/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default function Activity() {
9999
<footer className={styles.activity_footer}>
100100
<p>
101101
Statistics are automatically retrieved from GitHub.
102-
Last updates can be viewed on <Link to="https://github.com/MPUSP/mpusp.github.io/actions">Deployment history</Link>.
102+
Last update on {new Date().toLocaleDateString()} (<Link to="https://github.com/MPUSP/mpusp.github.io/actions">Deployment history</Link>).
103103
</p>
104104
</footer>
105105
</section>

src/css/custom.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
var(--ifm-color-primary-light) 100%
2525
);
2626
--ifm-color-link-grey: #878787;
27+
--footer-color: #347b6f;
2728
--theme-card: #f6f6f6;
2829
--theme-card-link-color: var(--ifm-color-primary-dark);
2930
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
@@ -38,7 +39,7 @@
3839
--ifm-color-primary-light: #5eb1a3;
3940
--ifm-color-primary-lighter: #76c0b3;
4041
--ifm-color-primary-lightest: #8ccbbf;
41-
--ifm-color-secondary: #515151;
42+
--ifm-color-secondary: #c4c4c4;
4243
--ifm-color-success: #388e3c;
4344
--ifm-color-info: #1976d2;
4445
--ifm-color-warning: #ef6c00;
@@ -48,7 +49,13 @@
4849
var(--ifm-color-primary-light) 100%
4950
);
5051
--ifm-color-link-grey: #494949;
52+
--footer-color: #293f3a;
5153
--theme-card: #2c2c2c;
5254
--theme-card-link-color: var(--ifm-color-primary-dark);
5355
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
5456
}
57+
58+
/* Override the default footer background colors */
59+
.footer {
60+
--ifm-footer-background-color: var(--footer-color);
61+
}

0 commit comments

Comments
 (0)