Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
337bcec
bugfix : button clicking UI and cursor appearance
devyarustagi Mar 23, 2026
62ef936
bugfix : Equality checking while accessing localStorage
devyarustagi Mar 23, 2026
2276bd5
feature: basic drawing facilities
devyarustagi Mar 23, 2026
7bdc8f3
feature: Ability to change stroke style and stroke colour
devyarustagi Mar 24, 2026
7f26d9d
feat: User can choose linewidth and opacity.
devyarustagi Mar 24, 2026
047c78c
bugfix: drawing a new item doesn't clear the canvas
devyarustagi Mar 24, 2026
e720539
bugfix: content not lost on site refresh
devyarustagi Mar 24, 2026
4acc63c
feature: User can undo past changes both using Ctrl+Z and the onscree…
devyarustagi Mar 24, 2026
55f0eb0
UI improvement: color scheme of light mode
devyarustagi Mar 24, 2026
c3a7207
feature: redo functionality
devyarustagi Mar 24, 2026
c1d0086
Rename apollo.html to index.html
devyarustagi Mar 24, 2026
6135479
Feat: Users can draw polygons and other shapes with straight lines as…
devyarustagi Mar 25, 2026
04cea1e
Feat : Added toolbar for text tool
devyarustagi Mar 26, 2026
5dbfc6e
Feat : Slider value display and text box
devyarustagi Mar 26, 2026
df4553e
Bugfix : Better stroke style rendering and smoother shape edges.
devyarustagi Mar 26, 2026
43440de
Feat: Users can add text to the canvas.
devyarustagi Mar 27, 2026
51081cd
Feat: Users can erase objects on the canvas.
devyarustagi Mar 27, 2026
862b912
Feat: Users can select and move objects on the canvas.
devyarustagi Mar 27, 2026
6e459dc
bugfix : Faulty image icon
devyarustagi Mar 27, 2026
f070a92
feat: User controls the color of the canvas and it is theme independent.
devyarustagi Mar 27, 2026
3d56b04
feature : Users can add images to the canvas which are generated rand…
devyarustagi Mar 28, 2026
6f0af9e
bugfix: Select tool works better with polygons and faster render time…
devyarustagi Mar 28, 2026
45210fa
Functionality : Improved UI and responsiveness.
devyarustagi Mar 28, 2026
bf5e71f
Bugfix: Opacity of images is independent of opacity of other objects.…
devyarustagi Mar 28, 2026
f1cb1e1
bugfix: slider for stroke width updates properly on refresh
devyarustagi Mar 29, 2026
81435cb
refactor : change object storage techniques
devyarustagi Mar 29, 2026
96ee885
feature : Add rotate,resize and move
devyarustagi Mar 30, 2026
9f102d4
feature : Support for mobile devices
devyarustagi Mar 30, 2026
1c3622e
bugfix: phone touch events not working properly
devyarustagi Mar 30, 2026
28083d0
revert last commit
devyarustagi Mar 30, 2026
eabd6fa
bugfix: fix bugs in select tool
devyarustagi Mar 30, 2026
9cd3808
bugfix: objects appear out of place
devyarustagi Mar 30, 2026
03b9463
feature : enhance selection tool functionality on phone
devyarustagi Mar 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
243 changes: 216 additions & 27 deletions apollo.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
}

.light {
--bg-color: #D6A99D ;
--button-background-color: #FBF3D5;
--button-background-color:#DFD0B8;
--button-highlight-color: black;
--button-fill-color: black;
--button-active-color: #1b8b98;
--button-fill-color: #4a4a4a;
--button-active-color:#6d8196 ;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--bg-color) ;
padding: 0;
margin: 0 0 0 0;
overflow: hidden;
}
button {
background: none;
Expand All @@ -30,30 +32,43 @@ button {
align-items: center;
justify-content: center;
}

.crosshair {
cursor : crosshair;
}
.textcursor {
cursor : text;
}
.grabbing {
cursor : grabbing;
}
.erasing {
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white' stroke='black' stroke-width='1'><circle cx='12' cy='12' r='10'/></svg>") 12 12, pointer;
}
#top_buttons {
background-color: var(--button-background-color);
position: absolute;
position: fixed;
display: flex;
align-items: stretch;
gap: 1%;
margin: 0 0 0 0;
border:0;
padding:0;
width: clamp(12rem,50%,50rem);
width: 50%;
left: 25%;
top: 5%;
top: 2vh;
right : 25%;
height: 5%;
border-radius: 8rem;
border-style:none;
}

.tools {
flex-grow: 1;
z-index: 1;
}
.tools:active {
.selected {
background-color: var(--button-active-color);
}

.tools:focus {
outline: none;
box-shadow: none;
Expand All @@ -66,37 +81,97 @@ button {
transition: stroke 0.3s ;
}

.tools:focus svg, .tools:hover svg {
.tools:hover svg {
stroke: var(--button-highlight-color);
stroke-width: 3;
}

#toggle_theme {
position: fixed;
top:20px;
right:20px;
.extra_functionality {
height: 6vh;
aspect-ratio: 1/1;
display: flex;
border-radius: 50%;
padding:0;
margin:0;
background-color: var(--button-background-color);
z-index:1;
}
#toggle_theme:hover, #toggle_theme:focus {
.extra_functionality:hover {
outline:none;
box-shadow: none;
}

#toggle_theme:hover svg, #toggle_theme:focus svg {
stroke: black;
stroke-width: 3;
.extra_functionality:hover svg {
stroke: var(--button-highlight-color);
stroke-width: 1.5;
}
.history {
position: fixed;
top:2vh;
left:2vw;
height: 5vh;
aspect-ratio: 2.5/1;
width: auto;
display: flex;
justify-content: center;
align-items: center;
border-radius: 1rem;
margin: 0;
gap:1vw;
background-color: var(--button-background-color);
z-index:1;
}
.history button svg{
height:2vw;
width:2vw;
min-height: 30px;
min-width: 30px;
fill:none;
stroke: var(--button-fill-color);
}
#toggle_theme svg {
height:80%;
width:100%;
stroke: var(--button-fill-color)
.history button:hover {
outline:none;
box-shadow: none;
}
.history button:hover svg {
stroke: var(--button-highlight-color);
stroke-width: 1.5;
}
#theme {
position: fixed;
right:1vw;
top:2vh;
height: 5vh;
display:flex;
gap:1vw;
background-color: var(--button-background-color);
flex-direction: row;
justify-content: center;
align-items: center;
padding:0 1vw;
margin:0 0;
border-radius: 4rem;
}
#toggle_theme {
height: 100%;
aspect-ratio: 1/1;
display: flex;
border-radius: 50%;
padding:0;
margin:0;
background-color: transparent;
z-index:1;
}
#canvas_color{
height:3.5vh;
border:none;
cursor:pointer;
background-color: transparent;
}

#toggle_theme svg:hover{
stroke: var(--button-highlight-color)
}

#toggle_theme svg:last-child {
display: none;
}
Expand All @@ -106,8 +181,122 @@ button {
.light #toggle_theme svg:first-child {
display: none;
}
#hint{
display: none;
}
#test {
position: fixed;
background-color: transparent;
top:0;
left:0;
}
#final {
position: fixed;
background-color: transparent;
top:0;
left:0;
}

#test, #final{
touch-action: none;
}

#toggle_theme:hover svg, #toggle_theme:focus svg {
stroke-color: var(--button-highlight-color);
stroke-width: 2.5;
.beautifiers{
border:0;
margin:0;
padding:1rem 1rem 1rem 1rem;
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--button-background-color);
border-radius: 1rem;
position: fixed;
top: 20vh;
left:1vw;
height:auto;
max-height: 70vh;
gap: 0.7rem;
}
.beautifiers pre{
margin:0;
font-size:1rem;
color: var(--button-fill-color);
}
.beautifiers input{
padding: 0;
margin:0;
border : none;
}
.beautifiers input:hover{
cursor: pointer;
}
.beautifiers div{
display: inline-flex;
align-items: center;
justify-content: center;
gap:1rem;
}
.beautifiers div button{
width:3rem;
}
.beautifiers div button:hover svg{
stroke: var(--button-highlight-color);
stroke-width: 2.70;
}
.beautifiers div button svg{
stroke: var(--button-fill-color);
height: 80%;
width:100%;
fill:none;
}
output{
color: var(--button-fill-color);
}
#options{
display : none;
}

@media (max-width: 620px) {
#options{
display: flex;
position: fixed;
top:auto;
background-color: var(--button-background-color);
font-size: 1rem;
color: var(--button-fill-color);
bottom: 2vh;
height:6vh;
left:40vw;
right:40vw;
width:20vw;
}
#options :hover{
color: var(--button-highlight-color);
}
#top_buttons{
width:90vw;
left:5vw;
height:6vh;
right:5vw;
padding : 0 1vw;
}
#theme{
top:auto;
height:6vh;
bottom:2vh;
}
.history{
top:auto;
height:6vh;
bottom:2vh;
}
.beautifiers{
left:15vw;
right: 15vw;
height:50vh;
width:70vw;
}

}

38 changes: 0 additions & 38 deletions apollo.html

This file was deleted.

Loading
Loading