Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions dist/assets/index-BhJi66uT.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.app{display:flex;flex-direction:column;align-items:center;margin:20px}
40 changes: 40 additions & 0 deletions dist/assets/index-DjXyGSCI.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-DjXyGSCI.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BhJi66uT.css">
</head>
<body>
<div id="root"></div>
</body>
</html>
Expand Down
File renamed without changes
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

7 changes: 7 additions & 0 deletions src/components/Cake/styles/Cake.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.cake {
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
border: 1px solid cornflowerblue;
};
6 changes: 6 additions & 0 deletions src/components/Cake/styles/CakeLayer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.cake-layer {
border-top: 1px solid rgba(100, 100, 100, .3);
border-bottom: 2px solid rgba(100, 100, 100, .3);
border-radius: 6%;

}
2 changes: 1 addition & 1 deletion src/components/CakeBuilder/LayerAdd.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ const LayerAdd = ({ addLayer }) => {
);
};

export default LayerAdd;
export default LayerAdd;
2 changes: 1 addition & 1 deletion src/components/CakeBuilder/LayerBuilder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const LayerBuilder = ({ layer, deleteLayer }) => (
</div>
);

export default LayerBuilder;
export default LayerBuilder;
19 changes: 19 additions & 0 deletions src/components/CakeBuilder/styles/LayerAdd.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.layer-add {
display: flex;
flex-direction: column;
align-items: center;
margin: 1rem 0;
}

.layer-add button {
background-color: #2200DD;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}

.layer-add button:hover {
background-color: #A600DD;
}
39 changes: 39 additions & 0 deletions src/components/CakeBuilder/styles/LayerBuilder.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.layer-builder {
display: flex;
flex-direction: column;
padding: 16px;
background-color: #f4f4f4;
border-radius: 8px;
border: 1px solid #ccc;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;
width: 250px;
}

.layer-builder p {
margin: 8px 0;
font-size: 14px;
color: #333;
}

.layer-builder button {
padding: 8px 16px;
border-radius: 4px;
border: 1px solid transparent;
background-color: #e74c3c;
color: white;
font-size: 14px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.3s, border-color 0.3s;
text-align: center;
margin-top: 12px;
width: 100%;
}

.layer-builder button:hover {
background-color: #c0392b;
border-color: #bbb;
}

67 changes: 0 additions & 67 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,68 +1 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
3 changes: 2 additions & 1 deletion src/styles/App.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.app {
display: flex;
flex-direction: column;
flex-direction: row-reverse;
justify-content: space-around;
align-items: center;
margin: 20px;
}