This commit is contained in:
Rachid Mrad 2024-05-15 15:40:32 -04:00
parent 58fe2524f3
commit 0a0a251d77
No known key found for this signature in database
3 changed files with 36 additions and 8 deletions

View file

@ -46,6 +46,37 @@ body {
margin-top:units(1); margin-top:units(1);
} }
.usa-nav__primary-username {
display: inline-block;
padding: units(1) units(2);
max-width: 208px;
overflow: hidden;
text-overflow: ellipsis;
@include at-media(desktop) {
padding: units(2);
max-width: 500px;
}
}
@include at-media(desktop) {
.usa-nav__primary-item:not(:first-child) {
position: relative;
}
.usa-nav__primary-item:not(:first-child)::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 0; /* No width since it's a border */
height: 50%;
border-left: solid 1px color('base-light');
transform: translateY(-50%);
}
}
.section--outlined { .section--outlined {
background-color: color('white'); background-color: color('white');
border: 1px solid color('base-lighter'); border: 1px solid color('base-lighter');

View file

@ -151,22 +151,20 @@
<button type="button" class="usa-nav__close"> <button type="button" class="usa-nav__close">
<img src="/public/img/usa-icons/close.svg" role="img" alt="Close" /> <img src="/public/img/usa-icons/close.svg" role="img" alt="Close" />
</button> </button>
<ul class="usa-nav__primary usa-accordion display-flex flex-align-center"> <ul class="usa-nav__primary usa-accordion">
<li class="usa-nav__primary-item"> <li class="usa-nav__primary-item">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<span>{{ user.email }}</span> <span class="usa-nav__primary-username">{{ user.email }}</span>
</li> </li>
{% if has_profile_feature_flag %} {% if has_profile_feature_flag %}
<li class="usa-nav__primary-item display-flex flex-align-center margin-left-2"> <li class="usa-nav__primary-item">
<span class="text-base"> | </span>
{% url 'user-profile' as user_profile_url %} {% url 'user-profile' as user_profile_url %}
<a class="usa-nav-link {% if request.path == user_profile_url %}usa-current{% endif %}" href="{{ user_profile_url }}"> <a class="usa-nav-link {% if request.path == user_profile_url %}usa-current{% endif %}" href="{{ user_profile_url }}">
<span class="text-primary">Your profile</span> <span class="text-primary">Your profile</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li class="usa-nav__primary-item display-flex flex-align-center"> <li class="usa-nav__primary-item">
<span class="text-base"> | </span>
<a href="{% url 'logout' %}"><span class="text-primary">Sign out</span></a> <a href="{% url 'logout' %}"><span class="text-primary">Sign out</span></a>
{% else %} {% else %}
<a href="{% url 'login' %}"><span>Sign in</span></a> <a href="{% url 'login' %}"><span>Sign in</span></a>

View file

@ -32,8 +32,7 @@ Edit your User Profile |
{% include "includes/form_errors.html" with form=form %} {% include "includes/form_errors.html" with form=form %}
<h1>Your profile</h1> <h1>Your profile</h1>
<p>We require that you maintain accurate contact information. The details you provide will only be used to support the administration of .gov and wont be made public.</p> <p>We require that you maintain accurate contact information. The details you provide will only be used to support the administration of .gov and wont be made public.</p>
<h2>Contact information</h2> <p><strong>Please note that updating your contact information here will update the contact information for all domains in your account.</strong> However, it wont affect your Login.gov account information.</p>
<p>Review the details below and update any required information. Note that editing this information wont affect your Login.gov account information.</p>
{% include "includes/required_fields.html" %} {% include "includes/required_fields.html" %}
<form class="usa-form usa-form--large" method="post" novalidate> <form class="usa-form usa-form--large" method="post" novalidate>