Skip to content

Commit 7143f5c

Browse files
committed
fix resume css
1 parent 774975e commit 7143f5c

File tree

2 files changed

+66
-73
lines changed

2 files changed

+66
-73
lines changed

‎src/Presentations/Windows/Features/ResumesTemplate/Blazor/Components/DotNetTemplate.razor‎

Lines changed: 65 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@
1414
<i class="bx bx-menu" id="menu-icon"></i>
1515

1616
<nav class="navbar">
17-
<a href="#home" class="active">Home</a>
18-
<a href="#education">Education</a>
19-
<a href="#services">Services</a>
20-
<a href="#contact">Contact</a>
17+
@foreach (var page in ViewModel.Pages)
18+
{
19+
<a href="@(page.Value)"
20+
class="@((ViewModel.SelectedPageIndex == page.Key) ? "active" : "")"
21+
onclick="@(() => UpdatePageIndex(page.Key))">
22+
@(char.ToUpper(page.Value[1]) + page.Value.Substring(2))
23+
</a>
24+
}
2125
</nav>
2226
</header>
2327

2428
<section class="home-content" id="home">
25-
<div>
26-
<h1>Hi, I'm <span>Nghia Duong</span></h1>
29+
<div class="user-info">
30+
<h1>Hi, I'm <span>@ViewModel.DisplayName</span></h1>
2731
<h3 class="text-animation">Position: <span></span></h3>
2832
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
2933

@@ -49,7 +53,7 @@
4953
</div>
5054

5155
<div class="home-img">
52-
<img src="https://i.pinimg.com/550x/62/82/41/628241b01dc7c4fa2bea6ea702713a87.jpg" alt="" />
56+
<img src="https://i.pinimg.com/550x/62/82/41/628241b01dc7c4fa2bea6ea702713a87.jpg" alt="" width="300" height="300" />
5357
</div>
5458
</section>
5559

@@ -175,7 +179,7 @@
175179
@@2024 Totechs. All rights reserved.
176180
</p>
177181
</footer>
178-
</body>
182+
</body>
179183

180184
<style>
181185
:root {
@@ -268,13 +272,11 @@
268272
display: none;
269273
}
270274
271-
.home {
275+
.user-info {
272276
display: flex;
273277
flex-direction: column;
274-
justify-content: center;
275-
align-items: center;
276-
text-align: center;
277-
gap: 30px
278+
text-align: left;
279+
min-width: 50%;
278280
}
279281
280282
.home-content {
@@ -300,6 +302,10 @@
300302
font-weight: 600;
301303
}
302304
305+
.home-content p {
306+
word-wrap: break-word;
307+
}
308+
303309
.home-img {
304310
border-radius: 50%;
305311
}
@@ -309,8 +315,6 @@
309315
box-shadow: 0 0 25px var(--primary-color);
310316
cursor: pointer;
311317
transition: 0.4s ease-in-out;
312-
width: 240px;
313-
height: 240px;
314318
}
315319
316320
.home-img img:hover {
@@ -363,22 +367,21 @@
363367
display: flex;
364368
gap: 20px;
365369
flex-direction: row;
366-
align-items: center;
367370
}
368371
369-
.btn-group a:nth-of-type(2) {
370-
background-color: black;
371-
color: var(--primary-color);
372-
border: 2px solid var(--primary-color);
373-
box-shadow: 0 0 25px transparent;
374-
}
375-
376-
.btn-group a:nth-of-type(2):hover {
377-
background-color: var(--primary-color);
378-
color: black;
379-
box-shadow: 0 0 25px var(--primary-color);
372+
.btn-group a:nth-of-type(2) {
373+
background-color: black;
374+
color: var(--primary-color);
375+
border: 2px solid var(--primary-color);
376+
box-shadow: 0 0 25px transparent;
380377
}
381378
379+
.btn-group a:nth-of-type(2):hover {
380+
background-color: var(--primary-color);
381+
color: black;
382+
box-shadow: 0 0 25px var(--primary-color);
383+
}
384+
382385
.text-animation {
383386
font-size: 30px;
384387
font-weight: 600;
@@ -407,62 +410,41 @@
407410
}
408411
409412
@@keyframes cursor {
410-
to
411-
412-
{
413-
border-left: 2px solid var(--primary-color);
414-
}
415-
413+
to {
414+
border-left: 2px solid var(--primary-color);
415+
}
416416
}
417417
418418
@@keyframes words {
419-
0%, 20%
420-
421-
{
422-
content: "Web Developer";
423-
}
424-
425-
21%,
426-
40% {
427-
content: "Frontend Developer";
428-
}
419+
0%, 20% {
420+
content: "Web Developer";
421+
}
429422
430-
41%,
431-
60% {
432-
content: "Backend Developer";
433-
}
423+
21%, 40% {
424+
content: "Frontend Developer";
425+
}
434426
435-
61%,
436-
80% {
437-
content: "Full Stack Developer";
438-
}
427+
41%, 60% {
428+
content: "Backend Developer";
429+
}
439430
440-
81%,
441-
100% {
442-
content: "UI / UX Designer";
443-
}
431+
61%, 80% {
432+
content: "Full Stack Developer";
433+
}
444434
435+
81%, 100% {
436+
content: "UI / UX Designer";
437+
}
445438
}
446439
447440
@@keyframes typing {
448-
10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95%
449-
450-
{
451-
width: 0px;
452-
}
453-
454-
5%,
455-
20%,
456-
25%,
457-
40%,
458-
45%,
459-
60%,
460-
65%,
461-
80%,
462-
85% {
463-
width: calc(100% + 8px);
464-
}
441+
10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
442+
width: 0px;
443+
}
465444
445+
5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
446+
width: calc(100% + 8px);
447+
}
466448
}
467449
468450
.education-content {
@@ -595,6 +577,7 @@
595577
justify-content: left;
596578
align-items: baseline;
597579
padding: 50px;
580+
gap: 15px;
598581
}
599582
600583
.service-info h4 {
@@ -678,4 +661,14 @@
678661
font-size: 16px;
679662
color: white;
680663
}
664+
665+
666+
@@media only screen and (max-width: 1000px) {
667+
.home-content h3 {
668+
display: flex;
669+
flex-direction: column;
670+
align-items: start;
671+
}
672+
}
673+
681674
</style>

‎src/Presentations/Windows/MAUIsland.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460

461461
<ItemGroup>
462462
<EmbeddedResource Include="appsettings.Development.json">
463-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
463+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
464464
</EmbeddedResource>
465465
<EmbeddedResource Include="Features\Gallery\Pages\BuiltIn\Helpers\AppSettingsJson\JsonFiles\appsettings.json">
466466
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)