Implement background image
This commit is contained in:
parent
05b5b9d28e
commit
c5888f8236
@ -3,6 +3,9 @@ GEM
|
||||
specs:
|
||||
mustermann (1.1.1)
|
||||
ruby2_keywords (~> 0.0.1)
|
||||
nio4r (2.5.8)
|
||||
puma (5.6.2)
|
||||
nio4r (~> 2.0)
|
||||
rack (2.2.3)
|
||||
rack-protection (2.1.0)
|
||||
rack
|
||||
@ -16,8 +19,10 @@ GEM
|
||||
|
||||
PLATFORMS
|
||||
arm64-darwin-21
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
puma
|
||||
sinatra
|
||||
|
||||
BUNDLED WITH
|
||||
|
12
public/css/main.css
Normal file
12
public/css/main.css
Normal file
@ -0,0 +1,12 @@
|
||||
html, body {
|
||||
margin: 0px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#willpower {
|
||||
background-image: url('/images/willpower.gif');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
height: 100%;
|
||||
}
|
BIN
public/images/willpower.gif
Normal file
BIN
public/images/willpower.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
Binary file not shown.
@ -1,6 +1 @@
|
||||
<h1>Ayy...</h1>
|
||||
<p>lmao</p>
|
||||
<video width="640" height="480" controls>
|
||||
<source src="video/willpower.mp4" type="video/mp4">
|
||||
Some error message here
|
||||
</video>
|
||||
<div id="willpower"></div>
|
||||
|
@ -11,8 +11,9 @@
|
||||
<meta name="twitter:description" content="One man's journey.">
|
||||
<title>My Willpower</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user