Skip to content

Commit

Permalink
Merge pull request #246 from AndrewCS149/fixFormatting
Browse files Browse the repository at this point in the history
add formatting
  • Loading branch information
The-DevBlog authored May 1, 2024
2 parents c0c70c1 + ee44fae commit 8c80247
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ jobs:
run: |
ssh -i ${{ secrets.SSH_PRIVATE_KEY_PATH }}/${{ secrets.SSH_PRIVATE_KEY_NAME }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "\
cd ${{ secrets.DEVBLOG_ROOT_PATH }} && \
docker container rm -f ${{ secrets.DEVBLOG_CLIENT_CONTAINER }} || true && \
docker container rm -f ${{ secrets.DEVBLOG_SERVER_CONTAINER }} || true && \
docker container rm -f ${{ secrets.DEVBLOG_PROXY_CONTAINER }} || true && \
docker compose up -d"
docker container restart ${{ secrets.DEVBLOG_CLIENT_CONTAINER }} || true && \
docker container restart ${{ secrets.DEVBLOG_SERVER_CONTAINER }} || true && \
docker container restart ${{ secrets.DEVBLOG_PROXY_CONTAINER }}"
8 changes: 8 additions & 0 deletions client/assets/styles/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

/* post */
@media (max-width: 800px) {
main {
width: 100%;
}

.posts {
margin-left: 0px !important;
margin-right: 0px !important;
}

.description,
.post {
Expand Down
10 changes: 4 additions & 6 deletions client/src/components/styles/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@
background-color: inherit;
font-size: 2em;
opacity: .8;
border: 1px solid red;
}

/* .img-container>button:first {
margin-left: 30;
.img-container img {
border-radius: .5em;
width: 100%;
}

.img-container>button:last {
margin-right: 30;
} */

.img-container>.inactive-btn {
opacity: .3;
}
Expand Down
14 changes: 5 additions & 9 deletions client/src/components/styles/post.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
:root {
width: 100%;
}

.post {
border-radius: .5em;
margin: auto;
margin-bottom: 1.5em;
padding: 1em;
width: 70%;
padding: 25px;
}

.post>div {
margin: auto;
width: 95%;
}

.hide-comment:nth-child(n + 6) {
Expand All @@ -34,12 +36,6 @@
width: 100%;
}

img {
border-radius: .5em;
width: 100%;
max-width: 900px;
}

.description {
margin: auto;
}
4 changes: 3 additions & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ pub fn app() -> Html {
<Global css={STYLE} />
<BrowserRouter>
<Navbar />
<Switch<Route> render={switch} />
<main>
<Switch<Route> render={switch} />
</main>
<Footer />
</BrowserRouter>
</>
Expand Down
4 changes: 4 additions & 0 deletions client/src/pages/styles/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ section:root {
margin: 100px 20px 0px 20px;
}

.home {
width: 100%;
}

.signup-prompt {
font-size: 20px;
margin: 100px auto 100px auto;
Expand Down
5 changes: 5 additions & 0 deletions client/src/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
font-family: 'Silkscreen', cursive;
}

main {
margin: auto;
width: 80%;
}

a {
color: var(--text);
}
Expand Down

0 comments on commit 8c80247

Please sign in to comment.