mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 10:42:11 +00:00
@@ -31,3 +31,5 @@ video {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
|
||||
|
||||
13
app/javascript/components/banner.js
Normal file
13
app/javascript/components/banner.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import Typed from 'typed.js';
|
||||
|
||||
function loadDynamicBannerText() {
|
||||
new Typed('#banner-typed-text', {
|
||||
strings: ["Language is not a barrier anymore", "Stay connected"],
|
||||
typeSpeed: 50,
|
||||
loop: true
|
||||
});
|
||||
}
|
||||
|
||||
export { loadDynamicBannerText };
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@ import ActionCable from 'actioncable'
|
||||
|
||||
import { triggerModalEvent } from "../components/modal.js";
|
||||
|
||||
import { loadDynamicBannerText } from '../components/banner';
|
||||
loadDynamicBannerText();
|
||||
|
||||
triggerModalEvent();
|
||||
|
||||
const settingsPage = document.getElementById('settings-page');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<div class="banner" style="background-image: linear-gradient(-225deg, rgba(5,25,55,0.3) 0%, rgba(68,73,101,0.3),rgba(128,129,149,0.3),rgba(191,190,200,0.3),rgba(255,255,255,0.3) 50%), url('<%= image_path 'phone.jpg' %>');">
|
||||
<div class="banner-content">
|
||||
<p>
|
||||
<span id="banner-typed-text"></span>
|
||||
</p>
|
||||
<h1>Make a call</h1>
|
||||
<p>Communicate in different languages</p>
|
||||
<p>and receive real-time translated</p>
|
||||
|
||||
Reference in New Issue
Block a user