Explorar el Código

update case study

master
Pavle Golubovic hace 2 años
padre
commit
2e3846c1b2
Se han modificado 2 ficheros con 20 adiciones y 19 borrados
  1. 1
    1
      frontend/package.json
  2. 19
    18
      frontend/src/pages/CaseStudyPage.jsx

+ 1
- 1
frontend/package.json Ver fichero

{ {
"name": "frontend", "name": "frontend",
"version": "3.0.8",
"version": "3.0.9",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@faceless-ui/slider": "^1.1.14", "@faceless-ui/slider": "^1.1.14",

+ 19
- 18
frontend/src/pages/CaseStudyPage.jsx Ver fichero

'Slug', 'Slug',
'Heading.paragraphs', 'Heading.paragraphs',
'Stat', 'Stat',
'Goal.paragraph',
'AboutClient.paragraph',
'Country', 'Country',
'Industry', 'Industry',
'Challanges.paragraph',
'Domain.paragraph',
'Challenges.paragraph',
'Solution.paragraph', 'Solution.paragraph',
'Results.paragraph', 'Results.paragraph',
'CaseStudyImage', 'CaseStudyImage',


<section <section
id="client" id="client"
className="flex flex-col items-center justify-center mt-4 lg:mx-64"
className="flex flex-col items-center justify-center mt-4"
> >
<div className="my-8 flex flex-col md:flex-row justify-center items-start w-full max-w-custom m-auto px-8 xl:px-0"> <div className="my-8 flex flex-col md:flex-row justify-center items-start w-full max-w-custom m-auto px-8 xl:px-0">
{data[0].attributes.Goal && (
{data[0].attributes.AboutClient && (
<div className="w-full md:w-1/2"> <div className="w-full md:w-1/2">
<h3 className="h3-heading text-teal-600"> <h3 className="h3-heading text-teal-600">
{data[0].attributes.Goal.title}
{data[0].attributes.AboutClient.title}
</h3> </h3>
{data[0].attributes.Goal.paragraph &&
data[0].attributes.Goal.paragraph.length > 0 &&
data[0].attributes.Goal.paragraph.map((item, index) => (
{data[0].attributes.AboutClient.paragraph &&
data[0].attributes.AboutClient.paragraph.length > 0 &&
data[0].attributes.AboutClient.paragraph.map((item, index) => (
<p key={index} className="paragraph mt-4"> <p key={index} className="paragraph mt-4">
{item.ParagraphElement} {item.ParagraphElement}
</p> </p>
</section> </section>


{/* Domain Section */} {/* Domain Section */}
{/* {data[0].attributes.Domain && (
{data[0].attributes.Domain && (
<section id="domain" className="flex flex-col items-center justify-center"> <section id="domain" className="flex flex-col items-center justify-center">
<div className="my-4 flex flex-col justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0"> <div className="my-4 flex flex-col justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0">
<div className="w-full"> <div className="w-full">
</div> </div>
</div> </div>
</section> </section>
)} */}
)}


{/* Stats */} {/* Stats */}
<Wrapper padding={' py-90p'}> <Wrapper padding={' py-90p'}>
</Wrapper> </Wrapper>


{/* Challanges, Solution Section */} {/* Challanges, Solution Section */}
{/* <section
<section
id="challanges_solution" id="challanges_solution"
className="flex flex-col items-center justify-center mt-8" className="flex flex-col items-center justify-center mt-8"
> >
<div className="my-4 flex flex-col md:flex-row justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0"> <div className="my-4 flex flex-col md:flex-row justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0">
<div className="w-full md:w-1/2 md:pr-16"> <div className="w-full md:w-1/2 md:pr-16">
{data[0].attributes.Challanges && (
{data[0].attributes.Challenges && (
<div> <div>
<h3 className="h3-heading"> <h3 className="h3-heading">
{data[0].attributes.Challanges.title}
{data[0].attributes.Challenges.title}
</h3> </h3>
{data[0].attributes.Challanges.paragraph &&
data[0].attributes.Challanges.paragraph.length > 0 &&
data[0].attributes.Challanges.paragraph.map((item, index) => (
{data[0].attributes.Challenges.paragraph &&
data[0].attributes.Challenges.paragraph.length > 0 &&
data[0].attributes.Challenges.paragraph.map((item, index) => (
<p key={index} className="paragraph mt-4"> <p key={index} className="paragraph mt-4">
{item.ParagraphElement} {item.ParagraphElement}
</p> </p>
/> />
)} )}
</div> </div>
</section> */}
</section>


{/* Results Section */} {/* Results Section */}
{data[0].attributes.Results && ( {data[0].attributes.Results && (
<section id="results" className="flex flex-col items-center justify-center lg:mx-64">
<section id="results" className="flex flex-col items-center justify-center">
<div className="my-8 flex flex-col justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0"> <div className="my-8 flex flex-col justify-center items-center w-full max-w-custom m-auto px-8 xl:px-0">
<div className="w-full"> <div className="w-full">
<h3 className="h3-heading text-dg-secondary"> <h3 className="h3-heading text-dg-secondary">

Cargando…
Cancelar
Guardar