This commit is contained in:
Thomas Cole 2023-05-16 13:13:46 -04:00
parent 5b671ea104
commit 29abd4a688
2 changed files with 47 additions and 8 deletions

View File

@ -8,9 +8,11 @@ function replaceTokens(str, data) {
str = str.replace(tokenRegex, (match, token) => {
let value = data;
console.log("Token, " , token)
for (let key of token.split(".")) {
value = value[key];
}
console.log(match, value)
return value;
});

View File

@ -72,8 +72,12 @@
var(--error-container-alt) 10px,
var(--error-container) 10px,
var(--error-container) 20px
)
fixed;
}
) fixed;
p {
margin: 0;
}
.page {
@ -93,20 +97,53 @@
background-color: var(--background);
}
.resume-wrapper {
display: grid;
grid-template-columns: 30% 1fr;
grid-template-rows: 1fr;
grid-auto-columns: 1fr;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas: ". .";
height: 100%;
}
.l-section{
background-color: var(--secondary);
color: var(--on-secondary);
text-align: center;
}
.r-section{
}
.profile-image{
width: 60%;
border-radius: 50%;
margin-top: 16px;
}
@media print {
body{
body {
background: unset;
background-color: var(--background);
};
}
}
</style>
</head>
<body>
<div class="page">
<div class="page-content">
<h1>Hello</h1>
<p>This is some text</p>
<hr>
<div class="resume-wrapper">
<div class="l-section">
<img class="profile-image" src={basics.image} alt="" >
<h1 style="font-weight: normal">{basics.name}</h1>
</div>
<div class="r-section">
</div>
</div>
</div>
</div>
</body>