Skip to content

Commit d65ac87

Browse files
committed
1811 - fixed link color on main page
1 parent 55aabe6 commit d65ac87

File tree

3 files changed

+53
-23
lines changed

3 files changed

+53
-23
lines changed

src/assets/styles/global-variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ $gray-1: rgba(154, 169, 181, 1);
6969
$gray-2: rgba(191, 203, 213, 1);
7070
$gray-border-2: 1px solid $gray-2;
7171
$banner-background: #d5d8ba;
72+
$blue-link: #1977ca;
7273

7374
$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
);

0 commit comments

Comments
 (0)