Skip to content

Commit

Permalink
feat(styles): add responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSR committed Aug 23, 2024
1 parent 43aac8c commit 45c358d
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 44 deletions.
6 changes: 3 additions & 3 deletions src/app/assets/icons/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions src/app/assets/icons/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/arrow-right-alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/coffee.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/assets/icons/dark-mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/github-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/language.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/assets/icons/light-mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/linkedin-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/assets/icons/mail-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions src/app/components/ButtonCustom/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
.global-button {
cursor: pointer;
width: 3rem;
height: 3rem;
width: 2rem;
height: 2rem;
background: transparent;
border: none;

display: flex;
justify-content: center;
align-items: center;

@media (min-width: 768px) {
width: 3rem;
height: 3rem;
}
}

.global-button svg {
width: 2rem;
height: 2rem;

@media (min-width: 768px) {
width: 3rem;
height: 3rem;
}
}

.global-button:first-child svg > path {
Expand Down
14 changes: 8 additions & 6 deletions src/app/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ const ThemeSwitch = dynamic(() => import("../ThemeSwitch"), {
export default function Header() {
return (
<nav className={styles.header}>
<ul className={styles["header-side_left"]}></ul>
<ul className={styles["header-side_right"]}>
<li className={styles["header-side-item"]}>
<ThemeSwitch />
</li>
</ul>
<div className={styles["nav-wrapper"]}>
<ul className={styles["header-side_left"]}></ul>
<ul className={styles["header-side_right"]}>
<li className={styles["header-side-item"]}>
<ThemeSwitch />
</li>
</ul>
</div>
</nav>
);
}
16 changes: 14 additions & 2 deletions src/app/components/Header/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
.header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}

.nav-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 1.5rem 10rem;
max-width: 90rem;
padding: 1rem 2rem;

@media (min-width: 768px) {
padding: 1.5rem 10rem;
}
}

.header-side_left {
list-style-type: none;
display: flex;
justify-content: flex-start;
align-items: center;
width: 100%;
list-style: none;
}

.header-side_right {
Expand Down

0 comments on commit 45c358d

Please sign in to comment.