Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
monnaie-libre-fr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
websites
monnaie-libre-fr
Commits
66017bce
Commit
66017bce
authored
3 years ago
by
Emmanuel Salomon
Browse files
Options
Downloads
Patches
Plain Diff
SuperHero
parent
8bcca347
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/css/tailwind.css
+1
-1
1 addition, 1 deletion
assets/css/tailwind.css
components/home/HomeHero.vue
+128
-0
128 additions, 0 deletions
components/home/HomeHero.vue
static/img/superhero.svg
+365
-0
365 additions, 0 deletions
static/img/superhero.svg
with
494 additions
and
1 deletion
assets/css/tailwind.css
+
1
−
1
View file @
66017bce
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@import
'tailwindcss/utilities'
;
@import
'tailwindcss/utilities'
;
/* helper for development only */
/* helper for development only */
.nuxt-content-container
{
.nuxt-content-container
:hover
{
background
:
linear-gradient
(
90deg
,
transparent
90%
,
#ffff0030
);
background
:
linear-gradient
(
90deg
,
transparent
90%
,
#ffff0030
);
}
}
...
...
This diff is collapsed.
Click to expand it.
components/home/HomeHero.vue
+
128
−
0
View file @
66017bce
...
@@ -3,11 +3,18 @@
...
@@ -3,11 +3,18 @@
<div
class=
"lg:items-start max-w-2xl 2xl:max-w-3xl w-full z-10"
>
<div
class=
"lg:items-start max-w-2xl 2xl:max-w-3xl w-full z-10"
>
<nuxt-content
:document=
"hero"
/>
<nuxt-content
:document=
"hero"
/>
</div>
</div>
<SuperHero
class=
"superhero w-full h-full"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
SuperHero
from
'
~/static/img/superhero.svg?inline
'
export
default
{
export
default
{
components
:
{
SuperHero
,
},
props
:
{
props
:
{
hero
:
{
hero
:
{
type
:
Object
,
type
:
Object
,
...
@@ -79,4 +86,125 @@ export default {
...
@@ -79,4 +86,125 @@ export default {
transform: translate(0, 0) rotate(0deg);
transform: translate(0, 0) rotate(0deg);
}
}
}
}
@keyframes floatHero {
0% {
transform: translate(0px, 0px);
}
50% {
transform: translate(0px, -20px);
}
100% {
transform: translate(0px, 0px);
}
}
@keyframes float {
0% {
transform: translate(0px, 0px);
}
50% {
transform: translate(-30px, -20px);
}
100% {
transform: translate(0px, 0px);
}
}
@keyframes floatZigzag {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(15deg) translate(10px);
}
100% {
transform: rotate(0deg);
}
}
@keyframes floatCape {
0% {
transform: skewY(0deg);
}
50% {
transform: skewY(2deg);
}
100% {
transform: skewY(0deg);
}
}
@keyframes floatBall {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(5deg);
}
100% {
transform: rotate(0deg);
}
}
@keyframes pulseBreak {
0% {
transform: scale(1);
}
50% {
transform: scale(1.3);
}
100% {
transform: scale(1);
}
}
@keyframes wind {
0% {
transform: translateX(-2000px);
}
100% {
transform: translateX(2000px);
}
}
.superhero #man {
animation: floatHero 4s ease-in-out infinite;
}
.superhero #cape {
animation: floatCape 3s ease-in-out infinite;
}
.superhero #break_chain {
animation: pulseBreak 3s ease-in-out infinite;
transform-box: fill-box;
transform-origin: center;
}
.superhero #chain_ball {
animation: floatBall 3s ease-in-out infinite;
transform-origin: top left;
transform-box: fill-box;
}
/* red particles */
.superhero #dots path[fill='#DC2626']:nth-child(odd) {
animation: float 4s ease-in-out infinite;
}
.superhero #dots path[fill='#DC2626']:nth-child(even) {
animation: float 3s ease-in-out infinite;
}
/* blue particles */
.superhero #dots path[fill='#5222D0']:nth-child(odd) {
animation: float 5s ease-in-out infinite;
}
.superhero #dots path[fill='#5222D0']:nth-child(even) {
animation: float 2s ease-in-out infinite;
}
/* zigzags */
.superhero #zigzag path {
animation: floatZigzag 5s ease-in-out infinite;
transform-box: fill-box;
}
/* gray lines */
.superhero #wind *:nth-child(3n + 1) {
animation: wind 6s linear infinite;
}
.superhero #wind *:nth-child(3n + 2) {
animation: wind 10s linear infinite;
}
.superhero #wind *:nth-child(3n + 3) {
animation: wind 12s linear infinite;
}
</
style
>
</
style
>
This diff is collapsed.
Click to expand it.
static/img/superhero.svg
0 → 100644
+
365
−
0
View file @
66017bce
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