Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#295 - photoreel & updates #335

Merged
merged 6 commits into from
Aug 30, 2024
Merged

#295 - photoreel & updates #335

merged 6 commits into from
Aug 30, 2024

Conversation

AleksandraKozubal
Copy link
Member

@AleksandraKozubal AleksandraKozubal commented Aug 29, 2024

Changed:

  • references - removed links, added placeholders and possibility to set sex for proper placeholder choice
  • about page: updated numbers, "Our mission" padding "Blumilk after hours" clickable photoreel
  • case studies schema's bigger display, updatet gtb color palette and changed sitemap svgs
  • news and single news page: person tags are clickable and work as basic tag, added displaying separate link set in admin page
  • contact page, footer: changed color fot bigger contrast
    -icons: replacet a few icons from .svg to html way of usage - left only those that we change accent color + from main page case study

It should close #295.

@AleksandraKozubal AleksandraKozubal changed the title - updates #295- photoreel & updates Aug 29, 2024
@AleksandraKozubal AleksandraKozubal changed the title #295- photoreel & updates #295 - photoreel & updates Aug 29, 2024
@AleksandraKozubal AleksandraKozubal marked this pull request as ready for review August 29, 2024 13:09
@AleksandraKozubal AleksandraKozubal requested a review from a team as a code owner August 29, 2024 13:09
@AleksandraKozubal AleksandraKozubal changed the title #295 - photoreel & updates #295 - photoreel, updates Aug 30, 2024
@AleksandraKozubal AleksandraKozubal changed the title #295 - photoreel, updates #295 - photoreel & updates Aug 30, 2024
Copy link
Member

@EwelinaSkrzypacz EwelinaSkrzypacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. When I run php artisan migrate I see error

image

After running php artisan migrate:fresh it works

  1. After runningphp artisan migrate:fresh --seed images in reference section don't display

image

When I add a reference in admin panel without photo (to see placeholder image) it works

  1. Admin panel -> references -> create -> when I don't choose sex and click "Utwórz" I see error in console and reference is not created

image

  1. When I go to "O firmie" page I see error in console

image

  1. "O firmie" page - text under title "Nasze wartości" is smaller that text under title "Nasza misja". We want like that?

image

@AleksandraKozubal
Copy link
Member Author

  1. When I run php artisan migrate I see error

image

After running php artisan migrate:fresh it works

  1. After runningphp artisan migrate:fresh --seed images in reference section don't display

image

When I add a reference in admin panel without photo (to see placeholder image) it works

  1. Admin panel -> references -> create -> when I don't choose sex and click "Utwórz" I see error in console and reference is not created

image

  1. When I go to "O firmie" page I see error in console

image

  1. "O firmie" page - text under title "Nasze wartości" is smaller that text under title "Nasza misja". We want like that?

image

1.That happened bc you had old database records that didn't contain 'sex' column. Since this last fresh --seed was done, you won't have that problem anymore.
2. 3. 4. fixed
5. No, changed that

app/Filament/Resources/ReferenceResource.php Show resolved Hide resolved
Comment on lines 6 to 13
@php
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo)
? asset('storage/' . $reference->photo)
: null;
$placeholder = $reference->sex === 'female'
? asset('graphics/placeholders/female.svg')
: asset('graphics/placeholders/male.svg');
@endphp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@php
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo)
? asset('storage/' . $reference->photo)
: null;
$placeholder = $reference->sex === 'female'
? asset('graphics/placeholders/female.svg')
: asset('graphics/placeholders/male.svg');
@endphp
@php
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo)
? asset('storage/' . $reference->photo)
: null;
$placeholder = $reference->sex === 'female'
? asset('graphics/placeholders/female.svg')
: asset('graphics/placeholders/male.svg');
@endphp

Let's do that on backend

Comment on lines 137 to 143
$main2PhotoPath = (file_exists(storage_path('app/public/' . $references[$main2]->photo)) && !!$references[$main2]->photo)
? asset('storage/' . $references[$main2]->photo)
: null;
$main2Placeholder = $references[$main2]->sex === 'female'
? asset('graphics/placeholders/female.svg')
: asset('graphics/placeholders/male.svg');
@endphp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Member

@EwelinaSkrzypacz EwelinaSkrzypacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still there is a little difference between text size

image

@AleksandraKozubal AleksandraKozubal merged commit 6868d9a into main Aug 30, 2024
3 checks passed
@AleksandraKozubal AleksandraKozubal deleted the review-changes branch August 30, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Photoreel on company page
3 participants