Skip to content

Commit

Permalink
Merge pull request #14 from mvhacks/noam-carousel
Browse files Browse the repository at this point in the history
Image Carousel
  • Loading branch information
emilymarkova authored Dec 3, 2024
2 parents 562f89f + 2cd9c8f commit 052642c
Show file tree
Hide file tree
Showing 10 changed files with 407 additions and 1 deletion.
366 changes: 366 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"react": "^18.3.1",
"react-awesome-slider": "^4.1.0",
"react-dom": "^18.3.1",
"react-scripts": "^5.0.1",
"sass": "^1.81.0",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
Binary file added public/awards.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/food.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/hackers.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/mrnguyen.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/presentation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Prospectus from "./components/Prospectus"
import Faqs from "./components/Faqs";
import Title from "./components/Title";
import Schedule from "./components/Schedule";
import Carousel from "./components/Carousel";

function App() {
const home = useRef(null);
Expand Down Expand Up @@ -51,6 +52,7 @@ function App() {
</div>
<div className="info" ref={info}>
<h2>INFO</h2>
<Carousel></Carousel>
</div>
<div className="schedule" ref={schedule}>
<Schedule></Schedule>
Expand Down
19 changes: 19 additions & 0 deletions src/components/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import AwesomeSlider from "react-awesome-slider";
import "react-awesome-slider/dist/styles.css";

const slider = (
<AwesomeSlider
className="slider"
bullets={false} /*cssModule={AwesomeSliderStyles}*/
>
<div data-src="/presentation.jpg" />
<div data-src="/mrnguyen.jpg" />
<div data-src="/hackers.jpg" />
<div data-src="/food.jpg" />
<div data-src="/awards.jpg" />
</AwesomeSlider>
);

export default function Carousel() {
return slider;
}
19 changes: 18 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,24 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

.slider {
width: 35% !important;
height: auto !important;
margin:auto !important;
}
.awssld {
--slider-height-percentage: 60% !important;
--slider-transition-duration: 225ms !important;
--organic-arrow-thickness: 10px !important;
--organic-arrow-border-radius: 0px !important;
--organic-arrow-height: 50px !important;
--organic-arrow-color: #ffffff !important;
--control-button-width: 10% !important;
--control-button-height: 25% !important;
--control-button-background: transparent !important;
--loader-bar-color: transparent !important;
--loader-bar-height: 1px !important;
}
#footer {
text-align: center;
}
Expand Down

0 comments on commit 052642c

Please sign in to comment.