Skip to content

New Headers Implementation #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: vnext
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/app/data/icons/exit_full_screen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion src/app/data/icons/file_download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/app/data/icons/full_screen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/app/data/icons/view_more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 79 additions & 28 deletions src/app/views/home/home-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

.tab-container {
width: 100%;
min-height: 132px;
min-height: 104px;
overflow: hidden;
flex-shrink: 0;
padding: 16px;
Expand All @@ -47,63 +47,48 @@

.tab-item-container {
width: 100%;
height: 100%;
height: 72px;
display: inline-flex;
}

.tab-item {
align-items: center;
height: 100%;
display: flex;
flex-grow: 1;
flex-basis: 0;
flex-direction: column;
justify-content: space-between;
flex-direction: row;
justify-content: center;
gap: 8px;
padding: 12px;
cursor: pointer;
user-select: none;
border-bottom: 1px solid var(--ig-gray-300);
color: black;

&--selected {
border-bottom: 3px solid var(--ig-primary-500);
color: var(--ig-primary-500);
}

&:hover {
background: hsl(from var(--ig-gray-100) h s l/0.5);
background-color: #e6f2ff;
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
transition: all 0.5s ease;
transform: translateY(-2px);
}
}

.tab-header {
display: flex;
flex-direction: row;
gap: 8px;
color: var(--ig-gray-900);
font-size: 20px;
font-size: 16px;
font-weight: 600;
line-height: 24px;
line-height: 20px;
letter-spacing: 0.15px;
--ig-size: var(--ig-size-medium);

&--disabled {
color: var(--ig-gray-700) !important;
}
}

.tab-content {
display: flex;
flex-direction: column;
gap: 4px;
color: var(--ig-gray-900);
font-size: 14px;
font-weight: 400;
font-family: "aktiv-grotesk", sans-serif;
line-height: 20px;
letter-spacing: 0.25px;

&--disabled {
color: var(--ig-gray-700) !important;
}
}

.tab-actions {
display: flex;
Expand Down Expand Up @@ -192,3 +177,69 @@
transition-delay: 1s;
}
}

.current-tab-info {
display: flex;
justify-content: space-between;
gap: 2rem;
width: 100%;
height: 90px;
padding: 20px 24px;
border: 1px solid #D6D6D6;

.sample-info {
height: 58px;
display: flex;
flex-direction: column;
row-gap: 8px;
}

.tab-description {
font-weight: 300;
font-size: 12px;
line-height: 100%;
letter-spacing: 0%;
}

.sample-actions {
display: flex;
gap: 16px;
align-items: center;
line-height: 100%;
font-size: 14px;

.theme-info {
display: flex;
flex-direction: column;
justify-content: center;
font-weight: 600;
letter-spacing: 0.15px;
height: 40px;
padding-right: 16px;
border-right: 1px solid #D6D6D6;
}

.action-buttons {
display: flex;
justify-content: space-between;
gap: 16px;

.custom-button::part(base) {
color: black;
border-color: #D6D6D6;
text-transform: unset;

igc-icon::part(icon) {
color: black;
}
}
}
}
}

:-webkit-full-screen {
width: 100vw;
height: 100vh;
overflow: auto;
background: white;
}
Loading