File tree Expand file tree Collapse file tree 6 files changed +58
-12
lines changed
content/posts/Events/stories/WorldShoots Expand file tree Collapse file tree 6 files changed +58
-12
lines changed Original file line number Diff line number Diff line change 44
55### Table of Contents
66
7+ - [ Version 3.6.8] ( #version-368---2025-06-02 )
78- [ Version 3.6.7] ( #version-367---2025-06-01 )
89- [ Version 3.6.6] ( #version-366---2025-06-01 )
910- [ Version 3.6.5] ( #version-365---2025-05-15 )
4647- [ Version 3.0.1] ( #version-301---2024-08-27 )
4748- [ Version 3.0.0] ( #version-300---2024-08-18 )
4849
50+ ### [ Version 3.6.8] ( https://github.com/tahoni/hpsc-web-vite/releases/tag/version-3.6.8 ) - _ 2025-06-02_
51+
52+ Added a YouTube video to the Frontier shooting range.
53+
54+ #### Enhancements and Updates
55+
56+ - Added an iframe with the YouTube video for the Frontier shooting range.
57+
58+ #### Changes by
59+
60+ @tahoni
61+
4962### [ Version 3.6.7] ( https://github.com/tahoni/hpsc-web-vite/releases/tag/version-3.6.7 ) - _ 2025-06-01_
63+
5064Added a link to the World Shoot 2025 apparel at Bosninja.
5165Added an architecture README document.
5266
Original file line number Diff line number Diff line change 22
33## Release Notes
44
5- ### Version 3.6.7 - _ 2025-06-01_
6- Added a link to the World Shoot 2025 apparel at Bosninja.
7- Added an architecture README document.
5+ ### Version 3.6.8 - _ 2025-06-02_
86
9- #### Enhancements and Updates
10-
11- - Added a link to the Bosninja IPSC Handgun World Shoot 2025 apparel for the 2025 World Shoot Handgun post.
12- - Added the link to the Bosninja webpage to the constants.
7+ Added a YouTube video to the Frontier shooting range.
138
14- #### Licence and Documentation
9+ #### Enhancements and Updates
1510
16- - Added an ` ARCHITCTURE.md ` file and copied the content of the ` README.md ` file there .
11+ - Added an iframe with the YouTube video for the Frontier shooting range .
1712
1813#### Changes by
1914
Original file line number Diff line number Diff line change 1+ export interface VideoProps {
2+ url : string ;
3+ }
Original file line number Diff line number Diff line change 1+ import { VideoProps } from "./VideoProps" ;
2+
3+ export interface YouTubeVideoProps extends VideoProps { }
4+
5+ export const YouTubeVideo = ( props : VideoProps ) => {
6+ return (
7+ < iframe
8+ // width={props.width ?? 560}
9+ width = "100%"
10+ // height={props.height ?? 315}
11+ height = "100%"
12+ src = { props . url }
13+ title = "YouTube video player"
14+ allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
15+ referrerPolicy = "strict-origin-when-cross-origin"
16+ allowFullScreen
17+ > </ iframe >
18+ ) ;
19+ } ;
Original file line number Diff line number Diff line change 11$map-width : 100% ;
22$map-height : 15em ;
3+ $video-width : 36em ;
4+ $video-height : 20em ;
35
46:export {
5- max W idth : $map-width ;
7+ map W idth : $map-width ;
68 map Height : $map-height ;
79}
810
911.worldShootSummary {
1012 margin-top : 0.75em ;
1113}
1214
13- .worldShootRangeMap {
15+ .worldShootRangeMap ,
16+ .worldShootRangeVideo {
1417 margin : 0.75em 0 ;
15- padding : 0.75em auto ;
18+ padding : 0.75em 0 ;
19+ }
20+
21+ .worldShootRangeVideo {
22+ max-width : $video-width ;
23+ height : $video-height ;
24+ max-height : $video-height ;
1625}
1726
1827.worldShoot img {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { VenueType } from "../../../../../model/Venue";
55import { VenueEvent } from "../../../../../model/VenueEvent" ;
66import { worldShootEvents } from "./WorldShootConstants" ;
77import classes from "./WorldShoot.module.scss" ;
8+ import { YouTubeVideo } from "../../../../../components/Video/YouTubeVideo" ;
89
910interface WorldShootContentProps {
1011 year : number ;
@@ -69,6 +70,11 @@ const WorldShootContent = React.memo(
6970 { worldShootEvent . shootingRange ?. city } in{ " " }
7071 { worldShootEvent . shootingRange ?. province }
7172 </ h6 >
73+
74+ < div className = { classes . worldShootRangeVideo } >
75+ < YouTubeVideo url = "https://www.youtube.com/embed/COcWeS1XP-M?si=ax7D5KhwA4alKLaJ" />
76+ </ div >
77+
7278 < div className = { classes . worldShootRangeMap } >
7379 < SimpleVenueMap
7480 mapStyle = { mapStyle }
You can’t perform that action at this time.
0 commit comments