Compare commits

...

2 Commits

Author SHA1 Message Date
7b56082251
added osdialog example 2024-06-04 00:45:55 +03:00
ec0a08b198
stored HTML UI elements from https://uiverse.io 2024-06-01 22:03:46 +03:00
14 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# xmake
.xmake/
build/
# 3rd party
third/

View File

@ -0,0 +1 @@
https://github.com/AndrewBelt/osdialog.git

View File

@ -0,0 +1 @@
../third/osdialog/osdialog.h

View File

@ -0,0 +1,18 @@
#include <stdio.h>
#include "osdialog.h"
int main(int argc, char const *argv[]) {
int res;
res = osdialog_message(OSDIALOG_INFO, OSDIALOG_OK, "Info こんにちは");
printf("Result: %d\n", res);
res = osdialog_message(OSDIALOG_WARNING, OSDIALOG_OK_CANCEL, "Warning こんにちは");
printf("Result: %d\n", res);
res = osdialog_message(OSDIALOG_ERROR, OSDIALOG_YES_NO, "Error こんにちは");
printf("Result: %d\n", res);
return 0;
}

View File

@ -0,0 +1 @@
../third/osdialog/osdialog.c

View File

@ -0,0 +1 @@
../third/osdialog/osdialog_zenity.c

View File

@ -0,0 +1,9 @@
set_project("osdialog-example")
set_languages("c99")
add_rules("mode.release")
add_includedirs("include")
target("osdialog-example")
set_kind("binary")
add_files("src/*.c")

View File

@ -0,0 +1,5 @@
<div class="card">
<div class="circle"></div>
<div class="circle"></div>
<div class="card-inner"></div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,52 @@
.card {
width: 190px;
height: 254px;
transition: all 0.2s;
position: relative;
cursor: pointer;
}
.card-inner {
width: inherit;
height: inherit;
background: rgba(255,255,255,.05);
box-shadow: 0 0 10px rgba(0,0,0,0.25);
backdrop-filter: blur(10px);
border-radius: 8px;
}
.card:hover {
transform: scale(1.04) rotate(1deg);
}
.circle {
width: 100px;
height: 100px;
background: radial-gradient(#b0e633, #53ef7d);
border-radius: 50%;
position: absolute;
animation: move-up6 2s ease-in infinite alternate-reverse;
}
.circle:nth-child(1) {
top: -25px;
left: -25px;
}
.circle:nth-child(2) {
bottom: -25px;
right: -25px;
animation-name: move-down1;
}
@keyframes move-up6 {
to {
transform: translateY(-10px);
}
}
@keyframes move-down1 {
to {
transform: translateY(10px);
}
}

View File

@ -0,0 +1 @@
<div class="card"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,6 @@
.card {
width: 190px;
height: 254px;
background: rgb(236, 236, 236);
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

View File

@ -0,0 +1,7 @@
## Card by G4b413l
![Card by G4b413l](Card by G4b413l/screenshot.png)
## Card by adamgiebl
![Card by adamgiebl](Card by adamgiebl/screenshot.png)