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

Change /press to /news #1084

Merged
merged 9 commits into from
Oct 10, 2022
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ The most frequently updated content sections live in the below locations:

| Section | File |
| ------------------ | ---- |
| Press releases | `src/content/press/*.md` |
| Press coverage | `src/data/press/coverage.yml` |
| News | `src/data/news/news.yml` |
| Press releases | `src/content/news/*.md` |
| Wallets | `src/data/wallets/wallets.yml` |
| Community channels | `src/data/community/channels.yml` |
| Support channels | `src/data/community/support.yml` |
Expand Down
2 changes: 2 additions & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ server {
rewrite ^/stakepools/?$ $scheme://$http_host/vsp/ permanent;
rewrite ^/downloads/?$ $scheme://$http_host/wallets/ permanent;
rewrite ^/support/?$ $scheme://$http_host/community/ permanent;
rewrite ^/press/?$ $scheme://$http_host/news/ permanent;
rewrite ^/contributors/?$ https://github.com/orgs/decred/people permanent;
rewrite ^/matrix/?$ https://chat.decred.org/ permanent;
rewrite ^/matrix-support/?$ https://chat.decred.org/#/room/#support:decred.org permanent;
Expand All @@ -160,6 +161,7 @@ server {
rewrite ^/(.*)/stakepools/?$ $scheme://$http_host/$1/vsp/ permanent;
rewrite ^/(.*)/downloads/?$ $scheme://$http_host/$1/wallets/ permanent;
rewrite ^/(.*)/support/?$ $scheme://$http_host/$1/community/ permanent;
rewrite ^/(.*)/press/?$ $scheme://$http_host/$1/news/ permanent;
rewrite ^/(.*)/contributors/?$ https://github.com/orgs/decred/people permanent;
rewrite ^/(.*)/matrix/?$ https://chat.decred.org/ permanent;
rewrite ^/(.*)/matrix-support/?$ https://chat.decred.org/#/room/#support:decred.org permanent;
Expand Down
39 changes: 24 additions & 15 deletions src/assets/scss/_press.scss → src/assets/scss/_news.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Coverage/release toggle.
// News/release toggle.
//

.press-toggle label {
Expand All @@ -23,15 +23,24 @@
@include media-breakpoint-up(lg) {
.press-toggle {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
margin: 0;
}

// This is a bit of a bodge. Could be improved by using start/end instead of
// left/right.
html[dir="rtl"] .press-toggle {
left: 0;
}
html[dir="ltr"] .press-toggle {
right: 0;
}

}

#releases:checked~div label[for='releases'],
#coverage:checked~div label[for='coverage'] {
#news:checked~div label[for='news'],
#releases:checked~div label[for='releases'] {
background: #E7EAED;
color: #091440;
}
Expand All @@ -45,8 +54,8 @@
flex-wrap: nowrap;
}

#releases:checked~div .press__releases,
#coverage:checked~div .press__coverage {
#news:checked~div .press__news,
#releases:checked~div .press__releases {
opacity: 1;
visibility: visible;
position: relative;
Expand All @@ -55,25 +64,25 @@
}

//
// Coverage/release list.
// News/release list.
//

.press__coverage-item {
.press__news-item {
width: 100%;
padding: 26px 23px 8px;
position: relative;
border-bottom: 1px solid rgba($white, 0.5);
}

.press__coverage-item a {
.press__news-item a {
text-decoration: none;
}

.press__coverage-item p {
.press__news-item p {
margin-bottom: 5px;
}

.press__coverage-item img.press-icon {
.press__news-item img.press-icon {
float: left;
margin-right: 34px;
vertical-align: top;
Expand All @@ -82,7 +91,7 @@
width: 30px;
}

.press__coverage-item img.press-hover-icon {
.press__news-item img.press-hover-icon {
position: absolute;
top: 30px;
right: 15px;
Expand All @@ -91,11 +100,11 @@
transition: 0.08s ease-in-out;
}

.press__coverage-item:hover img.press-hover-icon {
.press__news-item:hover img.press-hover-icon {
opacity: 1;
}

.press__coverage-wrapper {
.press__news-wrapper {
float: left;
max-width: calc(100% - 80px);
}
Expand All @@ -116,7 +125,7 @@
margin-right: 5px;
}

.press__coverage-item:hover .press__title {
.press__news-item:hover .press__title {
color: rgba($white, 0.95);
}

Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/decred-v6.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ $container-max-widths: (
@import "_filter-buttons";
@import "_brand";
@import "_vsp";
@import "_press";
@import "_news";
@import "_dataTables";
@import "_fonts";
File renamed without changes.
Loading