-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create interpolate function and add aboutInfo text
- Loading branch information
1 parent
cfae111
commit 925598a
Showing
7 changed files
with
72 additions
and
58 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
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,7 +1,7 @@ | ||
import styled from 'styled-components' | ||
|
||
const BolderText = styled.span` | ||
font-weight: 500; | ||
font-weight: 600; | ||
` | ||
|
||
export default BolderText |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
Hi there! I’m Marina Kinalone - developer and UX designer with a background in research and education. | ||
I'm currently working at Trustly, a fintech company based in Stockholm, Sweden. | ||
Specializing in {{bold}}frontend development{{/bold}}, I love to craft seamless, user-centered experiences. My approach is grounded in research methods honed during my art history days—always learning efficiently and staying at the tech forefront. | ||
From my career as an educator, I discovered my role as a facilitator, bridging gaps between individuals and knowledge. I thrive on building communities, encouraging personal growth, and fostering creativity through active communication. | ||
Championing diversity and collaboration, I'm recognized as a caring and supportive teammate, propelling projects forward with sharp problem-solving skills. I believe in challenging the status quo to unveil optimal, user-centered solutions that spark innovation. | ||
Beyond coding, I'm a fervent creator exploring my creativity through personal projects, dance, and teaching. I am active in social dance communities, and love to discover the world and take pictures with my analog camera. | ||
My coding assistant is my cat, Stormy. She is especially fond of printers. | ||
I come from France, have lived in California, USA, and now live in Stockholm, Sweden. | ||
*/ | ||
|
||
export const aboutInfo = [ | ||
"I'm currently working at {{bold}}Trustly{{/bold}}, a fintech company based in Stockholm, Sweden.", | ||
'{{bold}}Specializing in frontend development, I love to craft seamless, user-centered experiences{{/bold}}. My approach is grounded in research methods honed during my art history day — always {{bold}}learning efficiently{{/bold}} and {{bold}}staying at the tech forefront{{/bold}}.', | ||
'From my career as an educator, I discovered my role as a facilitator, bridging gaps between individuals and knowledge. {{bold}}I thrive on building communities, encouraging personal growth, and fostering creativity through active communication{{/bold}}.', | ||
"Championing diversity and collaboration, {{bold}}I'm recognized as a caring and supportive teammate, propelling projects forward with sharp problem-solving skills{{/bold}}. I believe in challenging the status quo to unveil optimal, user-centered solutions that spark innovation.", | ||
"Beyond coding, {{bold}}I'm a fervent creator exploring my creativity through personal projects, dance, and teaching{{/bold}}. I am active in social dance communities, and love to discover the world and take pictures with my analog camera.", | ||
'My coding assistant is my cat, Stormy. She is especially fond of printers.', | ||
'I come from France, have lived in California, USA, and {{bold}}now live in Stockholm, Sweden{{/bold}}.', | ||
] |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
import BolderText from '../components/ui/BolderText' | ||
|
||
const interpolate = (text: string) => { | ||
const parts = text.split(/({{bold}}|{{\/bold}})/) | ||
|
||
let isBold = false | ||
const interpolatedText = parts.map((part, index) => { | ||
if (part === '{{bold}}') { | ||
isBold = true | ||
return null | ||
} else if (part === '{{/bold}}') { | ||
isBold = false | ||
return null | ||
} else { | ||
return isBold ? <BolderText key={index}>{part}</BolderText> : part | ||
} | ||
}) | ||
|
||
return <React.Fragment>{interpolatedText}</React.Fragment> | ||
} | ||
|
||
export default interpolate |