Skip to content

Commit

Permalink
AJUSTES PÁGINA MINHA CONTA
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagosilva1989 committed Nov 11, 2024
1 parent 9ac14d4 commit ba75434
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .deco/blocks/pages-account-4173e01d589b.json
Original file line number Diff line number Diff line change
Expand Up @@ -1240,11 +1240,8 @@
]
},
{
"__resolveType": "website/sections/Rendering/Lazy.tsx",
"section": {
"__resolveType": "site/sections/Institutional/TextContent.tsx",
"content": "<div class=\"container flex flex-col justify-center items-center gap-5 mt-16 mb-10\"><h1 class=\"text-2xl lg:text-[40px] font-bold text-[#2C376D]\">Minha conta</h1><h2 class=\"text-base lg:text-xl font-semibold text-[#2C376D]\">Cadastre-se ou entre em sua conta</h2></div>"
}
"__resolveType": "site/sections/Institutional/TextContent.tsx",
"content": "<div class=\"container my-account-container flex flex-col justify-center items-center\"><h1 class=\"my-account-title font-bold text-[#2C376D]\">Minha conta</h1><h2 class=\"my-account-subtitle font-semibold text-[#2C376D]\">Cadastre-se ou entre em sua conta</h2></div>"
},
{
"__resolveType": "site/sections/Miscellaneous/ProxyIframe.tsx",
Expand Down
1 change: 1 addition & 0 deletions components/institutional/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default function FAQ(props: Props) {
.btn-form {
font-size: 9px;
}
}
`,
}}
Expand Down
40 changes: 40 additions & 0 deletions components/ui/ProxyIframe.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// deno-lint-ignore-file
import { Head } from "$fresh/runtime.ts";

interface Props {
src?: string;
}


const runOnMount = () => {
window.onload = () => {
const iFrame = document.getElementById(
Expand All @@ -20,6 +23,43 @@ export default function ProxyIframe({ src }: Props) {
<>
<script dangerouslySetInnerHTML={{ __html: `(${runOnMount})();` }}>
</script>
<Head>
<style
type="text/css"
dangerouslySetInnerHTML={{
__html: `
.my-account-container {
margin-top: 60px;
margin-bottom: 40px;
gap: 20px;
}
.my-account-title {
font-size:40px;
}
.my-account-subtitle {
font-size:20px;
}
@media only screen and (max-width: 768px) {
.my-account-container {
margin-top: 26px;
margin-bottom: 30px;
gap: 12px;
}
.my-account-title {
font-size:24px;
}
.my-account-subtitle {
font-size:16px;
}
}
`,
}}
/>
</Head>
<iframe
id="proxy-loader"
style="width:100%;border:none;overflow:hidden;min-height:950px;"
Expand Down

0 comments on commit ba75434

Please sign in to comment.