Skip to content

Commit

Permalink
Add RailsConf template
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtiger committed Nov 15, 2024
1 parent 8dc10dc commit a081f57
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions custom-modern-railsconf.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{!< default}}
{{#post}}
<div id="modern">
<div class="{{post_class}}">
<h1>{{title}}</h1>
<div>{{content}}</div>
</div>
<section class="{{post_class}} light-background">
<div class="pipedriveWebForms" data-pd-webforms="https://webforms.pipedrive.com/f/bXGEbZmA58kJPCiTvLK4jx85rVeg5797ayI37xIHpUtbD7h6xf4Qinv5iYxFZ8GZOj"><script src="https://webforms.pipedrive.com/f/loader"></script></div>
</div>
</div>
{{/post}}
{{#contentFor 'scripts'}}
<script src="{{asset 'dist/post.js'}}" defer></script>
{{/contentFor}}
15 changes: 15 additions & 0 deletions src/css/modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,19 @@
margin: 2.5rem;
}
}

.pipedriveWebForms {
max-width: 100%; /* Ensure the form doesn't exceed the container width */
padding: 1em; /* Add some padding for spacing */
box-sizing: border-box; /* Include padding in width calculations */
margin: 1.5rem 0 0 0;
}

.pipedriveWebForms iframe {
width: 100%; /* Ensure the iframe scales to the container */
max-width: 600px; /* Set a reasonable max width */
height: auto; /* Adjust height proportionally */
display: block; /* Ensure it behaves like a block-level element */
margin: 1.5rem auto; /* Center the form on the page */
}
}

0 comments on commit a081f57

Please sign in to comment.