Pyx의 모던 테마

:information_source: 요약 Pyx’s Modern Theme는 darkpixlz’s Modern Theme의 후속 버전입니다.
:eyeglasses: 미리보기 Theme Creator
:hammer_and_wrench: 저장소 GitHub - pyxfluff/moderntheme: Modern theme for Discourse. · GitHub
:question: 설치 가이드 테마 또는 테마 컴포넌트 설치 방법
:open_book: Discourse 테마를 처음 사용하시나요? Discourse 테마 사용 입문 가이드
:heart: 이 테마를 좋아하시나요? Github Sponsors를 통해 제 작업과 테마를 지원해 주세요!

이 테마 설치

Pyx’s Modern Theme는 Air 테마를 포크한 제 이전 테마인 darkpixlz’s Modern Theme의 후속 버전입니다. 이전 테마는 약 2500줄의 코드로 구성되어 있었고 많은 문제가 있었기 때문에, 저는 이를 완전히 다시 작성했습니다!

스크린샷

배경 이미지 없는 스타일

주요 기능

  • 배경 이미지를 포함하거나 포함하지 않는 현대적인 일체형(unibody) 디자인
  • Discourse 코어 전체 및 많은 플러그인 지원
  • 모든 최신 코어 기능 지원
  • 사용자 지정 가능한 배경 이미지
  • 플러그인이 프로필에서 사용자의 배경 이미지를 읽을 수 있도록 --user-bg-url 속성 추가
  • 다양한 설정 및 선택 사항 제공

플러그인

대부분의 코어 플러그인을 지원하는 것을 목표로 합니다. 아래에는 일부 플러그인의 스크린샷을 참고하세요(전체 목록은 아닙니다).

저장소에 대한 모든 기여를 환영하며, (대부분) 당일 검토가 이루어질 것입니다. 의견이나 아이디어가 있으시면 여기에 답글을 남겨주세요. 문제가 있으시면 GitHub 이슈를 등록해 주십시오. 관리하기가 훨씬 쉽습니다.

모든 스타일을 Firefox 브라우저에서만 테스트하고 있다는 점을 유의해 주세요. Chromium 브라우저에서 문제가 발생하면 주저하지 말고 보고서를 등록해 주세요. 모바일 환경은 몇 번의 업데이트마다 확인되며, 일반적으로 지원됩니다.

지금은 이만 마치겠습니다 - 테마를 즐기세요!

15개의 좋아요

<image redacted>

네, 이건 제 실수였습니다. 컴포넌트가 이렇게 이미지를 추가할 수 있다는 걸 잊고 있었어요. 수정 사항을 배포했습니다 :+1:

<image redacted>

이건 의도된 동작인 것 같은데, 배너가 닫혀 있으면 어딘가 이상해 보입니다. 어떻게 할지 알아볼게요.


I tried a different image and it seemed to be a bit of a problem, but the problem with making the image an oval did go away.

<redacted>

적응형 스케일(adaptive scale)을 추가할 수 있을지 궁금합니다. 오른쪽에 사이드바 구성 요소를 배치하고 싶습니다.

CSS
/* 사용자의 아바타 너비를 가져오고 광고 컨테이너의 최대 너비를 설정합니다 */

/* 광고 컨테이너 스타일 */
#list-area {
    display: flex;            /* 플렉스박스(Flexbox)를 사용하여 광고를 배치 */
    flex-direction: column;   /* 광고를 세로로 표시 */
    gap: 0;                   /* 광고 이미지 사이의 간격 제거 */
    padding: 0;               /* 컨테이너 패딩 제거 */
    margin: 0;                /* 광고 컨테이너 주위에 추가 마진이 없도록 설정 */
    max-width: 812px;         /* 광고 컨테이너 너비를 최대 812px로 제한 (아바타 너비: 48px) */
}

/* 광고 링크 스타일 */
.banner-ad {
    display: block;           /* 광고 컨테이너를 블록 요소로 설정 */
    width: 100%;              /* 광고 컨테이너가 100% 너비를 차지하도록 설정 */
    max-width: 100%;          /* 최대 너비 초과 방지 */
    margin: 0;                /* 광고 컨테이너 사이의 간격 제거 */
}

/* 반응형 광고 이미지 스타일 */
.ad-image {
    width: 100%;              /* 이미지가 부모 요소의 전체 너비를 차지하도록 설정 */
    height: auto;             /* 이미지의 원래 종횡비 유지 */
    max-width: 100%;          /* 이미지가 컨테이너의 최대 너비를 초과하지 않도록 설정 */
    display: block;           /* 이미지 하단의 빈 공간 문제 해결 */
    margin: 0;                /* 이미지 주위의 추가 공간 제거 */
}

/* 반응형 디자인: 큰 화면과 작은 화면에 맞게 광고 표시 조정 */

/* 너비가 768px 미만인 기기에서 광고 표시 조정 */
@media (max-width: 768px) {
    #list-area {
        padding: 0;            /* 모바일 기기에서 추가 패딩이 없도록 설정 */
    }

    .banner-ad {
        width: 100%;           /* 작은 화면에서 광고가 전체 너비를 차지하도록 설정 */
    }

    .ad-image {
        width: 100%;           /* 이미지가 컨테이너 너비에 맞게 조정되도록 설정 */
        height: auto;          /* 이미지의 종횡비 유지 */
    }
}

/* 매우 작은 기기(예: 세로 모드 스마트폰)에서 광고 이미지를 추가로 조정 */
@media (max-width: 480px) {
    .ad-image {
        width: 100%;             /* 이미지가 스마트폰 화면 너비에 맞게 조정되도록 설정 */
        max-width: 100%;         /* 과도한 크기를 방지하기 위해 최대 너비를 100%로 설정 */
        height: auto;            /* 이미지의 종횡비 유지 */
    }
}

<redacted>

1개의 좋아요

I’ll check on the side component thing tomorrow. No promises on advertising because I cannot test that but for general scaling I should be able to fix that.

1개의 좋아요

Nicely done! :clap: :star_struck: :discourse:

3개의 좋아요

Update pushed with many fixes and support for the category edit page and other admin areas!


@Monikas your issue with side buttons should also be fixed now.

2개의 좋아요

Sorry, I was sick a lot of this week, have also had other things to be doing. Just polished the post stream up, fixed many bugs, and made the composer float!

1개의 좋아요

Also, I noticed that the theme page got reverted to the old version which has summoned a lot of issues. I’m not going to make an effort to fix anything there because I feel like it will be re-added and it will look like intended.

Is there a way to have a layout like below:

With the nice rendering and stuff of this theme? Like can I have the leaderboard sidebar and stuff too(see below):

Unfortunately that’s a little out of scope for this theme because it’s intentionally unibody so I would not adopt a layout where the sidebar is detached. If you’re looking for a design like that I’d recommend these two amazing themes:

However if the header banner is something you’d like to see supported feel free to give me a site URL and I’ll check out the possibility of supporting it.

so cool

1개의 좋아요

Hi all, sorry for the lack of updates lately! I have just added support for the review queue and docker manager.



1개의 좋아요

Hi guys,

Sorry for the slow update, I requested the title to be changed last week and never really followed up. I went to sync the theme on my local site, but I learned about some port conflicts, 8 hours later I have my entire homelab migrated to Proxmox. Mix that and the week I’ve had with personal projects (documenting 4000 LOC frontend + backend is not easy) and you don’t get a lot of spare time :melting_face:

tl;dr: The theme is now out of the “preview” stage! :tada: I’m confident enough it’ll work for most everybody’s sites and be styled ok. With this new stage, I am no longer looking for bug reports here, please file GitHub issues going forward.

Please keep the feedback coming - any and all is welcome. Thank you for your continued support even if I may be slow :3

1개의 좋아요

Brilliant work as always, thanks!

1개의 좋아요

Hi guys,

Sorry about the deprecation warning at the top of your sites for a few days :sweat_smile:, it has been fixed now. Everything should be normal again.

More good news! I just ended up rewriting the theme again so it is no longer one massive common.scss file. It shouldn’t look any different besides some minor fixes I made. Enjoy :3


3개의 좋아요

Really liked the theme, but there’s some “artifacts” that unfortunately prevents me from using it :frowning:

  • The “Profile” page has little button behind the header that says “skip to content”
  • When I try to select a different color palette (as user, on my profile) the dropdown selection shows close to the “skip to content” button i mentioned above (that’s how I realized it was there)
1개의 좋아요

@darkpixlz I’ve recorded a video because I realize that my feedback may be hard to understand :smiley: