Skip to content

Commit

Permalink
Solved minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinschrodinger1 committed Aug 28, 2023
1 parent 79a5350 commit 91f24d3
Show file tree
Hide file tree
Showing 22 changed files with 431 additions and 413 deletions.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
758 changes: 368 additions & 390 deletions public/assets/css/index.css

Large diffs are not rendered by default.

Binary file added public/favicon-16x16.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/favicon-32x32.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 modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900"
rel="stylesheet"
/>
<title>IT Meet 2022</title>
<title>IT Meet 2023</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
Expand Down
Binary file modified public/logo192.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 modified public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
23 changes: 23 additions & 0 deletions src/assets/images/marker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function Footer() {
</footer>
<a href="#">
<div id="scrollUp">
<i class="fa fa-angle-double-up"></i>
<i className="fa fa-angle-double-up"></i>
</div>
</a>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/NavigationBar/Navigation.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
& li
& a
color: var(--color-white) !important
.menu-link
color: white !important
8 changes: 6 additions & 2 deletions src/components/Slider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ const Slider = (props) => {
},
tablet: {
breakpoint: { max: 1350, min: 1115 },
items: 4
items: 3
},
mobile: {
breakpoint: { max: 464, min: 0 },
breakpoint: { max: 1115, min: 580 },
items: 2
},
smobile: {
breakpoint: { max: 580, min: 0 },
items: 1
}
};
return (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/AllEvents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function AllEvents() {
}, [])
return (
<div className='AllEvents'>
{event.map(element => (
<div className="card" onClick={() => {
{event.map((element, index) => (
<div className="card" key={index} onClick={() => {
navigate(`/event/${element.$id}`)
}}>
<div className="card-block">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/AllPreEvent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default function AllPreEvents() {
<div>
<div className="row hidden-md-up">
<div className="cards">
{event.map(element => (
<div className="card" onClick={() => {
{event.map((element, key) => (
<div className="card" key={key} onClick={() => {
navigate(`/event/${element.$id}`)
}}>
<div className="content">
Expand Down
10 changes: 5 additions & 5 deletions src/pages/HomePage/P3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ export default function P3() {
<div className='carousel'>
<Slider >
{
event.map(element => {
event.map((element, index) => {
return (
<div class="item">
<div className="item" key={index}>
<img src={element.photo} alt="Event #2" />
<div class="down-content">
<div className="down-content">
<h4>{element.title}</h4>
<p>
{element.description}
</p>
<div class="more-btn">
<div className="more-btn">
<div onClick={() => {
navigate(`/event/${element.$id}`)
}}>
More <i class="fa fa-angle-double-right"></i>
More <i className="fa fa-angle-double-right"></i>
</div>
</div>
</div>
Expand Down
3 changes: 0 additions & 3 deletions src/pages/HomePage/P4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ export default function P4() {
return await database.listDocuments("itmeet", "64dcd0522f029f78cb08")
}
fetchData().then((value) => {
console.log(value.documents)

setSponsor(value.documents)
}).catch(err => {
alert(err)
})

}, [])
console.log(sponsor[0]);
return (
<div className='P4'>
<section
Expand Down
2 changes: 2 additions & 0 deletions src/pages/HomePage/P5/P5.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.map
.leaf
height: 500px
.leaflet-div-icon
border-radius: 100%
14 changes: 12 additions & 2 deletions src/pages/HomePage/P5/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ import { MapContainer, TileLayer, useMap, Marker, Popup } from "react-leaflet";
import "leaflet/dist/leaflet.css";
import "./P5.sass";
import { databaseContext } from "../../../context/databaseContext/databse.context";
import L from 'leaflet';
import marker from '../../../assets/images/marker.svg'

export default function P5() {
const center = [27.6227443, 85.5310493];
const database = useContext(databaseContext);
const [qna, setQna] = useState([]);

const iconPerson = new L.Icon({
iconUrl: (marker),
iconRetinaUrl: (marker),
popupAnchor: [-0, -0],
iconSize: new L.Point(32, 32),
className: 'leaflet-div-icon'
});

useEffect(() => {
const fetchData = async (type) => {
return await database.listDocuments("itmeet", "qna");
Expand Down Expand Up @@ -42,7 +52,7 @@ export default function P5() {
<div className="faq-section mb-100">
<div className="accordion" id="faqAccordian">
{qna.map((element, index) => (
<div
<div key={index}
className="accordian-item card wow animate__fadeInUp"
data-wow-duration="1s"
>
Expand Down Expand Up @@ -161,7 +171,7 @@ export default function P5() {
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Marker position={center}>
<Marker position={center} icon={iconPerson}>
<Popup>
Kathmandu University <br /> IT Meet Venue.
</Popup>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/HomePage/PreEvents/PreEvents.sass
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
background: var(--fourth-color)
color: var(--color-white)
padding: 20px
gap: 10px
.content
display: flex
flex-direction: column
gap: 0px
width: 600px
margin-left: 30px
justify-content: space-evenly
.icons
Expand All @@ -30,6 +29,8 @@
@media screen and (max-width: 914px)
.card
flex-direction: column
align-items: center
justify-content: center
.overlay
z-index: 1
position: absolute
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomePage/PreEvents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function PreEvents() {
{preEvents.map((element, index) => {
if (index < 3)
return (
<div
<div key={index}
className="card"
onClick={() => {
navigate(`/event/${element.$id}`);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/IndividualEvent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function IndividualEvent() {
}, []);
return (
<div className="InidividualEvent">
<section
{event[0] ? <section
className="event-section coming-soon-white"
style={{ width: "100%" }}
>
Expand Down Expand Up @@ -120,7 +120,7 @@ export default function IndividualEvent() {
</div>
</div>
</div>
</section>
</section> : null}
</div>
);
}

0 comments on commit 91f24d3

Please sign in to comment.