Skip to content

Commit

Permalink
Update homepage, Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Oct 18, 2024
1 parent 54229d9 commit 66ba499
Show file tree
Hide file tree
Showing 10 changed files with 304 additions and 244 deletions.
3 changes: 0 additions & 3 deletions app/Domain/Icon/FontAwesomeFree.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function icons(): array
'loginGithub' => 'fab fa-github',

// homepage
'microblogsPopular' => 'far fa-comments',
'reputationRanking' => 'fas fa-star',
'forumNews' => 'fas fa-star',
'viewersOnlineLocal' => 'fas fa-eye',
'viewersOnlineGlobal' => 'fas fa-users',
'homepageActivityMicroblog' => 'far fa-person',
Expand Down
8 changes: 4 additions & 4 deletions app/Services/Session/Renderer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Coyote\Services\Session;

use Coyote\Domain\Online\SessionRepository;
use Coyote\Domain\Online\FakeSessionRepository;
use Coyote\Domain\Online\Viewers;
use Coyote\Domain\Online\ViewersStore;
use Coyote\Domain\Spacer;
Expand All @@ -13,9 +13,9 @@ class Renderer
private Spacer $spacer;

public function __construct(
private SessionRepository $session,
private ViewersStore $store,
private Request $request,
private FakeSessionRepository $session,
private ViewersStore $store,
private Request $request,
)
{
$this->spacer = new Spacer(8);
Expand Down
Binary file removed public/img/stream-last-feed.png
Binary file not shown.
14 changes: 14 additions & 0 deletions resources/feature/theme/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@
}
}
}

@mixin theme {
/**
* The dark() and light() mixins increase selector specificity.
* In some cases, it's necessary to apply a common style to both
* themes, overriding a previously defined style.
* To achieve this, we need to artificially elevate the specificity
* of the style.
*/
body.theme-light &,
body.theme-dark & {
@content;
}
}
13 changes: 6 additions & 7 deletions resources/js/components/microblog/comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,25 @@
</a>
</li>
<li class="list-inline-item">
<a
<span
@click="checkAuth(vote, comment)"
@mouseenter.once="loadVoters(comment)"
:aria-label="commentVoters"
:class="{'vote-active': comment.is_voted}"
href="javascript:"
data-balloon-pos="up"
data-balloon-break>
{{ commentLabel }}
</a>
</span>
</li>
<li class="list-inline-item">
<a @click="checkAuth(reply)" href="javascript:">
<span @click="checkAuth(reply)">
Odpowiedz
</a>
</span>
</li>
<li v-if="isAuthorized" class="list-inline-item">
<a href="javascript:" :data-metadata="comment.metadata" :data-url="comment.url">
<span :data-metadata="comment.metadata" :data-url="comment.url">
Zgłoś
</a>
</span>
</li>
</ul>

Expand Down
1 change: 0 additions & 1 deletion resources/sass/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
@import "core/dark_flash";
@import "core/dark_footer";
@import "core/dark_header";
@import "core/dark_homepage";
@import "core/dark_input";
@import "core/dark_job";
@import "core/dark_job_offers";
Expand Down
86 changes: 0 additions & 86 deletions resources/sass/core/_dark_homepage.scss

This file was deleted.

4 changes: 0 additions & 4 deletions resources/sass/core/_panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
margin-bottom: 18px; // backward compatibility. in bootstrap 3 panel have margin-bottom
}

.card-default {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.box {
> h4 {
position: relative;
Expand Down
Loading

0 comments on commit 66ba499

Please sign in to comment.