Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rawrpit #17

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1fb7198
index.html und styles.css
rawrpit Oct 14, 2024
4831028
index datei erstellt
rawrpit Oct 14, 2024
5139b83
seite done
rawrpit Oct 14, 2024
450ff46
styles.css auch einfgefügt
rawrpit Oct 14, 2024
11e40b0
Änderungen im styles vorgenommen und dann User Story 6 fertig gemacht
rawrpit Oct 14, 2024
6255dac
Ue06 abstrakt vergessen zu machen
rawrpit Oct 14, 2024
0fbb075
Interface implementiert und seine Klassen, Klasse VideoAbstract abstr…
rawrpit Oct 14, 2024
b586a20
AllVideos $quelle gemacht falls es ned immer YouTube ist
rawrpit Oct 14, 2024
713e245
AllVideos: von VideoAbstract extended
rawrpit Oct 14, 2024
42e3646
damit alles mal commited und gepushed habe
rawrpit Oct 14, 2024
9842b3f
Made css responsive
mohanakovac Oct 15, 2024
28fea54
Merge branch 'main' of https://github.com/mohanakovac/webt-core-objec…
rawrpit Oct 15, 2024
c578587
Merge branch 'main' of https://github.com/mohanakovac/webt-core-objec…
rawrpit Oct 15, 2024
b23601e
Merge branch 'main' of https://github.com/user-story-based-exercises/…
rawrpit Oct 15, 2024
da92b59
gitignore implement
rawrpit Oct 16, 2024
d7895a4
Add UserStory7
Oct 15, 2024
62d5932
Add UserStory8
Oct 15, 2024
3d0fd86
styles modified
rawrpit Oct 16, 2024
2bb8d39
Merge branch 'rawrpit' of https://github.com/mohanakovac/webt-core-ob…
rawrpit Oct 16, 2024
ab929f7
Merge branch 'main' of https://github.com/mohanakovac/webt-core-objec…
rawrpit Oct 16, 2024
b1d09d0
added gitignore
rawrpit Oct 16, 2024
3134eef
Merge branch 'rawrpit' of https://github.com/mohanakovac/webt-core-ob…
rawrpit Oct 16, 2024
4f34c50
PDF hochgeladen
rawrpit Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
44 changes: 44 additions & 0 deletions AllVideos.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/*
require_once 'InterfaceVideo.php';

class AllVideos implements InterfaceVideo
{
private $titel;
private $einbetten;
private $quelle;

public function __construct($titel, $einbetten, $quelle)
{
$this->titel = $titel;
$this->einbetten = $einbetten;
$this->quelle = $quelle;
}

public function getTitel()
{
return $this->titel;
}

public function getQuelle()
{
return $this->quelle;
}

public function getEmbettet()
{
return $this->einbetten;
}
}

*/

require_once 'VideoAbstract.php';

class AllVideos extends VideoAbstract
{
public function getEmbettet()
{
return $this->einbetten;
}
}
6 changes: 6 additions & 0 deletions InterfaceVideo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
interface InterfaceVideo{
public function getTitel();
public function getQuelle();
public function getEmbettet();
}
11 changes: 11 additions & 0 deletions UserStory7/YouTubeVideo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
require_once 'VideoAbstract.php';

class YouTubeVideo extends VideoAbstract
{
public function getEmbettet()
{
// Spezifisches Einbettungsschema für YouTube
return '<iframe src="https://www.youtube.com/embed/' . $this->einbetten . '" title="YouTube video player" allowfullscreen></iframe>';
}
}
20 changes: 20 additions & 0 deletions UserStory7/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
require 'YouTubeVideo.php';
require 'AllVideos.php';

$videos = [
new YouTubeVideo('THE STRANGERS', 'zyRULBtS_GA', 'YouTube'),
new YouTubeVideo('TERRIFIER 2', 'mXWZQBVc1V4', 'YouTube'),
new YouTubeVideo('Smile', 'BcDK7lkzzsU', 'YouTube'),
new YouTubeVideo('No One Gets Out Alive', 'sY2TLiK27g4', 'YouTube'),
new YouTubeVideo('The Strays', 'o9_UteTT9wA', 'YouTube')
];

foreach ($videos as $video) {
echo '<div class="YTVideo">';
echo '<h2>' . $video->getTitel() . '</h2>';
echo '<p>Quelle: ' . $video->getQuelle() . '</p>';
echo $video->getEmbettet();
echo '</div>';
}
?>
11 changes: 11 additions & 0 deletions UserStory8/VimeoVideo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
require_once 'VideoAbstract.php';

class VimeoVideo extends VideoAbstract
{
public function getEmbettet()
{
// Spezifisches Einbettungsschema für Vimeo
return '<iframe src="https://player.vimeo.com/video/' . $this->einbetten . '" title="Vimeo video player" allowfullscreen></iframe>';
}
}
20 changes: 20 additions & 0 deletions UserStory8/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
require 'YouTubeVideo.php';
require 'VimeoVideo.php';

$videos = [
new YouTubeVideo('THE STRANGERS', 'zyRULBtS_GA', 'YouTube'),
new YouTubeVideo('TERRIFIER 2', 'mXWZQBVc1V4', 'YouTube'),
new VimeoVideo('In the Woods', '374933662', 'Vimeo'),
new VimeoVideo('Daydream', '257777066', 'Vimeo'),
new VimeoVideo('The Haunted House', '269458487', 'Vimeo')
];

foreach ($videos as $video) {
echo '<div class="YTVideo">';
echo '<h2>' . $video->getTitel() . '</h2>';
echo '<p>Quelle: ' . $video->getQuelle() . '</p>';
echo $video->getEmbettet();
echo '</div>';
}
?>
Binary file added VCS_Erklaerung.pdf
Binary file not shown.
29 changes: 29 additions & 0 deletions VideoAbstract.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

require_once 'InterfaceVideo.php';

abstract class VideoAbstract implements InterfaceVideo
{
protected $titel;
protected $einbetten;
protected $quelle;

public function __construct($titel, $einbetten, $quelle)
{
$this->titel = $titel;
$this->einbetten = $einbetten;
$this->quelle = $quelle;
}

public function getTitel()
{
return $this->titel;
}

public function getQuelle()
{
return $this->quelle;
}

abstract public function getEmbettet();
}
Binary file added fonts/youmurdererbb_reg.ttf
Binary file not shown.
96 changes: 96 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Trailer Portal</title>
<link rel="stylesheet" href="styles.css">
</head>

<body>
<h2>Acolytes of Ash</h2>
<div class="container">
<div class="YTVideo">
<h2>THE STRANGERS</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/zyRULBtS_GA?si=eT-2uM9IyPrhf1cw"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>TERRIFIER 2</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/mXWZQBVc1V4?si=LTSBSWn-7szz1IU3"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>Smile</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/BcDK7lkzzsU?si=NRUWXxo-6PTo9z_x"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>No One Gets Out Alive</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/sY2TLiK27g4?si=z7lfTRgVlkKOJzPf"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>The Strays</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/o9_UteTT9wA?si=9ulg_z4xzpJHx6gZ"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>BARBARIAN</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/Dr89pmKrqkI?si=BX_cQuZeicEwXqkX"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>Night Swim</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/pcSNqteCEtE?si=-shNL_rs7AuZnc-u"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>Talk To Me</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/aLAKJu9aJys?si=cQV2csYHacn0x4oY"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>Sister Death</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/Ze6plKbzkY0?si=tqUXWGQgEhgD84Mi"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

<div class="YTVideo">
<h2>Hypnotic</h2>
<p>Source: YouTube</p>
<iframe src="https://www.youtube.com/embed/eHsWYmnXk1o?si=kdfPDInWPu2P50yP"
title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
</body>

</html>
45 changes: 45 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Trailer Portal</title>
<link rel="stylesheet" href="styles.css">
</head>

<body>
<h2>Acolytes of Ash</h2>
<div class="container">

<?php
require 'VideoAbstract.php';
require 'AllVideos.php';

$videos = [
new AllVideos('THE STRANGERS', '<iframe src="https://www.youtube.com/embed/zyRULBtS_GA?si=eT-2uM9IyPrhf1cw" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('TERRIFIER 2', '<iframe src="https://www.youtube.com/embed/mXWZQBVc1V4?si=LTSBSWn-7szz1IU3" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('Smile', '<iframe src="https://www.youtube.com/embed/BcDK7lkzzsU?si=NRUWXxo-6PTo9z_x" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('No One Gets Out Alive', '<iframe src="https://www.youtube.com/embed/sY2TLiK27g4?si=z7lfTRgVlkKOJzPf" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('The Strays', '<iframe src="https://www.youtube.com/embed/o9_UteTT9wA?si=9ulg_z4xzpJHx6gZ" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('BARBARIAN', '<iframe src="https://www.youtube.com/embed/Dr89pmKrqkI?si=BX_cQuZeicEwXqkX" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('Night Swim', '<iframe src="https://www.youtube.com/embed/pcSNqteCEtE?si=-shNL_rs7AuZnc-u" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('Talk To Me', '<iframe src="https://www.youtube.com/embed/aLAKJu9aJys?si=cQV2csYHacn0x4oY" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('Sister Death', '<iframe src="https://www.youtube.com/embed/Ze6plKbzkY0?si=tqUXWGQgEhgD84Mi" title="YouTube video player" allowfullscreen></iframe>', 'YouTube'),
new AllVideos('Hypnotic', '<iframe src="https://www.youtube.com/embed/eHsWYmnXk1o?si=kdfPDInWPu2P50yP" title="YouTube video player" allowfullscreen></iframe>', 'YouTube')
];

foreach ($videos as $video) {
echo '<div class="YTVideo">';
echo '<h2>' . $video->getTitel() . '</h2>';
echo '<p>Quelle: ' . $video->getQuelle() . '</p>';
echo $video->getEmbettet();
echo '</div>';
}

?>

</div>

</body>
</html>
Loading