Skip to content

Commit

Permalink
🌈 Design: 로고 추가 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoRaang committed Dec 4, 2024
1 parent 45c67c6 commit d83b68a
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 182 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/images/logo.png" />
<!-- 나중에 로고 만들면 파비콘도 변경해야 함 -->
<meta
name="viewport"
Expand Down
Binary file added public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 48 additions & 4 deletions src/assets/stylesheets/layouts/_commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,49 @@
width: min(100% - 1.6rem, 36rem);
}

:where(#logoMain, #logoFooter) {
// 접근성을 위한 로고 내부의 숨김 alt 처리
position: relative;
overflow: hidden;
a:has(#logo-primary) {
display: block;
height: 100%;
}

#logo-primary {
display: flex;
align-items: center;
padding-block: 0.4rem;
height: 100%;
user-select: none;

> img {
height: 100%;
}

> p {
display: flex;
flex-flow: column nowrap;
gap: 0.2rem;
font-family: var(--ff-dingbat);
mix-blend-mode: hard-light;

> span:first-child {
font-size: var(--fnt-sm);
opacity: 0.5;
}

> span:last-child {
font-size: var(--fnt-title-sm);
font-weight: 900;
opacity: 0.75;
}
}
}

#logo-secondary {
height: 2.4rem;

> img {
height: 100%;
filter: drop-shadow(0 0.4rem 0.8rem rgb(var(--clr-mid-tone)));
}
}

.hidden-alt {
Expand Down Expand Up @@ -333,6 +372,11 @@
}

@container main-container (max-width: 720px) {
#logo-primary {
> p {
display: none;
}
}
}

@container main-container (max-width: 640px) {
Expand Down
2 changes: 1 addition & 1 deletion src/assets/stylesheets/layouts/_headers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
gap: 1.8rem;
gap: 0.8rem;
position: fixed;
inset-block-start: 0;
inset-inline: 0;
Expand Down
51 changes: 46 additions & 5 deletions src/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,46 @@ a, a:visited {
width: min(100% - 1.6rem, 36rem);
}

:where(#logoMain, #logoFooter) {
position: relative;
overflow: hidden;
a:has(#logo-primary) {
display: block;
height: 100%;
}

#logo-primary {
display: flex;
align-items: center;
padding-block: 0.4rem;
height: 100%;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
#logo-primary > img {
height: 100%;
}
#logo-primary > p {
display: flex;
flex-flow: column nowrap;
gap: 0.2rem;
font-family: var(--ff-dingbat);
mix-blend-mode: hard-light;
}
#logo-primary > p > span:first-child {
font-size: var(--fnt-sm);
opacity: 0.5;
}
#logo-primary > p > span:last-child {
font-size: var(--fnt-title-sm);
font-weight: 900;
opacity: 0.75;
}

#logo-secondary {
height: 2.4rem;
}
#logo-secondary > img {
height: 100%;
filter: drop-shadow(0 0.4rem 0.8rem rgb(var(--clr-mid-tone)));
}

.hidden-alt {
Expand Down Expand Up @@ -856,7 +893,11 @@ a, a:visited {

/* 반응형 쿼리 */
@container main-container (max-width: 960px) {}
@container main-container (max-width: 720px) {}
@container main-container (max-width: 720px) {
#logo-primary > p {
display: none;
}
}
@container main-container (max-width: 640px) {}
/* _commons.scss */
/* _headers.scss */
Expand All @@ -867,7 +908,7 @@ a, a:visited {
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
gap: 1.8rem;
gap: 0.8rem;
position: fixed;
inset-block-start: 0;
inset-inline: 0;
Expand Down
87 changes: 4 additions & 83 deletions src/components/layout/Footer.jsx

Large diffs are not rendered by default.

101 changes: 13 additions & 88 deletions src/components/layout/Header.jsx

Large diffs are not rendered by default.

0 comments on commit d83b68a

Please sign in to comment.