patron blog update

This commit is contained in:
Metehan Celik 2022-02-08 22:19:24 +03:00
parent 5b0ad6ad9f
commit 1b0adbeafe
6 changed files with 23 additions and 12 deletions

View File

@ -108,6 +108,12 @@
.w-225{ .w-225{
width: 225px; width: 225px;
} }
.w-230{
width: 230px;
}
.w-600{
max-width: 600px;
}
.bottom-zero { .bottom-zero {
bottom: 0; bottom: 0;
@ -165,4 +171,4 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
font-weight:500; font-weight:500;
} }

View File

@ -74,4 +74,5 @@ return [
'try_again' => 'Try again', 'try_again' => 'Try again',
'news_title' => 'Sectoral Developments All in :name', 'news_title' => 'Sectoral Developments All in :name',
'all_news' => 'All News',
]; ];

View File

@ -73,4 +73,5 @@ return [
'news_title' => 'Sektörel Gelişmeler :name\'da', 'news_title' => 'Sektörel Gelişmeler :name\'da',
'all_news' => 'Tüm İçerikler'
]; ];

View File

@ -1,8 +1,11 @@
{% block styles %}
{{ asset_style("visiosoft.theme.base::css/post.scss") }}
{% endblock %}
<div class="container mt-2 mb-4 px-0"> <div class="container mt-2 mb-4 px-0">
<div class="d-flex justify-content-between align-items-center mb-2"> <div class="d-flex justify-content-between align-items-center mb-2">
<h5 class="text-left ml-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5> <h5 class="text-left ml-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5>
<a href="{{ url('posts') }}" class="btn btn-outline-primary all-post-btn d-none d-md-block"> <a href="{{ url('posts') }}" class="btn btn-outline-primary all-post-btn d-none d-md-block">
{{ trans('theme::field.all_news') }} {{ trans('visiosoft.theme.base::field.all_news') }}
</a> </a>
</div> </div>
<div class="slider"> <div class="slider">
@ -12,12 +15,12 @@
<div class="px-2"> <div class="px-2">
<div <div
class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border"> class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border">
<div class="product-img"> <div class="product-img d-flex justify-content-center">
<a href="{{ post.route('view') }}"> <a href="{{ post.route('view') }}" class="">
{{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class('w-100')|raw }} {{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class("w-600")|raw }}
</a> </a>
</div> </div>
<div class="product-text-area p-3"> <div class="text-center product-text-area p-3">
<div class="fw-500 text-dark single-line"> <div class="fw-500 text-dark single-line">
<a href="{{ post.route('view') }}" class="text-dark"> <a href="{{ post.route('view') }}" class="text-dark">
{{ post.title }} {{ post.title }}
@ -30,6 +33,6 @@
{% endif %} {% endif %}
</div> </div>
<a href="{{ url('posts') }}" class="btn btn-outline-yellow mx-2 all-post-btn d-block d-md-none fs-16 font-weight-bold py-2"> <a href="{{ url('posts') }}" class="btn btn-outline-yellow mx-2 all-post-btn d-block d-md-none fs-16 font-weight-bold py-2">
{{ trans('theme::field.all_news') }} {{ trans('visiosoft.theme.base::field.all_news') }}
</a> </a>
</div> </div>

View File

@ -1,11 +1,11 @@
{% extends layout('posts') %} {% extends layout('articles') %}
{% block styles %} {% block styles %}
{{ asset_style("visiosoft.theme.base::css/post.scss") }} {{ asset_style("visiosoft.theme.base::css/post.scss") }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="continer p-0 m-0 maxWidth bg-white mx-auto"> <div class="container p-0 m-0 maxWidth bg-white mx-auto">
{% set posts = entries('posts').recent().paginate() %} {% set posts = entries('posts').recent().paginate() %}
<div class="row p-4 m-0"> <div class="row p-4 m-0">

View File

@ -19,13 +19,13 @@
class="d-flex align-items-center bgSpecial_2 text-white paddingSpecial mr-2 text-decoration-none"> class="d-flex align-items-center bgSpecial_2 text-white paddingSpecial mr-2 text-decoration-none">
<i class="fab fa-facebook-f fs-14"></i> <i class="fab fa-facebook-f fs-14"></i>
<div class="lineGap mx-3"></div> <div class="lineGap mx-3"></div>
<div class="fs-11 ">{{ trans('theme::field.share_on_facebook') }}</div> <div class="fs-11 ">{{ trans('visiosoft.theme.base::field.share_on_facebook') }}</div>
</a> </a>
<a href="https://twitter.com/share?url={{ app.request.uri|url_encode }}" <a href="https://twitter.com/share?url={{ app.request.uri|url_encode }}"
class="d-flex align-items-center bgSpecial_3 text-white paddingSpecial mr-2 text-decoration-none"> class="d-flex align-items-center bgSpecial_3 text-white paddingSpecial mr-2 text-decoration-none">
<i class="fab fa-twitter"></i> <i class="fab fa-twitter"></i>
<div class="lineGap mx-3"></div> <div class="lineGap mx-3"></div>
<div class="fs-11 ">{{ trans('theme::field.share_on_twitter') }}</div> <div class="fs-11 ">{{ trans('visiosoft.theme.base::field.share_on_twitter') }}</div>
</a> </a>
</div> </div>
<div class="fs-14 mt-3">{{ post.content|raw }}</div> <div class="fs-14 mt-3">{{ post.content|raw }}</div>
@ -46,7 +46,7 @@
<div class="bg-white rounded h-278 overflow-hidden mx-2"> <div class="bg-white rounded h-278 w-230 overflow-hidden mt-2 mx-2 w-225">
<a href="{{ post.route('view') }}" <a href="{{ post.route('view') }}"
class="fs-14 product p-0 mr-3 rounded position-relative bg-white link-dark text-decoration-none"> class="fs-14 product p-0 mr-3 rounded position-relative bg-white link-dark text-decoration-none">
<div class="related-image-wrapper w-225"> <div class="related-image-wrapper w-225">