Skip to content

Commit 9d50789

Browse files
committed
feat: refactor Contact pages and icons
1 parent 514d77f commit 9d50789

29 files changed

Lines changed: 468 additions & 212 deletions

src/app/components/contact/contact.component.html

Lines changed: 24 additions & 170 deletions
Large diffs are not rendered by default.

src/app/components/contact/contact.component.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
import { IconFacebookComponent } from '../shared/icons/icon-facebook/icon-facebook.component';
3+
import { IconGdgComponent } from '../shared/icons/icon-gdg/icon-gdg.component';
4+
import { IconGithubComponent } from '../shared/icons/icon-github/icon-github.component';
5+
import { IconInstagramComponent } from '../shared/icons/icon-instagram/icon-instagram.component';
6+
import { IconLinkedinComponent } from '../shared/icons/icon-linkedin/icon-linkedin.component';
7+
import { IconMastodonComponent } from '../shared/icons/icon-mastodon/icon-mastodon.component';
8+
import { IconPsfComponent } from '../shared/icons/icon-psf/icon-psf.component';
9+
import { IconPyconItaliaComponent } from '../shared/icons/icon-pycon-italia/icon-pycon-italia.component';
10+
import { IconPythonItaliaComponent } from '../shared/icons/icon-python-italia/icon-python-italia.component';
11+
import { IconTelegramComponent } from '../shared/icons/icon-telegram/icon-telegram.component';
12+
import { IconYoutubeComponent } from '../shared/icons/icon-youtube/icon-youtube.component';
213

314
@Component({
415
selector: 'app-contact',
5-
imports: [],
16+
imports: [
17+
IconTelegramComponent,
18+
IconFacebookComponent,
19+
IconLinkedinComponent,
20+
IconYoutubeComponent,
21+
IconInstagramComponent,
22+
IconMastodonComponent,
23+
IconGithubComponent,
24+
IconPsfComponent,
25+
IconPythonItaliaComponent,
26+
IconPyconItaliaComponent,
27+
IconGdgComponent,
28+
],
629
templateUrl: './contact.component.html',
730
changeDetection: ChangeDetectionStrategy.OnPush,
831
})
Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
<section id="meetup" class="py-16 px-4 text-center bg-[var(--surface)]">
1+
<section id="meetup" class="bg-(--surface) px-4 py-16 text-center">
22
<h2>Meetup</h2>
3-
<p class="mx-auto mb-6 max-w-[38rem]">
4-
Organizziamo incontri periodici per condividere conoscenza, esperienze e
5-
passione per Python. Chiunque sia curioso è il benvenuto, dal principiante
6-
all'esperto.
3+
<p class="mx-auto mb-6 max-w-152">
4+
Organizziamo incontri periodici per condividere conoscenza, esperienze e passione per Python. Chiunque sia curioso è
5+
il benvenuto, dal principiante all'esperto.
76
</p>
87
<a
98
id="meetup-link"
@@ -13,19 +12,6 @@ <h2>Meetup</h2>
1312
role="button"
1413
aria-label="Meetup"
1514
>
16-
<svg
17-
aria-hidden="true"
18-
focusable="false"
19-
role="img"
20-
xmlns="http://www.w3.org/2000/svg"
21-
height="1.33em"
22-
viewBox="0 0 24 24"
23-
>
24-
<title>Meetup</title>
25-
<path
26-
fill="currentColor"
27-
d="M15.11 2.1c.13 0 .26.02.38.04.34.04.67.17.94.39.36.28.57.5.9.82.5.47.87.19 1.12.04.44-.25.78-.46 2.06-.43 1.33.02 2.85.5 3.17 2.75.35 2.51-4.11 8.97-3.8 11.97.22 2.11 3.8.63 4.1 2.55.39 2.5-4.47 1.58-5.58 1.03a4.26 4.26 0 0 1-2.34-4.72c.33-1.44 3.55-7.32 3.67-8.22.12-.92-.37-1-.68-1.02-.4-.02-.7.17-1.1.76-.35.53-4.35 8.55-4.7 9.2-.62 1.17-1.4 1.45-2.18 1.41-1.15-.06-1.67-.67-1.5-1.77.09-.65 2.63-6.38 2.76-7.27.08-.56-.03-1.15-.58-1.43-.55-.28-1.2.15-1.39.48-.26.45-3.86 9.84-4.25 10.54-.66 1.2-1.36 1.59-2.4 1.64-2.49.11-4.33-1.93-3.52-4.43.37-1.11 2.76-9.56 3.97-11.71.81-1.45 3.07-2.55 4.64-1.87.8.35 1.93.92 2.26 1.06.77.34 1.59-.58 1.91-.86.33-.28.63-.58 1.03-.75a3 3 0 0 1 1.11-.2Z"
28-
/></svg
29-
>Unisciti a noi</a
15+
<app-icon-meetup />Unisciti a noi</a
3016
>
3117
</section>

src/app/components/meetup/meetup.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { ChangeDetectionStrategy, Component } from "@angular/core";
2+
import { IconMeetupComponent } from "../shared/icons/icon-meetup/icon-meetup.component";
23

34
@Component({
45
selector: "app-meetup",
6+
imports: [IconMeetupComponent],
57
templateUrl: "./meetup.component.html",
68
changeDetection: ChangeDetectionStrategy.OnPush,
79
})
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { IconFacebookComponent } from './icon-facebook.component';
3+
4+
describe('IconFacebookComponent', () => {
5+
let component: IconFacebookComponent;
6+
let fixture: ComponentFixture<IconFacebookComponent>;
7+
8+
beforeEach(async () => {
9+
await TestBed.configureTestingModule({
10+
imports: [IconFacebookComponent],
11+
}).compileComponents();
12+
13+
fixture = TestBed.createComponent(IconFacebookComponent);
14+
component = fixture.componentInstance;
15+
fixture.detectChanges();
16+
});
17+
18+
it('should create', () => {
19+
expect(component).toBeTruthy();
20+
});
21+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-icon-facebook',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
6+
template: `
7+
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" height="1.33em" viewBox="0 0 24 24">
8+
<title>Facebook</title>
9+
<path fill="currentColor" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
10+
</svg>
11+
`,
12+
})
13+
export class IconFacebookComponent {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { IconGdgComponent } from './icon-gdg.component';
3+
4+
describe('IconGdgComponent', () => {
5+
let component: IconGdgComponent;
6+
let fixture: ComponentFixture<IconGdgComponent>;
7+
8+
beforeEach(async () => {
9+
await TestBed.configureTestingModule({
10+
imports: [IconGdgComponent],
11+
}).compileComponents();
12+
13+
fixture = TestBed.createComponent(IconGdgComponent);
14+
component = fixture.componentInstance;
15+
fixture.detectChanges();
16+
});
17+
18+
it('should create', () => {
19+
expect(component).toBeTruthy();
20+
});
21+
});
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-icon-gdg',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
6+
template: `
7+
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" height="1.33em" viewBox="0 0 24 24">
8+
<title>Google Developer Group Catania</title>
9+
<path fill="none" stroke="currentColor" stroke-width="1" d="M15.37 17.62c.32 0 .63-.1.95-.26l6.74-3.9-4.69-1.74L14.42 14a1.94 1.94 0 0 0-.68 2.63c.37.69 1 1 1.63 1zM5.8 12.21l3.9-2.27c.89-.52 1.2-1.68.68-2.63a1.94 1.94 0 0 0-2.64-.68L1 10.53Z"/>
10+
<path fill="currentColor" d="M22.11 13.95c.69 0 1.32-.36 1.63-.94.53-.9.22-2.11-.68-2.64l-6.74-3.9c-.9-.52-2.1-.2-2.63.69-.53.9-.22 2.1.68 2.63l6.74 3.9c.32.16.69.26 1 .26zM8.68 17.8c.69 0 1.32-.37 1.63-.95.53-.9.22-2.1-.68-2.63l-6.74-3.9c-.9-.53-2.1-.21-2.63.69-.53.89-.22 2.1.68 2.63l6.74 3.9c.37.2.69.26 1 .26z"/>
11+
</svg>
12+
`,
13+
})
14+
export class IconGdgComponent {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { IconGithubComponent } from './icon-github.component';
3+
4+
describe('IconGithubComponent', () => {
5+
let component: IconGithubComponent;
6+
let fixture: ComponentFixture<IconGithubComponent>;
7+
8+
beforeEach(async () => {
9+
await TestBed.configureTestingModule({
10+
imports: [IconGithubComponent],
11+
}).compileComponents();
12+
13+
fixture = TestBed.createComponent(IconGithubComponent);
14+
component = fixture.componentInstance;
15+
fixture.detectChanges();
16+
});
17+
18+
it('should create', () => {
19+
expect(component).toBeTruthy();
20+
});
21+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-icon-github',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
6+
template: `
7+
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" height="1.33em" viewBox="0 0 24 24">
8+
<title>GitHub</title>
9+
<path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
10+
</svg>
11+
`,
12+
})
13+
export class IconGithubComponent {}

0 commit comments

Comments
 (0)