Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/see-more-titles/see-more-titles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SeeMoreTitles = ({ onClick, className, children }) => (
onClick={onClick}
className={classnames(
className,
'fixed top-[14%] w-[20.3%] mr-[5%] cursor-pointer'
'fixed top-[14%] w-[20.3%] mr-[5%] cursor-pointer max-lg:hidden'
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/components/social-element/social-element.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SocialElement = ({ className, links }) => {
return (
<div
className={classnames(
'flex flex-col items-center w-[14.8%] fixed top-64',
'flex flex-col items-center w-[14.8%] fixed top-64 max-lg:hidden',
className
)}
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/title-blog-index/title-blog-index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ const TitleBlogIndex = ({ data, refIndexTitles, disappearIndex }) => {
/>
)}
<div
className="flex flex-row items-start w-[20%] mr-[5%] scroll-smooth fixed top-[22%] h-[70vh]"
className="flex flex-row items-start w-[20%] mr-[5%] scroll-smooth fixed top-[22%] h-[70vh] max-lg:hidden"
ref={indexContainerRef}
>
<div
className={classnames(
{ '!hidden': disappearIndex },
'fixed top-22p w-[20%] mr-5p flex flex-row flex-wrap items-start max-h-[76vh] overflow-y-hidden scroll-smooth max-sm:hidden'
'fixed top-22p w-[20%] mr-5p flex flex-row flex-wrap items-start max-h-[76vh] overflow-y-hidden scroll-smooth max-lg:hidden'
)}
ref={linksContainerRef}
>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@

@media (max-width: 1200px) {
.bodyPostContainer {
@apply pr-[10%];
@apply px-[8%];
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/templates/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const BlogPost = ({ data, children }) => {

return (
<div onScroll={handleScroll} id="containerDiv">
<div className="flex justify-end">
<div className="flex justify-end max-lg:hidden">
<TitleBlogIndex
data={getTitles()}
disappearIndex={disappearIndex}
Expand All @@ -161,7 +161,7 @@ const BlogPost = ({ data, children }) => {
)}
links={shareBlogPostLinks}
/>
<div className="p-[10rem_44%_20rem_16%] bg-blue-six max-lg:p-[10rem_27%_20rem_16%] max-sm:min-h-full max-sm:p-[8rem_1rem_6rem_5%]">
<div className="p-[10rem_44%_20rem_16%] bg-blue-six max-lg:p-[10rem_8%_20rem_8%] max-sm:min-h-full max-sm:p-[8rem_1rem_6rem_5%]">
<div className="flex flex-row items-baseline">
<Category
data={categoryBlog.displayName}
Expand Down Expand Up @@ -200,12 +200,12 @@ const BlogPost = ({ data, children }) => {
src={imgUrl}
alt="Blog Main Image"
onError={(event) => (event.target.src = '../../images/image.png')}
className="transform translate-y-[-230px] ml-[16%] mb-20 w-[51.3rem] max-w-[85vh] h-auto max-sm:transform max-sm:-translate-y-12 max-sm:m-0 max-sm:w-full max-sm:h-auto"
className="transform translate-y-[-230px] ml-[16%] mb-20 w-[51.3rem] max-w-[85vh] h-auto max-lg:ml-[8%] max-sm:transform max-sm:-translate-y-12 max-sm:m-0 max-sm:w-full max-sm:h-auto"
/>
<div className="bodyPostContainer" ref={refIndexTitles}>
{children}
</div>
<div className="flex flex-row-reverse justify-start items-baseline p-[5rem_30%_2rem_16%] max-xxl:pr-[30%] max-lg:pr-[10%] max-sm:flex-col max-sm:p-0">
<div className="flex flex-row-reverse justify-start items-baseline p-[5rem_30%_2rem_16%] max-xxl:pr-[30%] max-lg:px-[8%] max-sm:flex-col max-sm:p-0">
<div className="flex flex-row justify-end max-sm:justify-start">
<SocialElement
className="flex flex-row static items-center w-full z-0 max-sm:w-auto [&_a]:flex [&_a]:items-center [&_a]:m-[0.7rem]"
Expand Down