-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
routing and more components and styling
- Loading branch information
1 parent
ed614c6
commit 2af19d4
Showing
20 changed files
with
416 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
.wrapper { | ||
display: flex; | ||
min-height: 80vh; | ||
} | ||
|
||
.sidenav { | ||
.sidenav-spacer { | ||
width: 20dvw; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<app-header></app-header> | ||
<div class="wrapper"> | ||
<div class="sidenav"> | ||
<app-sidenav></app-sidenav> | ||
<div class="sidenav-spacer"> | ||
</div> | ||
<div class="content"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</div> | ||
</div> | ||
<app-footer></app-footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import { Routes } from '@angular/router'; | ||
import { HomeComponent } from './components/home/home.component'; | ||
import { AboutComponent } from './components/about/about.component'; | ||
import { AboutAngularComponent } from './components/about-angular/about-angular.component'; | ||
|
||
export const routes: Routes = [ | ||
{ path: '', component: HomeComponent }, | ||
{path: 'about', component: AboutComponent}, | ||
{ path: '', pathMatch: 'full', redirectTo: 'home'}, | ||
{ path: 'home', component: HomeComponent }, | ||
{ path: 'about', component: AboutComponent }, | ||
{ path: 'about-angular', component: AboutAngularComponent }, | ||
{ path: '**', pathMatch: 'full', redirectTo: ''} | ||
]; |
179 changes: 179 additions & 0 deletions
179
github-option-three-app/src/app/components/about-angular/about-angular.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
:host { | ||
--f4f4f4: oklch(95% 0.042 0); | ||
--bright-blue: oklch(0.57 0.24 266.03); | ||
--electric-violet: oklch(53.18% 0.28 296.97); | ||
--french-violet: oklch(0.59 0.3 306.65); | ||
--vivid-pink: oklch(69.02% 0.277 332.77); | ||
--hot-red: oklch(61.42% 0.238 15.34); | ||
--orange-red: oklch(63.32% 0.24 31.68); | ||
|
||
--gray-900: oklch(19.37% 0.006 300.98); | ||
--gray-700: oklch(36.98% 0.014 302.71); | ||
--gray-400: oklch(70.9% 0.015 304.04); | ||
|
||
--red-to-pink-to-purple-vertical-gradient: linear-gradient( | ||
180deg, | ||
var(--orange-red) 0%, | ||
var(--vivid-pink) 50%, | ||
var(--electric-violet) 100% | ||
); | ||
|
||
--red-to-pink-to-purple-horizontal-gradient: linear-gradient( | ||
90deg, | ||
var(--orange-red) 0%, | ||
var(--vivid-pink) 50%, | ||
var(--electric-violet) 100% | ||
); | ||
|
||
--pill-accent: var(--bright-blue); | ||
|
||
display: flex; | ||
flex-wrap: wrap; | ||
flex-direction: column; | ||
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", | ||
"Segoe UI Symbol"; | ||
box-sizing: border-box; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
h1 { | ||
font-size: 2rem; | ||
font-weight: 500; | ||
line-height: 3rem; | ||
letter-spacing: -0.125rem; | ||
margin: 0; | ||
font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", | ||
Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", | ||
"Segoe UI Symbol"; | ||
} | ||
|
||
p { | ||
color: var(--gray-400); | ||
margin: 0; | ||
} | ||
|
||
main { | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 1rem; | ||
box-sizing: inherit; | ||
position: relative; | ||
} | ||
|
||
.angular-logo { | ||
max-width: 9.2rem; | ||
} | ||
|
||
.content { | ||
display: flex; | ||
justify-content: space-around; | ||
width: 100%; | ||
max-width: 50rem; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.content h1 { | ||
margin-top: 1rem; | ||
} | ||
|
||
.content p { | ||
margin-top: 0.5rem; | ||
} | ||
|
||
.content .left-side { | ||
max-width: 65%; | ||
} | ||
|
||
.divider { | ||
width: 1px; | ||
background: var(--red-to-pink-to-purple-vertical-gradient); | ||
margin-inline: 0.5rem; | ||
} | ||
|
||
.content .right-side { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
.pill-group { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
flex-wrap: wrap; | ||
gap: 2rem; | ||
} | ||
|
||
.pill { | ||
display: flex; | ||
align-items: center; | ||
--pill-accent: var(--bright-blue); | ||
background: color-mix(in srgb, var(--pill-accent) 20%, transparent); | ||
color: var(--pill-accent); | ||
padding-inline: 0.75rem; | ||
padding-block: 0.375rem; | ||
border-radius: 2.75rem; | ||
border: 0; | ||
transition: background 0.3s ease; | ||
font-family: var(--inter-font); | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 1.4rem; | ||
letter-spacing: -0.00875rem; | ||
text-decoration: none; | ||
} | ||
|
||
.pill:hover { | ||
background: color-mix(in srgb, var(--pill-accent) 15%, transparent); | ||
} | ||
|
||
.pill-group .pill:nth-child(6n + 1) { | ||
--pill-accent: var(--bright-blue); | ||
} | ||
.pill-group .pill:nth-child(6n + 2) { | ||
--pill-accent: var(--french-violet); | ||
} | ||
.pill-group .pill:nth-child(6n + 3), | ||
.pill-group .pill:nth-child(6n + 4), | ||
.pill-group .pill:nth-child(6n + 5) { | ||
--pill-accent: var(--hot-red); | ||
} | ||
|
||
.pill-group svg { | ||
margin-inline-start: 0.25rem; | ||
} | ||
|
||
.social-links { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.73rem; | ||
margin-top: 1.5rem; | ||
} | ||
|
||
.social-links path { | ||
transition: fill 0.3s ease; | ||
fill: var(--gray-400); | ||
} | ||
|
||
.social-links a:hover svg path { | ||
fill: var(--gray-900); | ||
} | ||
|
||
@media screen and (max-width: 650px) { | ||
.content { | ||
flex-direction: column; | ||
width: max-content; | ||
} | ||
|
||
.divider { | ||
height: 1px; | ||
width: 100%; | ||
background: var(--red-to-pink-to-purple-horizontal-gradient); | ||
margin-block: 1.5rem; | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
github-option-three-app/src/app/components/about-angular/about-angular.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<main class="main"> | ||
<div class="content"> | ||
<div class="left-side"> | ||
<!-- <svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 982 239" | ||
fill="none" | ||
class="angular-logo" | ||
></svg> --> | ||
<img class="angular-logo" src="https://raw.githubusercontent.com/monacodelisa/angular-to-github-option-three-ci-cd/main/github-option-three-app/src/assets/svg-to-png/angular-new-logo-full.png" alt="angular new logo"> | ||
<h1>More About Angular</h1> | ||
<p>Congratulations! Your app is running. 🎉</p> | ||
</div> | ||
<div class="divider" role="separator" aria-label="Divider"></div> | ||
<div class="right-side"> | ||
<div class="pill-group"> | ||
@for (item of [ | ||
{ title: 'Explore the Docs', link: 'https://angular.dev' }, | ||
{ title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, | ||
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, | ||
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, | ||
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, | ||
]; track item.title) { | ||
<a | ||
class="pill" | ||
[href]="item.link" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<span>{{ item.title }}</span> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
height="14" | ||
viewBox="0 -960 960 960" | ||
width="14" | ||
fill="currentColor" | ||
> | ||
<path | ||
d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z" | ||
/> | ||
</svg> | ||
</a> | ||
} | ||
</div> | ||
<div class="social-links"> | ||
<a | ||
href="https://github.com/angular/angular" | ||
aria-label="Github" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<svg | ||
width="25" | ||
height="24" | ||
viewBox="0 0 25 24" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
alt="Github" | ||
> | ||
<path | ||
d="M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z" | ||
/> | ||
</svg> | ||
</a> | ||
<a | ||
href="https://twitter.com/angular" | ||
aria-label="Twitter" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<svg | ||
width="25" | ||
height="20" | ||
viewBox="0 0 25 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
alt="Twitter" | ||
> | ||
<path | ||
d="M8.04524 20C17.3335 20 22.4138 12.3047 22.4138 5.63144C22.4138 5.41287 22.4138 5.19529 22.399 4.97869C23.3874 4.26381 24.2405 3.37867 24.9185 2.3647C23.9969 2.77329 23.0192 3.04112 22.018 3.15923C23.0723 2.52818 23.8613 1.53552 24.2382 0.366057C23.2469 0.954335 22.1624 1.36889 21.0315 1.59182C20.2701 0.782212 19.2631 0.246107 18.1663 0.0664704C17.0695 -0.113166 15.9441 0.0736804 14.9642 0.598096C13.9843 1.12251 13.2046 1.95526 12.7457 2.96748C12.2868 3.9797 12.1742 5.11495 12.4255 6.19756C10.4178 6.09685 8.45366 5.57507 6.66064 4.66609C4.86763 3.75712 3.28579 2.48127 2.01781 0.921344C1.37203 2.03306 1.17424 3.34911 1.46472 4.60154C1.75519 5.85397 2.51208 6.9486 3.58128 7.66257C2.77759 7.63903 1.9914 7.42221 1.28924 7.03049V7.09449C1.28956 8.26041 1.69316 9.39034 2.4316 10.2926C3.17003 11.1949 4.19783 11.8139 5.34067 12.0448C4.59721 12.2476 3.81715 12.2772 3.06045 12.1315C3.38327 13.1348 4.01156 14.0122 4.85746 14.641C5.70337 15.2698 6.72461 15.6185 7.77842 15.6384C6.73139 16.4614 5.53237 17.0699 4.24995 17.4291C2.96753 17.7882 1.62687 17.891 0.304688 17.7316C2.61411 19.2136 5.30121 19.9997 8.04524 19.9961" | ||
/> | ||
</svg> | ||
</a> | ||
<a | ||
href="https://www.youtube.com/channel/UCbn1OgGei-DV7aSRo_HaAiw" | ||
aria-label="Youtube" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<svg | ||
width="29" | ||
height="20" | ||
viewBox="0 0 29 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
alt="Youtube" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z" | ||
/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
|
23 changes: 23 additions & 0 deletions
23
github-option-three-app/src/app/components/about-angular/about-angular.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AboutAngularComponent } from './about-angular.component'; | ||
|
||
describe('AboutAngularComponent', () => { | ||
let component: AboutAngularComponent; | ||
let fixture: ComponentFixture<AboutAngularComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [AboutAngularComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(AboutAngularComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
github-option-three-app/src/app/components/about-angular/about-angular.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-about-angular', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './about-angular.component.html', | ||
styleUrl: './about-angular.component.css' | ||
}) | ||
export class AboutAngularComponent { | ||
|
||
} |
Oops, something went wrong.