Skip to content

Commit d83cc1e

Browse files
committed
Update links on policy pages, update Dockerfile to copy ToS and PP
1 parent 67072f0 commit d83cc1e

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY ./webpack ./webpack
1515
COPY client ./client
1616
COPY server ./server
1717
COPY translations/locales ./translations/locales
18+
COPY public ./public
1819
CMD ["npm", "start"]
1920

2021
FROM development as build

client/modules/IDE/components/PolicyContainer.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components';
33
import ReactMarkdown from 'react-markdown';
44
import remarkSlug from 'remark-slug';
55
import PropTypes from 'prop-types';
6-
import { remSize } from '../../../theme';
6+
import { remSize, prop } from '../../../theme';
77

88
const PolicyContainerMain = styled.main`
99
max-width: ${remSize(700)};
@@ -34,6 +34,9 @@ const PolicyContainerMain = styled.main`
3434
margin-block-start: 1em;
3535
margin-block-end: 1em;
3636
}
37+
& a {
38+
color: ${prop('Policy.link')};
39+
}
3740
`;
3841

3942
function PolicyContainer({ policy }) {

client/theme.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export const Theme = {
88

99
export const colors = {
1010
p5jsPink: '#ed225d',
11-
processingBlue: '#007BBB',
11+
processingBlueDark: '#28347D',
12+
processingBlue: '#2D67F6',
13+
processingBlueLight: '#8DADF9',
1214
p5jsActivePink: '#f10046',
1315
white: '#fff',
1416
black: '#000',
@@ -134,6 +136,9 @@ export default {
134136
card: {
135137
background: grays.lighter
136138
}
139+
},
140+
Policy: {
141+
link: colors.processingBlue
137142
}
138143
},
139144
[Theme.dark]: {
@@ -211,6 +216,9 @@ export default {
211216
card: {
212217
background: grays.dark
213218
}
219+
},
220+
Policy: {
221+
link: colors.processingBlueLight
214222
}
215223
},
216224
[Theme.contrast]: {
@@ -288,6 +296,9 @@ export default {
288296
card: {
289297
background: grays.dark
290298
}
299+
},
300+
Policy: {
301+
link: colors.processingBlueLight
291302
}
292303
}
293304
};

0 commit comments

Comments
 (0)