Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
g7-countdown
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Szabó Gergely
g7-countdown
Commits
cbf42c34
Commit
cbf42c34
authored
3 years ago
by
Szabó Gergely
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
Branches
our-team
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
Makefile
+13
-0
13 additions, 0 deletions
Makefile
src/bg.jpg
+0
-0
0 additions, 0 deletions
src/bg.jpg
src/index.html
+85
-0
85 additions, 0 deletions
src/index.html
with
102 additions
and
0 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
cbf42c34
.idea/
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
3
−
0
View file @
cbf42c34
FROM
nginx
EXPOSE
80
COPY
src /usr/share/nginx/html
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
13
−
0
View file @
cbf42c34
all
:
echo
"usage: make <build|run|publish>"
build
:
docker build
-t
g7-countdown .
publish
:
docker tag g7-countdown registry.k8s.sch.bme.hu/g7-countdown/g7-countdown:latest
docker push registry.k8s.sch.bme.hu/g7-countdown/g7-countdown:latest
run
:
docker run
--rm
-it
g7-countdown
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/bg.jpg
0 → 100644
+
0
−
0
View file @
cbf42c34
875 KiB
This diff is collapsed.
Click to expand it.
src/index.html
0 → 100644
+
85
−
0
View file @
cbf42c34
<!doctype html>
<html
lang=
"hu"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge,chrome=1"
>
<title>
BME VIK Gólyahét 2021
</title>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
crossorigin
>
<link
href=
"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;700&display=swap"
rel=
"stylesheet"
>
<style>
*
{
border
:
0
;
padding
:
0
;
margin
:
0
;
box-sizing
:
border-box
;
}
body
{
width
:
100%
;
background-color
:
#000
;
color
:
#FFF
;
font-family
:
'Roboto Mono'
,
monospace
;
text-shadow
:
0
4px
3px
rgba
(
0
,
0
,
0
,
0.4
),
0
8px
13px
rgba
(
0
,
0
,
0
,
0.1
),
0
18px
23px
rgba
(
0
,
0
,
0
,
0.1
);
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
h1
{
font-weight
:
bold
;
text-align
:
center
;
font-size
:
12vmin
;
margin
:
10vh
3vw
0
3vw
;
}
h2
{
font-weight
:
300
;
text-align
:
center
;
font-size
:
4vmin
;
margin
:
10vh
3vw
4vh
3vw
;
}
.background
{
background-image
:
url
(
"bg.jpg"
);
filter
:
blur
(
10px
);
-webkit-filter
:
blur
(
10px
);
height
:
100vh
;
width
:
100%
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
position
:
fixed
;
}
.content
{
position
:
fixed
;
top
:
0
;
left
:
0
;
height
:
100vh
;
width
:
100%
;
z-index
:
2
;
}
.latch
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
0
10vw
;
}
.digit
{
text-align
:
center
;
}
.digit
h3
{
font-size
:
14vmin
;
font-weight
:
100
;
}
.digit
span
{
font-size
:
6vmin
;
font-weight
:
bold
;
}
</style>
<!--
-- Kedves leendő kolléga/kollegina!
--
-- Köszönjük érdeklődését!
-- A Gólyahéttel kapcsolatban NEM tervezünk semmilyen rejtett információt közölni.
-- Minden elérhető lesz a publikus oldalon, amint eljön az idő!
--
-- Üdvözlettel,
-- a rendezők
-->
</head>
<body>
<div
class=
"background"
></div>
<div
class=
"content"
>
<h1>
BME VIK GÓLYAHÉT 2021
</h1>
<h2>
a programok kezdetéig még hátra van
</h2>
<div
class=
"latch"
>
<div
class=
"digit"
>
<h3
id=
"days"
>
00
</h3>
<span>
nap
</span>
</div>
<div
class=
"digit"
>
<h3
id=
"hours"
>
00
</h3>
<span>
óra
</span>
</div>
<div
class=
"digit"
>
<h3
id=
"mins"
>
00
</h3>
<span>
perc
</span>
</div>
<div
class=
"digit"
>
<h3
id=
"secs"
>
00
</h3>
<span>
mp
</span>
</div>
</div>
</div>
<script>
const
countDownDate
=
new
Date
(
"
Aug 30, 2021 09:00:00
"
).
getTime
();
function
zeroFill
(
value
)
{
return
value
<
10
?
(
"
0
"
+
value
)
:
value
;
}
function
updateTimer
()
{
const
now
=
new
Date
().
getTime
();
const
distance
=
countDownDate
-
now
;
document
.
getElementById
(
"
days
"
).
innerText
=
zeroFill
(
Math
.
floor
(
distance
/
(
1000
*
60
*
60
*
24
)));
document
.
getElementById
(
"
hours
"
).
innerText
=
zeroFill
(
Math
.
floor
((
distance
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
)));
document
.
getElementById
(
"
mins
"
).
innerText
=
zeroFill
(
Math
.
floor
((
distance
%
(
1000
*
60
*
60
))
/
(
1000
*
60
)));
document
.
getElementById
(
"
secs
"
).
innerText
=
zeroFill
(
Math
.
floor
((
distance
%
(
1000
*
60
))
/
1000
));
}
updateTimer
();
setInterval
(
updateTimer
,
1000
);
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment