Skip to content

Commit

Permalink
fixed dashboard and home style, added deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
fulanii committed Dec 17, 2024
1 parent 075d5e9 commit 8f683ad
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
run: |
docker compose -f docker-compose.yml push
# - name: Deploy to production using Docker Compose
# run: |
# sshpass -p "${{ secrets.PRODUCTION_PASSWORD }}" ssh -o StrictHostKeyChecking=no ${{ secrets.PRODUCTION_USER }}@${{ secrets.PRODUCTION_HOST }} << EOF
# cd /path/to/your/production/directory
# docker-compose pull
# docker-compose down
# docker-compose up -d
# EOF
- name: Deploy to production using Docker Compose
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.PRODUCTION_USER }}@${{ secrets.PRODUCTION_HOST }} << EOF
cd /home
docker-compose pull
docker-compose down
docker-compose up -d --build
EOF
2 changes: 1 addition & 1 deletion auto_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def dashboard(request):
formatted_datetime = now.strftime("%Y-%m-%dT%H:%M")

user_blue_profile = BlueskyProfile.objects.filter(user_id=login_user.id).first()
user_all_blue_post = Post.objects.filter(user_id=login_user.id)
user_all_blue_post = Post.objects.filter(user_id=login_user.id).order_by('-posting_date')

context = {
"min_date": formatted_datetime,
Expand Down
6 changes: 5 additions & 1 deletion static/auto_app/css/base/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ body {
color: var(--primary-text-color);
background-color: var(--body-bg-color);
overflow-x: hidden;


display: flex;
flex-direction: column;
min-height: 100vh;
}
#main {
/* height: 100vh; */
margin: 100px 0 100px 0;
}
4 changes: 1 addition & 3 deletions static/auto_app/css/layouts/footer.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#footer {
/* position: absolute;
bottom: 0; */
background-color: var(--primary-bg-color);
display: flex;
flex-direction: column;
align-items: center;
padding: 50px;
border-top: solid;
border-width: thin;
/* height: 50px; */
margin-top: auto;
}
.footer__p {
color: var(--footer-text-color);
Expand Down
15 changes: 7 additions & 8 deletions static/auto_app/css/pages/dashboard.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#dashboard {
font-family: Arial, sans-serif;
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}

.dashboard-header h1 {
Expand All @@ -18,7 +20,6 @@

flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
gap: 10px; /* Add spacing between buttons */

}

.tab-button {
Expand All @@ -28,7 +29,6 @@
transition: background 0.3s;

flex: 1; /* Makes buttons equal width */

}

.tab-button.active {
Expand All @@ -45,7 +45,6 @@
/* media queries ----------------- media queries */
/* breakdown 440px and bellow */


@media (max-width: 440px) {
.dashboard-tabs {
flex-direction: column; /* Stack the buttons vertically */
Expand All @@ -55,11 +54,11 @@
.tab-button {
font-size: 14px; /* Slightly smaller font size for smaller screens */
}
.dashboard-header h1 {
margin: 0 0 50px 0;
.dashboard-header h1 {
margin: 50px 0 50px 0;
font-size: 20px;
}
#dashboard{
#dashboard {
padding: 5px;
}
}
}
2 changes: 1 addition & 1 deletion static/auto_app/css/pages/home.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#home{
height: 50vh;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 8f683ad

Please sign in to comment.