Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabizha committed Nov 19, 2024
1 parent 213292a commit ec1cb32
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Museum landing page

- [DESIGN](https://www.figma.com/file/cRBCqE06cDrY3s4jX7h3iY/%D0%9D%D0%90%D0%9C%D0%A3-(Edit)?node-id=0%3A1)
- [DEMO LINK] (https://pdabizha.github.io/Museum/)
- [DEMO LINK](https://pdabizha.github.io/Museum/)

This website serves as an online platform for an art museum, providing information about ongoing and upcoming exhibitions, educational lectures, and more. It also features a gallery section showcasing artwork and allows visitors to subscribe to a newsletter for the latest updates.

Expand Down
20 changes: 13 additions & 7 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
&__content {
@include grid-page;

position: relative;
@include on-desktop {
min-height: 655px;
}
}

&__icon-menu {
Expand All @@ -34,24 +36,24 @@
min-height: 300px;

@include on-tablet {
position: absolute;
margin: 0;
grid-column: 4/-1;
margin-right: -34px;
top: 0;
right: 0;
left: 50%;
min-height: 384px;
}

@include on-desktop {
grid-column: 6/-1;
margin-right: -55px;
min-height: 655px;
}
}

&__logo {
position: absolute;
left: 50%;
transform: translateX(-50%);
left: 132px;
top: 9px;
z-index: 2;

@include on-tablet {
font-size: 36px;
Expand All @@ -65,8 +67,11 @@
}

&__img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

&__bottom {
Expand Down Expand Up @@ -162,6 +167,7 @@
color: $main-text-color;
text-transform: uppercase;
transition: all $transition-duration;
cursor: pointer;

&::after {
content: '';
Expand Down
3 changes: 0 additions & 3 deletions src/styles/blocks/lecture.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.lecture {
// position: relative;
max-width: $design-max-width;
margin-inline: auto;
&__img {
min-width: 320px;
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion src/styles/blocks/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}

&:has(.page__menu:target) {
overflow: hidden; /* not to scroll the page */
&::after {
opacity: 1;
visibility: visible;
Expand All @@ -31,7 +32,7 @@
transition: all $transition-duration;

&__menu {
position: fixed;
position: absolute;
background-color: $main-accent-color;
width: 100%;
top: -100%;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/blocks/subscription.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
width: 100%;
height: 50px;
transition: all $transition-duration;
cursor: pointer;

outline: none;
color: $main-text-color;
Expand Down Expand Up @@ -87,6 +88,7 @@
background-repeat: no-repeat;
background-position: center;
z-index: 20;
cursor: pointer;

@include on-tablet {
height: 70px;
Expand Down

0 comments on commit ec1cb32

Please sign in to comment.