Skip to content

Commit f2cdc50

Browse files
committed
feat: visual enhancements - animated download buttons, social icons positioning, translation warnings
1 parent aea0e2b commit f2cdc50

9 files changed

Lines changed: 76 additions & 22 deletions

File tree

portfolio/src/app/[locale]/about/page.tsx

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,31 @@ export default async function About() {
214214
)}
215215
</Row>
216216
)}
217-
<Row paddingTop="m" gap="8" className={styles.blockAlign}>
218-
<StaticDownloadButton
219-
href="/Dominik_Karczewski_Backend_Developer.pdf"
220-
label={t("downloadCV")}
221-
prefixIcon="fileText"
222-
/>
223-
<StaticDownloadButton
224-
href="/Dominik_Karczewski_Cover_Letter.pdf"
225-
label={t("downloadCoverLetter")}
226-
prefixIcon="mail"
227-
/>
217+
<Row paddingTop="m" gap="16" className={styles.blockAlign}>
218+
<div
219+
style={{
220+
animation: 'subtlePulse 3s ease-in-out infinite',
221+
position: 'relative',
222+
}}
223+
>
224+
<StaticDownloadButton
225+
href="/Dominik_Karczewski_Backend_Developer.pdf"
226+
label={t("downloadCV")}
227+
prefixIcon="fileText"
228+
/>
229+
</div>
230+
<div
231+
style={{
232+
animation: 'subtlePulse 3s ease-in-out 0.5s infinite',
233+
position: 'relative',
234+
}}
235+
>
236+
<StaticDownloadButton
237+
href="/Dominik_Karczewski_Cover_Letter.pdf"
238+
label={t("downloadCoverLetter")}
239+
prefixIcon="mail"
240+
/>
241+
</div>
228242
</Row>
229243
</Column>
230244

portfolio/src/app/[locale]/blog/[slug]/page.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@ export default async function Blog({ params }: { params: Promise<{ slug: string
8686
<Row fillWidth horizontal="center">
8787
<Column as="section" maxWidth="m" horizontal="center" gap="l" paddingTop="24">
8888
{!hasContent && (
89-
<Row fillWidth padding="16" background="warning-alpha-medium" radius="m" horizontal="center" marginBottom="l">
89+
<Row
90+
fillWidth
91+
maxWidth="l"
92+
padding="16"
93+
background="warning-alpha-medium"
94+
radius="m"
95+
horizontal="center"
96+
marginBottom="l"
97+
>
9098
<Text>{tCommon('translationInProgress')}</Text>
9199
</Row>
92100
)}

portfolio/src/app/[locale]/blog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export default async function Blog() {
4747
{!hasFullTranslation && (
4848
<Row
4949
fillWidth
50+
maxWidth="l"
5051
padding="16"
5152
background="warning-alpha-medium"
5253
radius="m"
5354
horizontal="center"
5455
marginBottom="l"
55-
marginX="24"
5656
>
5757
<Text>{tCommon('translationInProgress')}</Text>
5858
</Row>

portfolio/src/app/[locale]/work/[slug]/page.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,15 @@ export default async function Project({
7979
return (
8080
<Column as="section" maxWidth="m" horizontal="center" gap="l">
8181
{!hasContent && (
82-
<Row fillWidth padding="16" background="warning-alpha-medium" radius="m" horizontal="center" marginBottom="l">
82+
<Row
83+
fillWidth
84+
maxWidth="l"
85+
padding="16"
86+
background="warning-alpha-medium"
87+
radius="m"
88+
horizontal="center"
89+
marginBottom="l"
90+
>
8391
<Text>{tCommon('translationInProgress')}</Text>
8492
</Row>
8593
)}

portfolio/src/app/[locale]/work/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default async function Work() {
7878
{!hasFullTranslation && (
7979
<Row
8080
fillWidth
81+
maxWidth="l"
8182
padding="16"
8283
background="warning-alpha-medium"
8384
radius="m"

portfolio/src/components/Header.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export const Header = () => {
8484
const H = (p: string) => normalize(withLocale(p, locale));
8585
const isAt = (p: string) => pathname === H(p);
8686
const isUnder = (p: string) => pathname === H(p) || pathname.startsWith(H(p) + "/");
87+
const isAboutPage = pathname.endsWith('/about');
88+
8789

8890
const isHomeActive = () => {
8991
const homeLocalized = H("/");
@@ -119,8 +121,7 @@ export const Header = () => {
119121
<Fade s={{hide: true}} fillWidth position="fixed" height="80" zIndex={9}/>
120122
<Fade hide s={{hide: false}} fillWidth position="fixed" bottom="0" to="top" height="80" zIndex={9}/>
121123

122-
{/* Osobna sekcja - Social icons po lewej (pod barem) */}
123-
{display.location && social.length > 0 && (
124+
{display.location && social.length > 0 && !isAboutPage && (
124125
<Column
125126
position="fixed"
126127
style={{
@@ -138,7 +139,7 @@ export const Header = () => {
138139
<div
139140
key={item.name}
140141
style={{
141-
transform: 'scale(1.3)', // <--- Skalowanie całego buttona
142+
transform: 'scale(1.3)',
142143
transformOrigin: 'center'
143144
}}
144145
>

portfolio/src/messages/da/about.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"tableOfContent": { "display": true, "subItems": true },
77
"avatar": { "display": true },
88
"calendar": { "display": false, "link": "", "cta": "" },
9-
"downloadCV": "Download CV",
9+
"downloadCV": "Hent CV",
1010
"generatingCV": "Genererer...",
11-
"downloadCoverLetter": "Download følgebrev",
11+
"downloadCoverLetter": "Hent følgebrev",
1212

1313
"intro": {
1414
"display": true,

portfolio/src/messages/nl/about.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"tableOfContent": { "display": true, "subItems": true },
77
"avatar": { "display": true },
88
"calendar": { "display": false, "link": "", "cta": "" },
9-
"downloadCV": "Download CV",
9+
"downloadCV": "CV downloaden",
1010
"generatingCV": "Genereren...",
11-
"downloadCoverLetter": "Download motivatiebrief",
11+
"downloadCoverLetter": "Motivatiebrief downloaden",
1212

1313
"intro": {
1414
"display": true,

portfolio/src/resources/custom.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,26 @@
5151
--scheme-neutral-600-30: rgba(137,152,159,0.3);
5252
--scheme-neutral-600-50: rgba(137,152,159,0.5);
5353
/*
54-
}*/
54+
}*/
55+
@keyframes subtlePulse {
56+
0%, 100% {
57+
opacity: 1;
58+
transform: scale(1);
59+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
60+
border-radius: 12px; /* <--- DODANE */
61+
}
62+
50% {
63+
opacity: 0.85;
64+
transform: scale(1.05);
65+
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
66+
border-radius: 12px; /* <--- DODANE */
67+
}
68+
}
69+
70+
/* Hover dla dodatkowego efektu */
71+
div:has(> a[href*=".pdf"]):hover {
72+
transform: translateY(-4px) !important;
73+
filter: brightness(1.1) saturate(1.2);
74+
transition: all 0.3s ease;
75+
border-radius: 12px;
76+
}

0 commit comments

Comments
 (0)