Skip to content

Commit a081f57

Browse files
committed
Add RailsConf template
1 parent 8dc10dc commit a081f57

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

custom-modern-railsconf.hbs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{!< default}}
2+
{{#post}}
3+
<div id="modern">
4+
<div class="{{post_class}}">
5+
<h1>{{title}}</h1>
6+
<div>{{content}}</div>
7+
</div>
8+
<section class="{{post_class}} light-background">
9+
<div class="pipedriveWebForms" data-pd-webforms="https://webforms.pipedrive.com/f/bXGEbZmA58kJPCiTvLK4jx85rVeg5797ayI37xIHpUtbD7h6xf4Qinv5iYxFZ8GZOj"><script src="https://webforms.pipedrive.com/f/loader"></script></div>
10+
</div>
11+
</div>
12+
{{/post}}
13+
{{#contentFor 'scripts'}}
14+
<script src="{{asset 'dist/post.js'}}" defer></script>
15+
{{/contentFor}}

src/css/modern.css

+15
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,19 @@
324324
margin: 2.5rem;
325325
}
326326
}
327+
328+
.pipedriveWebForms {
329+
max-width: 100%; /* Ensure the form doesn't exceed the container width */
330+
padding: 1em; /* Add some padding for spacing */
331+
box-sizing: border-box; /* Include padding in width calculations */
332+
margin: 1.5rem 0 0 0;
333+
}
334+
335+
.pipedriveWebForms iframe {
336+
width: 100%; /* Ensure the iframe scales to the container */
337+
max-width: 600px; /* Set a reasonable max width */
338+
height: auto; /* Adjust height proportionally */
339+
display: block; /* Ensure it behaves like a block-level element */
340+
margin: 1.5rem auto; /* Center the form on the page */
341+
}
327342
}

0 commit comments

Comments
 (0)