Skip to content

Commit

Permalink
Merge with pr_184
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanvicente committed Oct 25, 2023
2 parents 3aca7dd + 8129099 commit 959e1cf
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 67 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/app/core/layout/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<app-mobile-nav></app-mobile-nav>
<div class="userOptions d-none d-md-flex justify-content-end" >
<a [routerLink]="[ '#' ]" [routerLinkActive]="['active']" >
<img src="../../../../assets/img/icon/setting.svg" alt="Settings"/>
{{'components.mainMenu.section6.title' | translate }}
</a>
</div>




Expand Down
49 changes: 25 additions & 24 deletions src/app/core/layout/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
@import "/src/styles/colors";

.userOptions{
padding: 0 1.5rem .5rem 0;
a{
text-decoration: none;

&:hover{
color: $primary;
}
&::before{
-moz-transition: all .15s ease-out;
-webkit-transition: all .15s ease-out;
-ms-transition: all .15s ease-out;
-o-transition: all .15s ease-out;
transition: all .15s ease-out;
content: "";
position: absolute;
left: 0;
display: block;
width: 9px;
height: 9px;
background: transparent;
border-radius: 9px;
}
}
.userOptions {
padding: 0 1.5rem 0.5rem 0;

a {
text-decoration: none;

&:hover {
color: $primary;
}
&::before {
-moz-transition: all 0.15s ease-out;
-webkit-transition: all 0.15s ease-out;
-ms-transition: all 0.15s ease-out;
-o-transition: all 0.15s ease-out;
transition: all 0.15s ease-out;
content: "";
position: absolute;
left: 0;
display: block;
width: 9px;
height: 9px;
background: transparent;
border-radius: 9px;
}
}
}
67 changes: 49 additions & 18 deletions src/app/core/layout/main-menu/main-menu.component.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,51 @@
<nav class="main-menu d-flex flex-column justify-content-between">
<div id="main-options">
<a [routerLinkActive]="['active']" [routerLinkActiveOptions]="{ exact: true }" (click)="openLoginModal()">
{{'components.mainMenu.section7.title' | translate }}
<img src="../../../../assets/img/icon/user.svg" alt="User"/>
</a>
<a [routerLink]="[ 'challenges' ]" [routerLinkActive]="['active']" >{{'components.mainMenu.section1.title' | translate }}</a>
<a [routerLink]="[ '#' ]" [routerLinkActive]="['active']" >{{'components.mainMenu.section2.title' | translate }}</a>
<a [routerLink]="[ '#' ]" [routerLinkActive]="['active']" >Hackathons</a>
<a [routerLink]="[ '#' ]" [routerLinkActive]="['active']" >{{'components.mainMenu.section4.title' | translate }}</a>
<a [routerLink]="[ '#' ]" [routerLinkActive]="['active']" >{{'components.mainMenu.section5.title' | translate }}</a>
</div>
<div id="user-options">
<section id="languages">
<button (click)="changeLanguage('es')">ES</button>
<button id="middleBtn" (click)="changeLanguage('cat')">CAT</button>
<button (click)="changeLanguage('en')">EN</button>
</section>
</div>
<div id="main-options">

<a [routerLink]="['#']" [routerLinkActive]="['active']">Inicio</a>

<a [routerLink]="['challenges']" [routerLinkActive]="['active']">{{
"components.mainMenu.section1.title" | translate
}}</a>
<a [routerLink]="['#']" [routerLinkActive]="['active']">{{
"components.mainMenu.section2.title" | translate
}}</a>
<a [routerLink]="['#']" [routerLinkActive]="['active']">Hackathons</a>
<a [routerLink]="['#']" [routerLinkActive]="['active']">{{
"components.mainMenu.section4.title" | translate
}}</a>
<a [routerLink]="['#']" [routerLinkActive]="['active']">{{
"components.mainMenu.section5.title" | translate
}}</a>

<div
class="userOptions d-none d-md-flex flex-column justify-content-center"
>
<a
class="mb-2"
[routerLink]="['#']"
[routerLinkActive]="['active']"
>
<img
src="../../../../assets/img/icon/setting.svg"
alt="Settings"
/>
{{ "components.mainMenu.section6.title" | translate }}
</a>
<a
[routerLinkActive]="['active']"
[routerLinkActiveOptions]="{ exact: true }"
(click)="openLoginModal()"
>
<img src="../../../../assets/img/icon/user.svg" alt="User" />
{{ "components.mainMenu.section7.title" | translate }}
</a>
</div>
</div>
<div id="user-options">
<section id="languages">
<button (click)="changeLanguage('es')">ES</button>
<button id="middleBtn" (click)="changeLanguage('cat')">CAT</button>
<button (click)="changeLanguage('en')">EN</button>
</section>
</div>
</nav>
53 changes: 34 additions & 19 deletions src/app/core/layout/main-menu/main-menu.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@import "/src/styles/colors";
.main-menu{

.main-menu {
height: 500px;
gap: 175px;
a{

a {
position: relative;
width: max-content;
color: $black-1;
Expand All @@ -19,19 +21,20 @@
-o-transition: all .15s ease-out;
transition: all .15s ease-out;


&.active{
&.active {
padding-right: 0;
padding-left: 15px;
//font-weight: bold;
&::before{

&::before {
background: $primary;
}
}
&:hover{

&:hover {
color: $primary;
}
&::before{

&::before {
-moz-transition: all .15s ease-out;
-webkit-transition: all .15s ease-out;
-ms-transition: all .15s ease-out;
Expand All @@ -47,24 +50,36 @@
border-radius: 9px;
}
}
#user-options{
a{
margin-bottom: 20px;

.userOptions {
margin-top: 100px; // Agregar un margen superior de 100px a .userOptions

a {
// Estilos de tus enlaces dentro de .userOptions
}
}

#user-options {
a {
// Estilos de tus enlaces dentro de #user-options
}
}
#languages{
margin-top: 30px;
button{

#languages {
margin-bottom: 30px;

button {
border: none;
background: transparent;
&:hover{

&:hover {
color: $primary;
}
}
}
#middleBtn{

#middleBtn {
border-left: 1px solid $black-1;
border-right: 1px solid $black-1;
}
}
}
}

0 comments on commit 959e1cf

Please sign in to comment.