-
Notifications
You must be signed in to change notification settings - Fork 2
Apply styles and add fixtures #18
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0aa48a3
Minor update
lqez d9b0537
Fixes to reduce confusion of column names
lqez 0ca94ce
Adding Tailwind CSS
lqez 96958a0
Tailwind is still blowing...
lqez 0ef2eff
Add tailwindcss/typography for displaying Rich contents
lqez 2f9d035
Update styles
lqez 66743de
Merge branch 'main' of github.com:lqez/python.or.kr-wip
lqez f5ea46d
Add fixtures
lqez 95c95a0
Update pythonkr_backend/theme/static_src/tailwind.config.js
lqez 3da659c
Merge branch 'main' into main
lqez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,3 +169,6 @@ cython_debug/ | |
|
||
# PyPI configuration file | ||
.pypirc | ||
|
||
# Misc | ||
.DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
# python.or.kr-wip | ||
|
||
# 개발 환경 구축 | ||
## 개발 환경 구축 | ||
|
||
``` | ||
docker compose up | ||
``` | ||
### 1. Docker compose 이용 | ||
|
||
http://localhost:8080/cms/ | ||
테스트용 계정 정보 | ||
- id: test | ||
- password: test | ||
|
||
test / test | ||
``` | ||
$ docker-compose up | ||
``` | ||
- 접속 URL: http://localhost:8080/cms/ | ||
|
||
|
||
# settings | ||
### 2. Django runserver 이용 | ||
|
||
``` | ||
$ source .venv/bin/activate | ||
$ cd pythonkr_backend | ||
$ python manage.py migrate | ||
$ python manage.py runserver | ||
``` | ||
|
||
Tailwind CSS 작업을 위해 다른 창에서 다음을 실행 | ||
``` | ||
$ python manage.py tailwind start | ||
``` | ||
|
||
## Django settings | ||
- pythonkr_backend.settings # local sqlite testing | ||
- pythonkr_backend.settings.localtesting # docker compose testing | ||
- pythonkr_backend.settings.prod # production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 76 additions & 64 deletions
140
pythonkr_backend/pythonkr/templates/pythonkr/pk_base.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,88 @@ | ||
{% load static %} | ||
{% load tailwind_tags %} | ||
{% load wagtailcore_tags %} | ||
{% load wagtailimages_tags %} | ||
{% wagtail_site as current_site %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}Python Asia{% endblock title %}</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css"> | ||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.5/cdn.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script> | ||
<style> | ||
html, body { | ||
height: 100%; | ||
margin: 0; | ||
} | ||
body { | ||
padding-top: 40px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
main { | ||
flex: 1; | ||
} | ||
footer { | ||
background-color: #f8f9fa; | ||
margin-bottom: 20px; | ||
} | ||
</style> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}파이썬 한국 사용자 모임{% endblock title %}</title> | ||
{% tailwind_css %} | ||
</head> | ||
<body> | ||
<!-- Navigation --> | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="{% pageurl current_site.root_page %}"> | ||
<img src="{% static 'pao/01-Main2.png' %}" alt="Python Asia Organization Logo" | ||
height="80"/> | ||
</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav ms-auto"> | ||
{% for menu_page in current_site.root_page.get_children.live.in_menu %} | ||
<li class="nav-item"><a class="nav-link" href="{% pageurl menu_page %}">{{menu_page.title}}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<body class="bg-white min-h-screen flex flex-col"> | ||
<!-- 내비게이션 --> | ||
<nav class="bg-white border-b"> | ||
<div class="container mx-auto px-4"> | ||
<div class="flex justify-between items-center py-4"> | ||
<!-- 로고 + 텍스트 타이틀 --> | ||
<div class="flex flex-row items-center space-x-4 w-auto"> | ||
<a class="navbar-brand" href="{% pageurl current_site.root_page %}"> | ||
<img class="h-12 mx-auto md:mx-0" src="{% static 'pythonkr/pythonkr-badge.png' %}" alt="Python Korea Logo"/> | ||
</a> | ||
<h1 class="text-xl font-bold text-gray-800 mt-2 md:mt-0 text-center md:text-left"> | ||
파이썬 한국 사용자 모임 | ||
</h1> | ||
</div> | ||
<!-- 내비게이션 --> | ||
<div class="hidden md:flex space-x-4"> | ||
{% for menu_page in current_site.root_page.get_children.live.in_menu %} | ||
<a class="text-gray-600 hover:text-gray-800" href="{% pageurl menu_page %}">{{ menu_page.title }}</a> | ||
{% endfor %} | ||
</div> | ||
<!-- 모바일 메뉴 버튼 --> | ||
<div class="md:hidden"> | ||
<button id="mobile-menu-button" class="text-gray-600 focus:outline-none"> | ||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | ||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" | ||
d="M4 6h16M4 12h16M4 18h16"></path> | ||
</svg> | ||
</button> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
<!-- 모바일 메뉴 --> | ||
<div id="mobile-menu" class="hidden md:hidden px-4 pb-4"> | ||
{% for menu_page in current_site.root_page.get_children.live.in_menu %} | ||
<a class="block py-2 text-gray-600 hover:bg-gray-200" href="{% pageurl menu_page %}">{{ menu_page.title }}</a> | ||
{% endfor %} | ||
</div> | ||
</nav> | ||
|
||
<!-- Main Content --> | ||
<main class="container mt-5 pt-5"> | ||
{% block content %}{% endblock content %} | ||
</main> | ||
<!-- 메인 --> | ||
<main class="flex-grow container mx-auto px-4 py-8"> | ||
<div class="prose"> | ||
{% block content %}{{ page.content|richtext }}{% endblock %} | ||
</div> | ||
</main> | ||
|
||
<!-- Footer --> | ||
<footer class="sponsor-footer mt-5"> | ||
<div class="container text-center"> | ||
<h4 class="text-center mb-4">Our Sponsors</h4> | ||
<div class="row justify-content-center"> | ||
{% for sponsor in sponsors %} | ||
<div class="col-md-3 col-6 text-center mb-3"> | ||
<img src="{{ sponsor.logo }}" alt="{{ sponsor.name }}" class="img-fluid" style="max-height: 60px;"> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<!-- 푸터 --> | ||
<footer class="bg-white border-t"> | ||
<div class="container mx-auto px-4 py-8"> | ||
<div class="flex flex-col md:flex-row justify-between items-start md:items-center space-y-4 md:space-y-0"> | ||
<!-- 로고 및 설명 --> | ||
<div> | ||
<h2 class="text-lg font-semibold text-gray-800">Python Korea</h2> | ||
<p class="text-sm text-gray-500 mt-1"> | ||
파이썬 한국 사용자 모임은 파이썬을 사용하는 모든 사람들을 위한 열린 커뮤니티입니다. | ||
</p> | ||
<p class="mt-6 pt-4 text-sm text-gray-400"> | ||
© 2025 Python Korea. All rights reserved. | ||
</p> | ||
</div> | ||
{% if looking_for_sponsors %} | ||
<h4 class="text-center mb-4">looking for sponsors!</h4> | ||
{% endif %} | ||
</footer> | ||
</div> | ||
</div> | ||
</footer> | ||
|
||
<script> | ||
const mobileMenuButton = document.getElementById('mobile-menu-button'); | ||
const mobileMenu = document.getElementById('mobile-menu'); | ||
mobileMenuButton.addEventListener('click', () => { | ||
mobileMenu.classList.toggle('hidden'); | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
</html> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
{% extends 'pythonkr/pk_base.html' %} | ||
{% load wagtailcore_tags %} | ||
|
||
{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} | ||
|
||
{% block content %} | ||
{{ page.body|richtext }} | ||
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
{% extends 'pythonkr/pk_base.html' %} | ||
{% load wagtailcore_tags %} | ||
|
||
{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} | ||
|
||
{% block content %} | ||
{{ page.body|richtext }} | ||
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ThemeConfig(AppConfig): | ||
name = 'theme' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Improve mobile menu accessibility.
The mobile menu button lacks accessibility attributes for screen readers.
Add ARIA attributes for better accessibility:
Also update the JavaScript to manage the
aria-expanded
attribute:🤖 Prompt for AI Agents