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

Apply website redesign #152

Merged
merged 6 commits into from
Jun 16, 2020
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: 4 additions & 0 deletions app/controllers/issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default Controller.extend({
return this.get('query');
}),

clearMessage: computed('label', function() {
return `Clear search filter ${this.label}`;
}),

actions: {
searchByWildcard(query) {
this.set('query', query);
Expand Down
190 changes: 103 additions & 87 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@charset "utf-8";
@import 'loading-cube';

/* Navbar */
.navbar {
.navbar-toggler {
font-size: 16px;
border: none;
outline: 0;
}
*, body {
box-sizing: border-box;
}

.dropdown-item {
width: auto;
}
body {
background-color: var(--color-gray-100);
}

.help-wanted-links {
padding: 20px;
margin-bottom: var(--spacing-4);

a {
margin: 0.2rem;
display: inline-block;
}

@media screen and (max-width: 768px) {
.es-button {
Expand All @@ -29,54 +29,9 @@
margin-right: 8px;
}

.github-issue-table {
border-collapse: collapse;
margin-top: 3px;
table-layout: fixed;
width: 100%;

thead tr {
background-color: #f6f8fa;
}

thead th {
font-size: 1.2em;
font-weight: 400;
text-align: left;
}

thead th:nth-child(1) {
width: 15vw;
}

tbody td:nth-child(1) {
font-weight: 200;
}

tbody tr {
background-color: #fefefe;
border-top: 1px solid #e1e4e8;
font-weight: 500;

&:hover {
background-color: #d25f461f;
}
}
tbody tr:last-child {
border-bottom: 1px solid #e1e4e8;
}

th,
td {
padding: 20px;
}
}

.github-label {
cursor: pointer;
border-radius: 4px;
display: inline-block;
margin-right: 5px;
padding: 6px;
font-size: 12px;

Expand All @@ -90,48 +45,52 @@

.current-filter-label {
@extend .github-label;
background-color: #e9e9e9;
background-color: var(--color-gray-700);
opacity: 1;
color: var(--color-white);
position: relative;
text-align: right;
font-size: 14px;

&:hover {
opacity: 1;
}

button {
cursor: pointer;
border-left: 1px dotted;
padding-left: 6px;
color: #b1b1b1;
&:hover {
opacity: 0.7;
}
margin-left: 0.4rem;
right: 0.2rem;
padding: var(--spacing-1);
font-size: 14px;
}
}

.github-label-button {
background: none;
border: none;
padding: 0;
margin: 0.2rem;
cursor: pointer;
}

.prose {
height: 100%;
background: url('../images/ember-bkg.svg');
background-color: var(--color-gray-900);

.herounit {
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
height: 40vh;
}
text-align: left;

.searchbox {
outline: 0;
padding: 7px 10px;
width: 50%;
font-size: 16px;
border-radius: 5px;
border: thin solid lightgray;
h1 {
color: var(--color-white);
}
}

.section {
background-color: white;
padding: 30px 0 30px;

.container {
Expand All @@ -155,14 +114,9 @@
}
}

.search-box {
margin: 20px;
}

.total-issues {
margin-left: 20px;
margin-bottom: 5px;
font-size: 80%;
margin: var(--spacing-2) 0;
display: inline-block;
}

Expand Down Expand Up @@ -203,14 +157,76 @@
width: auto;
}
}
//Table display for mobile view
@media only screen and (max-width: 900px) {
thead {
display: none;

.bg-dark {
&.card--link:focus-within,
&.card--link:hover {
color: var(--color-gray-300);
}
}

.search-label {
display: block;
}

.search-input {
border-radius: var(--radius);
padding: var(--spacing-1);
}

.search-button {
margin-left: var(--spacing-1);
}

.issues-header {
padding-top: var(--spacing-4);
padding-bottom: var(--spacing-2);
}

.bg-white {
background-color: var(--color-white);

&.card--link:hover {
background-color: var(--color-gray-100);
}
}

.github-issue-number {
position: absolute;
top: 0;
right: 0;
padding: 0.2rem 0.5rem;
background-color: var(--color-brand);
color: var(--color-white);
border-bottom-left-radius: var(--radius);

a.text-white {
color: var(--color-white);
}
}

.search-box {
outline: 0;
font-size: 16px;
position: relative;

.search-input {
display: inline-block;
}

.search-button {
display: inline-block;
}
td {
display: block;
width: 90vw;
padding: 5vw;

@media screen and (max-width: 415px) {
.search-input {
width: 100%;
display: block;
}

.search-button, .current-filter-label {
width: 100%;
margin: 0.2rem 0;
}
}
}
11 changes: 6 additions & 5 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{#es-header}}
{{#es-navbar }}
{{/es-navbar}}
{{/es-header}}
<EsHeader />

{{outlet}}
<main>
{{outlet}}
</main>

<EsFooter />
34 changes: 16 additions & 18 deletions app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<div class="prose">
<div class="herounit">
<div class="prose bg-shape-boxes pt-5">
<div class="herounit mb-4 pt-4">
<img src="../images/ember-help-wanted-logo.svg" alt="Image">
<h1 class="text-hero-xl">Ember Help Wanted</h1>
<div class="help-wanted-links">
{{#each this.navLinks.navLinks as |link|}}
<a href={{link.href}}>{{es-button label=link.name isTiny=true}}</a>
{{/each}}
</div>
</div>
<div class="section">
<div class="section bg-light-muted">
<div class="article container d-flex flex-column">
{{#es-heading}}
<h2 class="text-xl">
Repositories with help-wanted issues
{{/es-heading}}
</h2>
<div class="row">
{{#each this.model as | repo |}}
<div class="col-sm-3 tile d-flex flex-column">
<div class="">{{repo.displayName}}</div><br>
<div class="">Forks: {{#if (not repo.forks)}} No forks {{else}} {{repo.forks}} {{/if}}</div>
<div class="linkbutton">
<a href={{repo.htmlUrl}} target="_blank" rel="noopener">
Take me there
</a>
</div>
</div>
{{/each}}
<ul class="list-unstyled layout">
{{#each this.model as | repo |}}
<EsLinkCard
class="lg:col-3 bg-dark"
@href={{repo.htmlUrl}}
@title={{repo.displayName}}>
<p>Forks: {{#if (not repo.forks)}} No forks {{else}} {{repo.forks}} {{/if}}</p>
</EsLinkCard>
{{/each}}
</ul>
</div>
</div>
<div class="article container">
Expand Down Expand Up @@ -66,5 +66,3 @@
</div>
</div>
</div>

<EsFooter />
Loading