Skip to content
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

Looks/migrate welcome component #783

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
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: 8 additions & 8 deletions src/app/welcome/welcome.component.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<section class="welcome" fxFlex fxLayout="row">
<f-hero-sidebar fxHide.lt-md fxFlexAlign="start"></f-hero-sidebar>
<!-- <section class="content" fxFlex.gt-sm > -->
<section class="content" fxFlex.gt-sm fxLayout.gt-sm="column" [ngClass.gt-sm]="'large'">
<section class="welcome flex flex-row sm:h-screen">
<f-hero-sidebar class="sidebar self-start flex-col h-full"></f-hero-sidebar>
<section class="content flex flex-col sm:h-screen">
<div class="container">
<div class="subcontainer">
<div class="wordmark" fxLayout="row" fxLayoutAlign="start center" fxHide.gt-sm fxFlexAlign="start">
<div class="wordmark flex-row place-content-start">
<img src="../../../assets/images/logo-bw.svg" width="40px" alt="Homepage Logo" />
<p>{{ externalName.value }}</p>
</div>
<h1 class="welcome-heading" fxFlexAlign="start">Welcome to {{ externalName.value }}</h1>
<h1 class="welcome-heading flex flex-row place-content-start">
Welcome to {{ externalName.value }}
</h1>
<f-edit-profile-form mode="create"></f-edit-profile-form>
</div>
</div>
</section>
<!-- </section> -->
</section>
</section>
19 changes: 19 additions & 0 deletions src/styles/common/hero-sidebar-layout.scss
Original file line number Diff line number Diff line change
@@ -58,3 +58,22 @@ f-welcome .container {
.welcome {
width: 100%;
}

.sidebar {
display: flex; /* Initially visible */
}

.wordmark {
display: none; /* Initially invisible */
}

Comment on lines +62 to +69
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these be in the TW classes?

/* Sidebar and Wordmark Media query for screens 960px and below */

@media (max-width: 959px) {
.sidebar {
display: none; /* Hide the element */
}
.wordmark{
display: flex; /* Show the element */
}
}