Skip to content

Commit 4fffdd3

Browse files
authored
Merge pull request #2293 from daostack/bugfix/1811
Fixed colours to use them from global CSS
2 parents fd343ea + d65ac87 commit 4fffdd3

File tree

5 files changed

+79
-41
lines changed

5 files changed

+79
-41
lines changed

src/assets/styles/global-variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ $max-width: 1080px;
5454

5555
$navy: rgba(18, 46, 91, 1);
5656
$sky: rgba(49, 120, 202, 1);
57+
$accent-0: rgba(3, 118, 255, 1); /* white blue */
5758
$accent-1: rgba(3, 118, 255, 1); /* Bright blue */
5859
$accent-2: rgba(246, 80, 80, 1); /* Red */
5960
$accent-3: rgba(0, 190, 144, 1); /* Green */
@@ -68,3 +69,6 @@ $gray-1: rgba(154, 169, 181, 1);
6869
$gray-2: rgba(191, 203, 213, 1);
6970
$gray-border-2: 1px solid $gray-2;
7071
$banner-background: #d5d8ba;
72+
$blue-link: #1977ca;
73+
74+
$notifications-hover-white: rgba(233, 238, 244, 1);

src/components/Dao/DaoLandingPage.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
div {
5050
margin-bottom: 16px;
5151
}
52+
a {
53+
color: $blue-link;
54+
&:hover,
55+
&:focus,
56+
&:active {
57+
color: $blue-link;
58+
}
59+
}
5260
}
5361

5462
.wallContainer {

src/components/Dao/DaoLandingPage.tsx

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type IExternalProps = {
1616
type IProps = IExternalProps;
1717

1818
export default class DaoLandingPage extends React.Component<IProps, null> {
19-
2019
private disqusConfig = { url: "", identifier: "", title: "" };
2120

2221
public componentDidMount() {
@@ -28,30 +27,44 @@ export default class DaoLandingPage extends React.Component<IProps, null> {
2827
}
2928

3029
private handleEditContent = () => {
31-
showSimpleMessage(
32-
{
33-
title: "Edit Home Page",
34-
body:
35-
<>
36-
<div>Editing the content on this DAO’s home page will soon be possible via proposal. Stay tuned!</div>
37-
<div>For now, if you need a change made to a DAO’s home page content, please contact us at <a href="https://[email protected]" target="_blank" rel="noopener noreferrer">[email protected]</a></div>
38-
</>,
39-
}
40-
);
41-
}
30+
showSimpleMessage({
31+
title: "Edit Home Page",
32+
body: (
33+
<>
34+
<div>
35+
Editing the content on this DAO’s home page will soon be possible
36+
via proposal. Stay tuned!
37+
</div>
38+
<div>
39+
For now, if you need a change made to a DAO’s home page content,
40+
please contact us at{" "}
41+
<a
42+
href="https://[email protected]"
43+
target="_blank"
44+
rel="noopener noreferrer"
45+
>
46+
47+
</a>
48+
</div>
49+
</>
50+
),
51+
});
52+
};
4253

4354
public render() {
4455
const daoState = this.props.daoState;
45-
const customData = customDaoInfo[targetedNetwork()]?.[daoState.id.toLowerCase()];
56+
const customData =
57+
customDaoInfo[targetedNetwork()]?.[daoState.id.toLowerCase()];
4658

4759
this.disqusConfig.url = `${process.env.BASE_URL}/dao/${this.props.daoState.address}/discussion`;
4860
this.disqusConfig.identifier = this.props.daoState.address;
4961
this.disqusConfig.title = "Discuss " + this.props.daoState.name;
5062

5163
return (
5264
<div className={css.landingPage}>
53-
54-
<BreadcrumbsItem to={"/dao/" + daoState.address}>{daoState.name}</BreadcrumbsItem>
65+
<BreadcrumbsItem to={"/dao/" + daoState.address}>
66+
{daoState.name}
67+
</BreadcrumbsItem>
5568

5669
<div className={css.infoContainer}>
5770
<div className={css.titleContainer}>
@@ -63,20 +76,28 @@ export default class DaoLandingPage extends React.Component<IProps, null> {
6376
</div>
6477
</div>
6578

66-
{customData ?
79+
{customData ? (
6780
<>{customData}</>
68-
:
81+
) : (
6982
<>
70-
<div>Welcome to {daoState.name}, a decentralized organization built on DAOstack.</div>
71-
<div>Visit the <Link to={`/dao/${daoState.id}/schemes/`}>Proposals page</Link> to
72-
make a proposal to the DAO or vote on existing proposals.</div>
83+
<div>
84+
Welcome to {daoState.name}, a decentralized organization built
85+
on DAOstack.
86+
</div>
87+
<div>
88+
Visit the{" "}
89+
<Link to={`/dao/${daoState.id}/schemes/`}>Proposals page</Link>{" "}
90+
to make a proposal to the DAO or vote on existing proposals.
91+
</div>
7392
</>
74-
}
75-
93+
)}
7694
</div>
7795
<div className={css.wallContainer}>
7896
<div className={css.headerText}>Discuss {daoState.name}</div>
79-
<DiscussionEmbed shortname={process.env.DISQUS_SITE} config={this.disqusConfig} />
97+
<DiscussionEmbed
98+
shortname={process.env.DISQUS_SITE}
99+
config={this.disqusConfig}
100+
/>
80101
</div>
81102
</div>
82103
);

src/components/Notification/Notification.scss

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
display: block;
44
position: relative;
55
background-color: $white;
6-
transition: all .25s ease;
6+
transition: all 0.25s ease;
77
line-height: 13px;
88

99
&:hover {
10-
background-color: rgba(233, 238, 244, 1.000);
10+
background-color: $notifications-hover-white;
1111

1212
button {
1313
opacity: 1;
@@ -27,38 +27,40 @@
2727

2828
&.pending {
2929
.transactionBorder {
30-
background-color: rgba(0, 118, 255, 1.000);
30+
background-color: $accent-0;
3131
}
3232

3333
.statusIcon .pending {
34-
background-color: rgba(0, 118, 255, 1.000);
34+
background-color: $accent-0;
3535
display: inline-block;
3636
}
3737
}
3838

3939
&.success {
4040
.transactionBorder {
41-
background-color: rgba(0, 190, 144, 1.000);
41+
background-color: $accent-3;
4242
}
4343

4444
.statusIcon .success {
45-
background-color: rgba(0, 190, 144, 1.000);
45+
background-color: $accent-3;
4646
display: inline-block;
4747
}
4848
}
4949

5050
&.error {
5151
.transactionBorder {
52-
background-color: rgba(246, 80, 80, 1.000);
52+
background-color: $accent-2;
5353
}
5454

5555
.statusIcon .error {
56-
background-color: rgba(246, 80, 80, 1.000);
56+
background-color: $accent-2;
5757
display: inline-block;
5858
}
5959
}
6060

61-
.pending, .success, .error {
61+
.pending,
62+
.success,
63+
.error {
6264
display: none;
6365
}
6466

@@ -96,25 +98,25 @@
9698
outline: none;
9799
border: none;
98100
background: none;
99-
opacity: .6;
101+
opacity: 0.6;
100102

101103
img {
102104
width: 11px;
103105
}
104106
}
105107

106108
.notificationControls {
107-
width: 11px;
108-
height: 11px;
109109
position: absolute;
110-
right: 15px;
111-
top: 50%;
110+
right: 10px;
111+
top: 20px;
112112
transform: translateY(-50%);
113113
text-align: center;
114114
}
115115
}
116116

117-
.pendingTransaction.success .success, .pendingTransaction.pending .pending, .pendingTransaction.error .error {
117+
.pendingTransaction.success .success,
118+
.pendingTransaction.pending .pending,
119+
.pendingTransaction.error .error {
118120
display: inline;
119121
}
120122

@@ -132,7 +134,8 @@
132134
top: 6px;
133135
}
134136

135-
.transactionMessage, .notificationControls {
137+
.transactionMessage,
138+
.notificationControls {
136139
display: none;
137140
}
138141
}
@@ -159,5 +162,7 @@
159162
}
160163

161164
@keyframes disappear {
162-
to {width: 0%;}
165+
to {
166+
width: 0%;
167+
}
163168
}

src/layouts/App.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ body {
548548
bottom: 50px;
549549
background-color: rgba(255, 255, 255, 1);
550550
left: 20px;
551-
width: 290px;
551+
width: 300px;
552552
height: auto;
553553
text-align: left;
554554
box-shadow: 0 2px 7px 0 rgba(0, 25, 51, 0.16);

0 commit comments

Comments
 (0)