Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
coora-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janis Matteo Roth
coora-dev
Commits
1f8dd6de
Commit
1f8dd6de
authored
2 months ago
by
Janis Roth
Browse files
Options
Downloads
Patches
Plain Diff
formatted styles correctly
parent
4d4e95d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/styles.css
+21
-0
21 additions, 0 deletions
css/styles.css
index.html
+2
-24
2 additions, 24 deletions
index.html
js/script.js
+13
-10
13 additions, 10 deletions
js/script.js
with
36 additions
and
34 deletions
css/styles.css
+
21
−
0
View file @
1f8dd6de
...
@@ -599,3 +599,24 @@ body {
...
@@ -599,3 +599,24 @@ body {
font-size
:
1.8rem
;
font-size
:
1.8rem
;
}
}
}
}
.download-button
{
padding
:
12px
24px
;
font-size
:
16px
;
background-color
:
#007bff
;
color
:
white
;
border
:
none
;
border-radius
:
5px
;
cursor
:
pointer
;
transition
:
background-color
0.3s
ease
,
transform
0.3s
ease
;
}
.download-button
:hover
{
background-color
:
#0056b3
;
transform
:
translateY
(
-2px
);
}
.download-button
:active
{
transform
:
translateY
(
1px
);
}
This diff is collapsed.
Click to expand it.
index.html
+
2
−
24
View file @
1f8dd6de
...
@@ -16,9 +16,8 @@
...
@@ -16,9 +16,8 @@
</a>
</a>
<button
class=
"burger-menu"
onclick=
"toggleMenu()"
>
☰
</button>
<button
class=
"burger-menu"
onclick=
"toggleMenu()"
>
☰
</button>
<div
class=
"menu"
id=
"navLinks"
>
<div
class=
"menu"
id=
"navLinks"
>
<div
class=
"hidemenu"
id=
"toggleMenu"
>
<div
class=
"hidemenu"
>
<a
href=
"index.html"
class=
"active"
>
Home
</a>
<a
href=
"index.html"
class=
"active"
>
Home
</a>
<a
href=
"./html/About_us.html"
>
About us
</a>
<a
href=
"./html/About_us.html"
>
About us
</a>
<a
href=
"./html/Projektinformationen.html"
>
Projektinformationen
</a>
<a
href=
"./html/Projektinformationen.html"
>
Projektinformationen
</a>
...
@@ -40,32 +39,11 @@
...
@@ -40,32 +39,11 @@
<div
class=
"hero-text"
>
<div
class=
"hero-text"
>
<h1>
Coora
<br>
Die App für Fussballvereine
</h1>
<br>
<h1>
Coora
<br>
Die App für Fussballvereine
</h1>
<br>
<a
href=
"./html/Download.html"
>
<a
href=
"./html/Download.html"
>
<button
class=
"download-button"
style=
"
<button
class=
"download-button"
>
Download
</button>
padding: 12px 24px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
"
>
Download
</button>
</a>
</a>
</div>
</div>
</section>
</section>
<style>
.download-button
:hover
{
background-color
:
#0056b3
;
transform
:
translateY
(
-2px
);
}
.download-button
:active
{
transform
:
translateY
(
1px
);
}
</style>
<br><br>
<br><br>
<div
class=
"spacer"
>
<div
class=
"spacer"
>
...
...
This diff is collapsed.
Click to expand it.
js/script.js
+
13
−
10
View file @
1f8dd6de
...
@@ -14,18 +14,21 @@ window.addEventListener('scroll', () => {
...
@@ -14,18 +14,21 @@ window.addEventListener('scroll', () => {
}
}
});
});
const
observer
=
new
IntersectionObserver
((
entries
)
=>
{
// Überprüfe, ob `observer` bereits deklariert wurde
entries
.
forEach
(
entry
=>
{
if
(
typeof
observer
===
'
undefined
'
)
{
if
(
entry
.
isIntersecting
)
{
const
observer
=
new
IntersectionObserver
((
entries
)
=>
{
entry
.
target
.
classList
.
add
(
'
visible
'
);
entries
.
forEach
(
entry
=>
{
}
if
(
entry
.
isIntersecting
)
{
entry
.
target
.
classList
.
add
(
'
visible
'
);
}
});
});
});
});
document
.
querySelectorAll
(
'
.slide-in
'
).
forEach
((
element
)
=>
{
document
.
querySelectorAll
(
'
.slide-in
'
).
forEach
((
element
)
=>
{
observer
.
observe
(
element
);
observer
.
observe
(
element
);
});
});
}
function
toggleMenu
()
{
function
toggleMenu
()
{
document
.
getElementById
(
"
navLinks
"
).
classList
.
toggle
(
"
show
"
);
document
.
getElementById
(
"
navLinks
"
).
classList
.
toggle
(
"
show
"
);
}
}
\ 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