Implement background image
This commit is contained in:
parent
05b5b9d28e
commit
c5888f8236
1
Gemfile
1
Gemfile
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
gem 'puma'
|
||||||
gem 'sinatra'
|
gem 'sinatra'
|
||||||
|
@ -3,6 +3,9 @@ GEM
|
|||||||
specs:
|
specs:
|
||||||
mustermann (1.1.1)
|
mustermann (1.1.1)
|
||||||
ruby2_keywords (~> 0.0.1)
|
ruby2_keywords (~> 0.0.1)
|
||||||
|
nio4r (2.5.8)
|
||||||
|
puma (5.6.2)
|
||||||
|
nio4r (~> 2.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-protection (2.1.0)
|
rack-protection (2.1.0)
|
||||||
rack
|
rack
|
||||||
@ -16,8 +19,10 @@ GEM
|
|||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
arm64-darwin-21
|
arm64-darwin-21
|
||||||
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
puma
|
||||||
sinatra
|
sinatra
|
||||||
|
|
||||||
BUNDLED WITH
|
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>
|
<div id="willpower"></div>
|
||||||
<p>lmao</p>
|
|
||||||
<video width="640" height="480" controls>
|
|
||||||
<source src="video/willpower.mp4" type="video/mp4">
|
|
||||||
Some error message here
|
|
||||||
</video>
|
|
||||||
|
@ -11,8 +11,9 @@
|
|||||||
<meta name="twitter:description" content="One man's journey.">
|
<meta name="twitter:description" content="One man's journey.">
|
||||||
<title>My Willpower</title>
|
<title>My Willpower</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user