Skip to content

Commit

Permalink
Merge pull request #109 from scify/master
Browse files Browse the repository at this point in the history
UI changes
  • Loading branch information
PavlosIsaris authored Oct 15, 2024
2 parents 6f9c9fb + 5d75169 commit ae5e5bd
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 32 deletions.
1 change: 1 addition & 0 deletions database/seeders/AirQualityProjectSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function run(): void {
'language_id' => 6,
'should_send_email_after_questionnaire_response' => 1,
'lp_primary_color' => '#f5ba16',
'lp_btn_text_color_theme' => 'dark',
'lp_questionnaire_image_path' => '/images/projects/air-quality-europe/logo.webp',
'lp_show_speak_up_btn' => 1,
'sm_featured_img_path' => '/images/projects/air-quality-europe/logo.webp',
Expand Down
Binary file added resources/assets/images/answered_anonymously.webp
Binary file not shown.
74 changes: 44 additions & 30 deletions resources/assets/sass/project/landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ ol {

.modal-dialog {
max-width: 680px;
margin-top: 150px;
margin-top: 60px;
}

.modal-header {
border-bottom: none;
}

.modal-title {
Expand All @@ -406,22 +410,9 @@ ol {
}

.btn {
margin-top: 10px;
margin-bottom: 10px;
font-family: Avenir, Helvetica, sans-serif;
box-sizing: border-box;
border-radius: 3px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
color: #fff;
display: inline-block;
text-decoration: none;
-webkit-text-size-adjust: none;
background-color: $button-background-color;
border-top: 10px solid $button-background-color;
border-right: 18px solid $button-background-color;
border-bottom: 10px solid $button-background-color;
border-left: 18px solid $button-background-color;
font-size: x-large;
width: 16.25rem;
font-size: 1.25rem;
font-weight: 600;
}

.respond-questionnaire.feedback {
Expand Down Expand Up @@ -461,39 +452,54 @@ ol {

.login-invitation {
text-align: center;
font-weight: normal;
font-family: "Open Sans Variable", sans-serif;

ul {
list-style-type: none;
padding: 0;
}
}

.anonymous-answers-saved {
background-color: #f5faff;
background-image: url("../../images/sign_in.webp");
background-color: var(--clr-secondary-light-grey);
background-image: url("../../images/answered_anonymously.webp");
background-repeat: no-repeat;
min-height: 310px;
background-size: 260px;
background-position: bottom;
margin-left: -14px;
margin-right: -14px;
margin-top: -14px;
border-radius: 7px;
min-height: 330px;
background-size: 180px;
background-position: center 80%;
margin-left: -16px;
margin-right: -16px;
margin-top: -16px;
text-align: center;
padding-top: 25px;
font-weight: bold;
font-weight: 500;
}

.dashboard-message {
font-family: Avenir, Helvetica, sans-serif;
font-family: "Noto Sans Variable", sans-serif;
box-sizing: border-box;
color: $button-background-color;
font-size: toRem(22);
color: black;
font-size: 24px;
font-weight: 500;
line-height: 1.5em;
margin-top: 0;
text-align: center;
margin-bottom: 1rem;
}

p {
text-align: center;
font-size: 20px;
}

label,
i {
font-size: 14px;
font-weight: 300;
color: #4d5359;
}

.modal-body {
.badge-container {
padding-top: 30px;
Expand All @@ -519,10 +525,18 @@ ol {
}

.modal-footer {
border-top: none;
justify-content: center;

.refresh-page {
max-width: 100px;
margin: auto;
}
.dashboard-message {
font-family: "Open Sans Variable", sans-serif;
font-size: 20px;
font-weight: 400;
}
}

.gamification-badge {
Expand Down
4 changes: 2 additions & 2 deletions resources/views/questionnaire/thanks_for_responding.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="login-invitation">
{{-- <p class="dashboard-message mt-4 mb-0 w-100">
{{ __("questionnaire.login_to_complete_submission") }}</p> --}}
<p class="dashboard-message mt-4 mb-0 w-100">{!! __('questionnaire.by_registering_you') !!}</p>
<p class="dashboard-message mt-4 w-100">{!! __('questionnaire.by_registering_you') !!}</p>
<ul>
<li>- {!! __('questionnaire.filter_spammers') !!}</li>
<li>- {!! __('questionnaire.view_your_contribution') !!}</li>
Expand Down Expand Up @@ -76,7 +76,7 @@ class="go-to-homepage">{!! __('questionnaire.go_to_homepage') !!}</a>
<div class="modal-footer">
<p class="dashboard-message w-100">{{ __('questionnaire.learn_about_new_projects') }}</p>
<a href="{{ route('register') }}"
class="btn btn-lg btn-block btn-primary">{{ __('questionnaire.sign_up') }}
class="btn btn-primary">{{ __('questionnaire.sign_up') }}
/ {{ __('questionnaire.sign_in') }}</a>
</div>
</div>
Expand Down

0 comments on commit ae5e5bd

Please sign in to comment.