Skip to content
Merged
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
13 changes: 7 additions & 6 deletions src/app/core/components/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

<div class="footer-socials">
@for (icon of socialIcons; track icon.name) {
<a
class="icon-link"
[href]="icon.url"
[attr.aria-label]="icon.ariaLabel"
>
<i [class]="'osf-icon-' + icon.name"></i>
<a [href]="icon.url" [attr.aria-label]="icon.ariaLabel">
<img
alt="social media icon"
width="37"
height="37"
[ngSrc]="'assets/icons/socials/' + icon.name + '.svg'"
/>
</a>
}
</div>
Expand Down
16 changes: 1 addition & 15 deletions src/app/core/components/footer/footer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,7 @@

.footer-socials {
@include mix.flex-center;
gap: 0.5rem;

.icon-link {
@include mix.flex-center;
height: 2.6rem;
width: 2.6rem;
border-radius: 0.5rem;
background-color: var.$pr-blue-1;
text-decoration: none;

i {
color: white;
font-size: 1.4rem;
}
}
gap: 0.2rem;
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/app/core/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { SocialIcon } from '@osf/shared/entities/social-icon.interface';
import { RouterLink } from '@angular/router';
import { IS_PORTRAIT, IS_XSMALL } from '@shared/utils/breakpoints.tokens';
import { toSignal } from '@angular/core/rxjs-interop';
import { NgOptimizedImage } from '@angular/common';

@Component({
standalone: true,
selector: 'osf-footer',
imports: [RouterLink],
imports: [RouterLink, NgOptimizedImage],
templateUrl: './footer.component.html',
styleUrl: './footer.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
Expand All @@ -20,7 +21,7 @@ export class FooterComponent {

protected readonly socialIcons: SocialIcon[] = [
{
name: 'twitter',
name: 'x',
url: '#',
ariaLabel: 'X (formerly Twitter)',
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/search/search.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="search-container">
<img
ngSrc="assets/icons/system/question-mark.svg"
ngSrc="assets/icons/colored/question-mark.svg"
alt="better-research"
tabindex="0"
role="button"
Expand Down
11 changes: 11 additions & 0 deletions src/assets/icons/colored/cloud-upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/colored/conference-organizers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/colored/design.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/icons/colored/discover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/colored/enhance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/colored/filter-colored.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/icons/colored/filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/icons/colored/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/icons/colored/share.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions src/assets/icons/content/design.svg

This file was deleted.

11 changes: 0 additions & 11 deletions src/assets/icons/content/quotes.svg

This file was deleted.

11 changes: 0 additions & 11 deletions src/assets/icons/content/search.svg

This file was deleted.

Loading