Skip to content

Commit

Permalink
Merge pull request #34 from ms-club-sliit/development
Browse files Browse the repository at this point in the history
release v1.0.0
  • Loading branch information
uihalagedara authored Nov 25, 2023
2 parents f3dca7f + ab5d1e2 commit db690a3
Show file tree
Hide file tree
Showing 48 changed files with 2,580 additions and 386 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"rules": {
"@next/next/no-img-element": "off"
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
1,496 changes: 1,234 additions & 262 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,26 @@
"lint": "next lint"
},
"dependencies": {
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mui/icons-material": "^5.14.15",
"@mui/material": "^5.14.15",
"next": "13.5.4",
"react": "^18",
"react-dom": "^18",
"next": "13.5.4"
"styled-components": "^6.1.0"
},
"devDependencies": {
"autoprefixer": "^10",
"postcss": "^8",
"tailwindcss": "^3",
"eslint": "^8",
"eslint-config-next": "13.5.4"
"eslint-config-next": "13.5.4",
"postcss": "^8",
"tailwindcss": "^3"
}
}
50 changes: 50 additions & 0 deletions public/dummydata/gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"gallery": [
{
"id":1,
"category":"poya_day",
"image": "../public/static/Gallery.png"
},
{
"id":2,
"category":"katina_pooja",
"image": "public/static/Gallery.png"
},
{
"id":3,
"category":"bodhi_pooja",
"image": "public/static/Gallery.png"
},
{
"id":4,
"category":"charity",
"image": "public/static/Gallery.png"
},
{
"id":5,
"category":"poya_day",
"image": "public/static/Gallery.png"
},
{
"id":6,
"category":"katina_pooja",
"image": "public/static/Gallery.png"
},
{
"id":7,
"category":"bodhi_pooja",
"image": "public/static/Gallery.png"
},
{
"id":8,
"category":"charity",
"image": "public/static/Gallery.png"
},
{
"id":9,
"category":"poya_day",
"image": "public/static/Gallery.png"
}
]

}
Binary file added public/static/About-Bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/About-Potrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/About-Top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/Gallery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/Search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/Temple1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/coverproject.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/discover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/logo-dharma-chakra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/ms-club-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/projectSample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/static/projects-landing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/sri-sudharmaramaya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/temple-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/templeImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/worship.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/CSS/gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.gallery-container {
columns: 3; /* Set the number of columns (3 images per row) */
column-gap: 0; /* Adjust the gap between columns */

.gallery-item {
break-inside: avoid; /* Prevent images from breaking across columns */
margin: 0 5px; /* Add spacing between items */
}
}

128 changes: 128 additions & 0 deletions src/app/about/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
'use client'
import React, { useEffect } from 'react'
import historyData from '@/data/HistoryData.json'

const Image = 'image'

const About = () => {
useEffect(() => {
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add(`show-${entry.target.dataset.direction}`)
} else {
entry.target.classList.remove(
`show-${entry.target.dataset.direction}`
)
}
})
})

const hiddenRightElements = document.querySelectorAll('.hide-right')
const hiddenLeftElements = document.querySelectorAll('.hide-left')

hiddenRightElements.forEach((el) => {
el.dataset.direction = 'right'
observer.observe(el)
})

hiddenLeftElements.forEach((el) => {
el.dataset.direction = 'left'
observer.observe(el)
})
}, [])

return (
<>
<div className="min-h-screen w-full bg-white px-[40px] py-[20px] overflow-hidden">
<div className="max-w-screen-xl mx-auto">
<div className="grid gap-[40px]">
<div>
<div className="text-center text-black font-bold text-2xl md:text-3xl">
Sri Sudharmaramaya
</div>
<div className="flex justify-center">
<div className="bg-[#740000] w-[30px] h-[3px]"></div>
<div className="bg-[#E35F00] w-[50px] h-[3px]"></div>
</div>
</div>
<div className="text-black">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
vehicula libero nec augue molestie, non interdum tellus porttitor.
Sed non ultrices dui. Cras auctor porttitor turpis in feugiat.
Integer feugiat, ipsum quis commodo pharetra, nisl felis bibendum
libero, eu congue libero nisl et nulla. Morbi a interdum diam, ut
elementum sem. Phasellus vulputate egestas lacus a ultricies.
Proin vestibulum tempus quam ac condimentum. Vivamus at nibh quis
tortor posuere vehicula ut sit amet augue. Quisque risus enim,
tristique at dolor nec, hendrerit hendrerit massa. In lib
</div>
<div>
<div className="text-center text-black font-semibold text-lg md:text-xl">
History of Sri Sudharmaramaya
</div>
<div className="flex justify-center">
<div className="bg-[#740000] w-[100px] h-[2px]"></div>
<div className="bg-[#E35F00] w-[160px] h-[2px]"></div>
</div>
</div>
<div className="flex justify-center">
<div className="w-fit lg:w-full">
{historyData && historyData.data.length ? (
historyData.data.map((item, index) => (
<div
key={index}
className="max-w-[500px] lg:max-w-full justify-between relative"
>
<div className="w-full lg:flex">
<div
className={`w-full lg:w-1/2 flex justify-center items-center border-[#740000] pt-[20px] lg:pb-[50px] px-[40px] xs:px-[50px] lg:px-[0px] ${
index % 2 == 0
? 'border-l-[4px] lg:border-r-[2px] lg:border-l-0 order-1'
: 'border-l-[4px] lg:border-l-[2px] order-2'
}`}
>
<div
className={`w-[240px] h-[150px] xs:w-[300px] xs:h-[180px] sm:w-[400px] sm:h-[250px] lg:w-[360px] lg:h-[220px] ${
index % 2 == 0 ? 'hide-right' : 'hide-left'
}`}
>
<img
className="object-cover w-[240px] h-[150px] xs:w-[300px] xs:h-[180px] sm:w-[400px] sm:h-[250px] lg:w-[360px] lg:h-[220px]"
src={`./static/${item.image}`}
/>
</div>
</div>
<div
className={`w-full lg:w-1/2 flex justify-center border-[#740000] pt-[20px] pb-[50px] px-[40px] xs:px-[50px] lg:px-[0px] ${
index % 2 == 0
? 'border-l-[4px] lg:border-l-[2px] order-2'
: 'border-l-[4px] lg:border-r-[2px] lg:border-l-0 order-1'
}`}
>
<div
className={`grid gap-[20px] lg:gap-[0px] text-black w-[240px] xs:w-[300px] sm:w-[400px] lg:w-[360px] ${
index % 2 == 0 ? 'hide-left' : 'hide-right'
}`}
>
<div className="font-bold">{item.year}</div>
<div>{item.description}</div>
</div>
</div>
</div>
<div className="rounded-full w-[25px] h-[25px] bg-[#E35F00] absolute left-[2px] lg:left-[50%] top-[20px] translate-x-[-50%]"></div>
</div>
))
) : (
<></>
)}
</div>
</div>
</div>
</div>
</div>
</>
)
}

export default About
30 changes: 30 additions & 0 deletions src/app/dhammaSchool/data/events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"id": 1,
"imageSrc": "/static/worship.png",
"imageAlt": "Image of a person worshipping",
"title": "Poya day sill",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namhtht vehicula libero"
},
{
"id": 2,
"imageSrc": "/static/worship.png",
"imageAlt": "Image of a person worshipping",
"title": "Poya day sill",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namhtht vehicula libero"
},
{
"id": 3,
"imageSrc": "/static/worship.png",
"imageAlt": "Image of a person worshipping",
"title": "Poya day sill",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namhtht vehicula libero"
},
{
"id": 4,
"imageSrc": "/static/worship.png",
"imageAlt": "Image of a person worshipping",
"title": "Poya day sill",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namhtht vehicula libero"
}
]
45 changes: 45 additions & 0 deletions src/app/dhammaSchool/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import EventContainer from '@/components/dhammaSchoolEvents/eventContainer'
import events from './data/events.json'

const DhammaSchoolPage = () => {
return (
<div className="bg-white py-8">
<div className="text-black container mx-auto px-20">
<div className="block mx-auto my-12 font-semibold w-full lg:w-2/4">
<p className="text-center text-4xl lg:text-5xl mb-4 leading-normal">
Sri Sudharmaramaya Dhamma School
</p>
</div>
<div className="block my-12">
<div className="h-72 w-full bg-gray-300"></div>
</div>
<div className="block my-12">
<p className="text-base">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
vehicula libero nec augue molestie, non interdum tellus porttitor.
Sed non ultrices dui. Cras auctor porttitor turpis in feugiat.
Integer feugiat, ipsum quis commodo pharetra, nisl felis bibendum
libero, eu congue libero nisl et nulla. Morbi a interdum diam, ut
elementum sem. Phasellus vulputate egestas lacus a ultricies. Proin
vestibulum tempus quam ac condimentum. Vivamus at nibh quis tortor
posuere vehicula ut sit amet augue. Quisque risus enim, tristique at
dolor nec, hendrerit hendrerit massa. In lib
</p>
</div>
<div className="block my-12">
<div className="mt-6 grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-4 xl:gap-x-8">
{events.length ? (
events.map((event) => (
<EventContainer key={event.id} event={event} />
))
) : (
<p className="flex justify-center">No events to display.</p>
)}
</div>
</div>
</div>
</div>
)
}

export default DhammaSchoolPage
9 changes: 9 additions & 0 deletions src/app/events/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import DhammaSchoolEventsPage from '@/components/dhammaSchoolEvents'

export default function event() {
return (
<div>
<DhammaSchoolEventsPage />
</div>
)
}
Loading

0 comments on commit db690a3

Please sign in to comment.