Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve color contrast for accessibility purpose #25

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Header(props) {
// trap focus in the burger menu for accessibility purposes
const firstFocusableEl = burgerWrapper.querySelector('button:not([disabled])')
const lastFocusableEl = burgerWrapper.querySelector('ul li:last-child a')

burgerWrapper.addEventListener("keydown", e => {
if (e.key === 'Tab') {
if (e.shiftKey) {
Expand Down Expand Up @@ -165,8 +165,12 @@ function Header(props) {
</div>
</header>
<nav className="mainMenu device">
<button tabIndex="0" className="noStyle navbar-toggle menuActive" onClick={toggleMenu}>
</button>
<button
aria-label="Dropdown menu"
tabIndex="0"
className="noStyle navbar-toggle menuActive"
onClick={toggleMenu}
></button>
<ul>
<li>
<a href="#" onClick={(e) => props.handelCloseScrollTo(e, "home")}>
Expand Down
78 changes: 38 additions & 40 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,25 +763,25 @@ export default function Home(props) {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
dots: true
}
dots: true,
},
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
initialSlide: 2
}
initialSlide: 2,
},
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
slidesToScroll: 1,
},
},
],
};

return (
Expand Down Expand Up @@ -995,7 +995,6 @@ export default function Home(props) {
<LookupBg />
</div>
<div className="dataRow">

{/* Hide total indexed CIDs until there is an accurate measure. See:
* https://github.com/ipni/cid.contact/issues/17

Expand Down Expand Up @@ -1075,45 +1074,47 @@ export default function Home(props) {
<img src="images/about-1.svg" alt="Map" />
</Col>
<Col xs={12} md={8} className="textCol">
<p>
<strong>Content routing</strong> is the a term used to
describe the problem of finding providers for a given piece
of content. If you have a hash, or CID of some data, how do
you find who has it in the IPFS and Filecoin system?
</p>
<p>
<strong>Content routing</strong> is the a term used to
describe the problem of finding providers for a given
piece of content. If you have a hash, or CID of some data,
how do you find who has it in the IPFS and Filecoin
system?
</p>
</Col>
</Row>
<Row>
<Col xs={12} md={4} className="imgCol pe-md-5 mb-5 mb-md-0">
<img src="images/about-2.svg" alt="Solarsystem" />
</Col>
<Col xs={12} md={8} className="textCol">
<p>
In IPFS, a <strong>Distributed Hash Table</strong> (DHT) is
used as a decentralized answer to content routing. However,
when considering the number of records in Filecoin storage
providers, it is clear that simply announcing these records
to the DHT will place an undue burden on current DHT
participants. It will take too much bandwidth and storage
space to be practical.
</p>
<p>
In IPFS, a <strong>Distributed Hash Table</strong> (DHT)
is used as a decentralized answer to content routing.
However, when considering the number of records in
Filecoin storage providers, it is clear that simply
announcing these records to the DHT will place an undue
burden on current DHT participants. It will take too much
bandwidth and storage space to be practical.
</p>
</Col>
</Row>
<Row>
<Col xs={12} md={4} className="imgCol pe-md-5 mb-5 mb-md-0">
<img src="images/about-3.svg" alt="Connected Circles" />
</Col>
<Col xs={12} md={8} className="textCol">
<p>
CID Contact encompasses a number of work streams to increase
the scalability and resilience of content routing.{" "}
<strong>Network Indexer</strong> provides aggregated views
of content routing, and harness the heterogeneity of network
resources. <strong>Delegated Content Routing</strong>{" "}
defines protocols for multiple content routing providers to
be discovered and used safely, efficiently, and in a
decentralized manner by clients.
</p>
<p>
CID Contact encompasses a number of work streams to
increase the scalability and resilience of content
routing. <strong>Network Indexer</strong> provides
aggregated views of content routing, and harness the
heterogeneity of network resources.{" "}
<strong>Delegated Content Routing</strong> defines
protocols for multiple content routing providers to be
discovered and used safely, efficiently, and in a
decentralized manner by clients.
</p>
</Col>
</Row>
</div>
Expand All @@ -1123,12 +1124,9 @@ export default function Home(props) {
following CID:
</p>
<div className="inputWrapper">
<input
type="text"
name="queryString"
id="queryString"
value="bafybeigvgzoolc3drupxhlevdp2ugqcrbcsqfmcek2zxiw5wctk3xjpjwy"
/>
<p className="queryString">
bafybeigvgzoolc3drupxhlevdp2ugqcrbcsqfmcek2zxiw5wctk3xjpjwy
</p>
</div>
<a
href="https://docs.cid.contact/"
Expand Down
14 changes: 7 additions & 7 deletions sass/_about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

strong {
font-weight: 700;
color: $mdBlue;
color: $dkrBlue;
}
}
}
Expand Down Expand Up @@ -87,15 +87,15 @@
}

.inputWrapper {
width: 60%;
width: 70%;

input {
.queryString {
border: 1px solid;
width: 100%;
border-radius: 6px;
border: 2px solid $dkGrey;
padding: 6px;
text-align: center;
color: $black;
padding: 6px;
border-radius: 6px;
margin: 0;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions sass/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
}

.btn.btn-tertiary {
background-color: $blue;
background-color: $dkBlue;
color: $white;
line-height: normal;

&:hover,
&:active,
&:focus {
background-color: $dkBlue;
background-color: $mdBlue;
}
}

Expand Down
5 changes: 5 additions & 0 deletions sass/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ footer {
flex-direction: column;
justify-content: space-between;

a {
color: $dkrBlue;
font-weight: 500;
}

h5 {
font-size: 1.2rem;
font-weight: 500;
Expand Down
8 changes: 6 additions & 2 deletions sass/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
> p {
font-size: 0.8rem;
font-weight: 400;

a {
color: $dkrBlue;
}
}

.dataRow {
Expand Down Expand Up @@ -90,7 +94,7 @@
}

&::before {
content: '';
content: "";
position: absolute;
top: 0;
left: 0;
Expand All @@ -102,7 +106,7 @@
}

&::after {
content: '';
content: "";
position: absolute;
top: 3px;
left: 4px;
Expand Down
2 changes: 1 addition & 1 deletion sass/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
width: 100%;
padding: 2px;
position: relative;
background: $mdBlue;
background: $dkBlue;
color: $white;
border-top-left-radius: 9.08778px;
border-bottom-left-radius: 9.08778px;
Expand Down
Loading