Skip to content

Commit

Permalink
Improve responsive design
Browse files Browse the repository at this point in the history
- Give content more space on tablet
- Fix text width to 80 characters
- Fix title linebreak in hero
  • Loading branch information
noeleont authored and cloudlena committed Nov 26, 2024
1 parent 6935f5c commit 06159d3
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/routes/Contact.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<section id="contact" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('contact.title')}</h3>
<p>{$_('contact.body')}</p>
<form
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Customers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<section id="customers" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('customers.title')}</h3>
<p>{$_('customers.body')}:</p>
<br />
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<div class="hero-body">
<div class="container container-cloud-city">
<div class="columns">
<div class="column is-offset-1-desktop column-main-title">
<div class="column is-offset-1-widescreen column-main-title">
<h1 class="title is-1 is-spaced">bespinian</h1>
<h2 class="subtitle is-4">{$_('subtitle')}</h2>
</div>
<div class="column is-offset-4-desktop has-text-centered">
<div class="column is-offset-4-widescreen has-text-centered">
<img class="cloud-city" src={cloudCity} alt="Cloud City" />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Mission.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<section id="mission" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('mission.title')}</h3>
<p>{$_('mission.body')}</p>
<div class="content team-content">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Partners.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<section id="partners" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('partners.title')}</h3>
<p>{$_('partners.body')}:</p>
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Services.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<section id="services" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('services.title')}</h3>
<p>{$_('services.body')}</p>
<div class="content team-content">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Team.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

<section id="team" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('team.title')}</h3>
<p>{$_('team.body')}</p>
<div class="content team-content">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Tech.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<section id="tech" class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">{$_('technologies.title')}</h3>
<p>
{$_('technologies.platforms.body.intro')}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/customers/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<section class="section customer-story">
{#if customer}
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h2 class="title is-2 is-spaced">
{customer.title}
</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/jobs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<br />
<section class="section">
<div class="columns is-centered columns-section">
<div class="column is-half">
<div class="column is-two-thirds is-half-widescreen">
<h3 class="title is-2 is-spaced">Cloud Solutions Engineer 60-100%</h3>
<p>
We are looking to extend our team of software engineers and architects. They each advise
Expand Down
4 changes: 4 additions & 0 deletions src/routes/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ body {
font-family: var(--font-body);
}

section.section > * > * {
max-width: 80ch;
}

.sc-carousel__carousel-container.has-text-centered {
flex-direction: column;
}
Expand Down

0 comments on commit 06159d3

Please sign in to comment.