More styles adjustments

This commit is contained in:
Hazem Krimi
2023-11-09 21:12:36 +01:00
parent 6d21953612
commit 3211097afc
2 changed files with 18 additions and 8 deletions
+8
View File
@@ -7,8 +7,16 @@ main p {
margin-bottom: 3rem; margin-bottom: 3rem;
} }
section {
margin-bottom: 5rem;
}
@media only screen and (max-width: 1024px) { @media only screen and (max-width: 1024px) {
main h2 { main h2 {
font-size: 1.75rem; font-size: 1.75rem;
} }
section {
margin-bottom: 2rem;
}
} }
+10 -8
View File
@@ -3,10 +3,10 @@
<link rel="stylesheet" href="{{ $styles.Permalink }}" /> <link rel="stylesheet" href="{{ $styles.Permalink }}" />
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}
<h2>Projects</h2> <section>
<section id="projects"> <h2>Projects</h2>
<p>These are all the projects I worked on personally and professionally.</p>
{{ range (where .Site.Pages "Section" "projects") }} {{ range (where .Site.Pages "Section" "projects") }}
{{ range .Pages }} {{ range .Pages }}
{{ partial "project-card.html" . }} {{ partial "project-card.html" . }}
@@ -14,8 +14,10 @@
{{ end }} {{ end }}
</section> </section>
<h2>Contact</h2> <section>
<p>Here you can contact me personally for any questions or opportunities.</p> <h2>Contact</h2>
<p>Here you can contact me personally for any questions or opportunities.</p>
{{ partial "contact-form.html" . }}
{{ end }} {{ partial "contact-form.html" . }}
</section>
{{ end }}