Skip to content

Commit

Permalink
prelaunch: style and copy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Oct 14, 2024
1 parent d43e5f1 commit 4769c79
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 22 deletions.
51 changes: 41 additions & 10 deletions resources/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body {
line-height: 1.8em;
background-color: var(--color-bg);
color: var(--color-text);
padding: 4rem 4rem 1rem 4rem;
}

a {
Expand All @@ -26,6 +27,9 @@ a {

footer {
color: var(--color-text-subdued);
font-size: 0.8em;
line-height: 1.2em;
margin-top: 3rem;
width: 100%;
display: flex;
flex-direction: row;
Expand All @@ -36,13 +40,32 @@ footer {

.container {
width: 100%;
margin: 1rem auto;
margin: 0 auto;
max-width: 1200px;
}

.main {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
gap: 1rem;
}

.illustration {
width: 50%;
p {
text-align: center;
}
img {
width: 100%;
max-width: 400px;
}
}

.signup {
margin: 2rem auto;
width: 100%;
width: 50%;
max-width: 500px;

form {
Expand Down Expand Up @@ -98,17 +121,25 @@ footer {
}
}

.illustration {
p {
text-align: center;
}
img {
width: 100%;
max-width: 400px;
}
@media (max-width: 900px) {
.main {
flex-direction: column;
}

.illustration, .signup {
width: 100%;
}

.signup {
margin-top: 0;
}
}

@media (max-width: 600px) {
body {
padding: 1rem;
}

.signup form {
flex-direction: column;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/ifs/parts/layouts/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[:head
[:meta {:charset "utf-8"}]
[:meta {:name "viewport" :content "width=device-width, initial-scale=1"}]
[:meta {:name "description" :content "Toolkit for IFS practitioners and their clients"}]
[:meta {:name "description" :content "Parts is a mapping tool for IFS practitioners to keep track of, visualise, and explore the relationships between their clients’ parts."}]
[:link {:rel "icon" :sizes "192x192" :href "/images/icons/favicon.png"}]
[:link {:rel "apple-touch-icon" :href "/images/icons/favicon.png"}]
[:title (str title " — Parts")]
Expand Down
24 changes: 13 additions & 11 deletions src/tools/ifs/parts/pages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,22 @@
(-> (response/response
(html
(layout
"Home Page"
"Mapping tools for IFS practitioners and their clients"
(header)
[:section.hero
[:h1
{:align "center"}
"Understand your clients’ parts and their relationships"]]
[:div.illustration
[:p
[:img {:src "/images/system-illustration.svg"}]]
[:h3.hook
{:align "center"}
[:strong "Parts"]
" is a tool for IFS practitioners to keep track of, visualise, and explore the relationships between their clients’ parts."]]
[:section.signup
[:p "Please enter your email below to join the private beta test."]
(waitlist-signup-form ".signup")]
[:div.main
[:section.illustration
[:p
[:img {:src "/images/system-illustration.svg"}]]]
[:section.signup
[:h3.hook
[:strong "Parts"]
" is a mapping tool for IFS practitioners to keep track of, visualise, and explore the relationships between their clients’ parts."]
[:p
[:strong "Parts"]
" is being actively developed, and we would love to have your feedback! Please enter your email below to join the private beta test."]
(waitlist-signup-form ".signup")]]
(footer))))))

0 comments on commit 4769c79

Please sign in to comment.